greggameplayer
dfcde52f39
Implement R16S & R16UI & R16I RenderTargetFormats & PixelFormats and more (R16_UNORM needed by Fate Extella) ( #848 )
* Implement R16S & R16UI & R16I RenderTargetFormats & PixelFormats
Do a separate function in order to get Bytes Per Pixel of DepthFormat
Apply the new function in gpu.h
delete unneeded white space
* correct merging error
7 years ago
Lioncash
8eb97706b8
qt/game_list: Resolve truncation warning within GameListItemPath's constructor
Silences a warning about truncating from size_t to u32
7 years ago
Lioncash
aaf671a309
gt/game_list: Use std::array in GameListItemPath's data() function
We don't need to use a heap-allocated std::vector here, given we
explicitly know the bounds.
7 years ago
Lioncash
be53097577
qt/game_list: Remove redundant base class constructor from initializer list
This is called automatically anyways.
7 years ago
bunnei
6b0bc48a42
maxwell_to_gl: Implement VertexAttribute::Size::Size_8_8.
- Used by Super Mario Odyssey.
7 years ago
bunnei
a5b65df9cf
maxwell_to_gl: Implement VertexAttribute::Size::Size_32_32_32.
- Used by Super Mario Odyssey.
7 years ago
bunnei
2156cb3cbe
Revert "gl_state: Temporarily disable culling and depth test."
7 years ago
Lioncash
0e1510ac29
gl_rasterizer_cache: Remove unused viewport parameter of GetFramebufferSurfaces()
7 years ago
bunnei
3a67876252
textures: Refactor out for Texture/Depth FormatFromPixelFormat.
7 years ago
bunnei
e8c52d4c89
gl_rasterizer_cache: Add bounds checking for gl_buffer copies.
7 years ago
Khangaroo
75e12a33ae
Implement SNORM for BC5/DXN2 ( #998 )
* Implement BC5/DXN2 (#996 )
- Used by Kirby Star Allies.
* Implement BC5/DXN2 SNORM
UNORM for Kirby Star Allies
SNORM for Super Mario Odyssey
7 years ago
Lioncash
6ef027b958
gl_shader_decompiler: Reserve element memory beforehand in BuildRegisterList()
Avoids potentially perfoming multiple reallocations when we know the
total amount of memory we need beforehand.
7 years ago
Lioncash
59ea37daa7
gl_rasterizer_cache: Avoid iterator invalidation issues within InvalidateRegion()
A range-based for loop can't be used when the container being iterated
is also being erased from.
7 years ago
Khangaroo
5cb6eceecf
Implement BC5/DXN2 ( #996 )
- Used by Kirby Star Allies.
7 years ago
Lioncash
b46a5c42ff
buffer_queue: Make reference parameter of SetPreallocatedBuffer const
This is simply copied by value, so there's no need to make it a
modifiable reference.
While we're at it, make the names of the parameters match its
definition.
7 years ago
Lioncash
ff5024ee2a
hle_ipc: Make WriteToOutgoingCommandBuffer()'s reference parameter const
This function doesn't modify anything within the reference Thread
instance.
7 years ago
Lioncash
e831b80d69
gl_rasterizer_cache: Invert conditional in LoadGLBuffer()
It's generally easier to follow code using conditionals that operate in
terms of the true case followed by the false case (no chance of
overlooking the exclamation mark).
7 years ago
Lioncash
434f352eb3
gl_rasterizer_cache: Use std::vector::assign in LoadGLBuffer() for the non-tiled case
resize() causes the vector to expand and zero out the added members to
the vector, however we can avoid this zeroing by using assign().
Given we have the pointer to the data we want to copy, we can calculate
the end pointer and directly copy the range of data without the
need to perform the resize() beforehand.
7 years ago
bunnei
dfc3eed0cb
maxwell_to_gl: Implement VertexAttribute::Size::Size_16_16_16_16.
- Used by Super Mario Odyssey (in game).
7 years ago
bunnei
06d0b96ca9
maxwell_to_gl: Implement PrimitiveTopology::Points.
- Used by Super Mario Odyssey (in game).
7 years ago
bunnei
4283019aa0
gl_shader_decompiler: Declare predicates on use.
- Used by Super Mario Odyssey (when going in game).
7 years ago
bunnei
efe6b473c5
maxwell_3d: Ignore macros that have not been uploaded yet.
- Used by Super Mario Odyssey (in game).
7 years ago
Lioncash
557c466994
gl_rasterizer_cache: Make pointer const in LoadGLBuffer()
This is only ever read from, so we can make the data it's pointing to
const.
7 years ago
Zach Hilman
668458525e
vfs: Fix documentation
7 years ago
Zach Hilman
94cf327e77
vfs: Fix typo in VfsFilesystem docs
7 years ago
Zach Hilman
2b6128fe0b
file_util: Use enum instead of bool for specifing path behavior
7 years ago
Zach Hilman
dad2ae1ee0
loader: Remove unused IdentifyFile overload
8 years ago
Zach Hilman
656e97df16
vfs: Use RealVfsFilesystem for fs-operations in RealVfsDirectory
8 years ago
Zach Hilman
52a2e42cb9
file_sys: Add missing include in savedata_factory
8 years ago
Zach Hilman
4b471f0554
core: Port core to VfsFilesystem for file access
8 years ago
Zach Hilman
aaa8fdea52
vfs: Add unreachable assert to file permissions converter
8 years ago
Zach Hilman
2de2ec25d6
vfs: Add RealVfsFilesystem implementation
8 years ago
Zach Hilman
3f82dad1e4
file_util: Add platform-specific slash option to SanitizePath
8 years ago
Zach Hilman
3bf488ce52
vfs: Add VfsFilesystem interface and default implementation
8 years ago
Zach Hilman
b36dee364e
filesystem: Remove unnecessary if conditions
8 years ago
bunnei
ddec200290
gl_rasterizer: Do not render when no render target is configured.
- Used by Super Mario Odyssey.
7 years ago
Lioncash
7353cfc781
fsp_srv: Use std::string_view's copy() function instead of strncpy()
Given elements inserted into a vector are zeroed out, we can just copy
MAX_LEN - 1 elements and the data will already be properly null
terminated.
7 years ago
Lioncash
4afb05d0cc
fsp_srv: Emplace entries first when building index instead of emplacing last
The current way were doing it would require copying a 768 character
buffer (part of the Entry struct) to the new element in the vector.
Given it's a plain array, std::move won't eliminate that.
Instead, we can emplace an instance directly into the destination buffer
and then fill it out, avoiding the need to perform any unnecessary
copies.
Given this is done in a loop, we can request the destination to allocate
all of the necessary memory ahead of time, avoiding the need to
potentially keep reallocating over and over on every few insertions into
the vector.
7 years ago
Lioncash
6e90f0bf6a
common/logging: Add missing service log categories
These weren't added when the services were introduced.
7 years ago
Lioncash
5a9c00ea04
common/color: Remove unnecessary const qualifiers on return types
These are just superfluous and not necessesary
7 years ago
Lioncash
76197a4be9
common/color: Get rid of undefined behavior
Gets rid of type punning via reinterpret_cast within functions. Instead,
we use memcpy to transfer the contents across types.
7 years ago
Lioncash
cc9d7bbf01
vector_math: Use variable template version of is_signed in Vec classes
Same behavior, less code
7 years ago
mailwl
c0d44d3b2a
Service/Account: stub LoadImage function
7 years ago
bunnei
7bf422d58c
gpu: Add R11G11B10_FLOAT to RenderTargetBytesPerPixel.
- Used by Super Mario Odyssey.
7 years ago
mailwl
3c498189b6
hid: fix IsSixAxisSensorAtRest() response
7 years ago
bunnei
7f0d0a93f7
gl_shader_decompiler: Stub input attribute Unknown_63.
7 years ago
bunnei
57982df105
maxwell_3d: Use correct const buffer size and check bounds.
- Fixes mem corruption with Super Mario Odyssey and Pokkén Tournament DX.
7 years ago
bunnei
8c6338b6f9
renderer_opengl: Use trace log in a few places.
7 years ago
bunnei
c120ed7d18
maxwell_to_gl: Implement VertexAttribute::Size::Size_8_8.
7 years ago
bunnei
0f834e2284
nvhost_gpu: Don't over copy IoctlSubmitGpfifo.
7 years ago