Khangaroo
0dc1f660e5
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
f52fb79b19
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
0280e22679
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
b534e67f64
Implement BC5/DXN2 ( #996 )
- Used by Kirby Star Allies.
7 years ago
Lioncash
ff9e0e9727
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
b9ec5ec5b4
hle_ipc: Make WriteToOutgoingCommandBuffer()'s reference parameter const
This function doesn't modify anything within the reference Thread
instance.
7 years ago
Lioncash
544265b613
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
824e3ae7f8
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
b0b7437b9f
maxwell_to_gl: Implement VertexAttribute::Size::Size_16_16_16_16.
- Used by Super Mario Odyssey (in game).
7 years ago
bunnei
29198d26ec
maxwell_to_gl: Implement PrimitiveTopology::Points.
- Used by Super Mario Odyssey (in game).
7 years ago
bunnei
13dec2d87b
gl_shader_decompiler: Declare predicates on use.
- Used by Super Mario Odyssey (when going in game).
7 years ago
bunnei
cfb59dbe1b
maxwell_3d: Ignore macros that have not been uploaded yet.
- Used by Super Mario Odyssey (in game).
7 years ago
Lioncash
4be471509c
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
e883f6faa8
vfs: Fix documentation
7 years ago
Zach Hilman
1e2232797a
vfs: Fix typo in VfsFilesystem docs
7 years ago
Zach Hilman
b43d01f09b
file_util: Use enum instead of bool for specifing path behavior
7 years ago
Zach Hilman
55190386b4
loader: Remove unused IdentifyFile overload
8 years ago
Zach Hilman
a92960a5d6
vfs: Use RealVfsFilesystem for fs-operations in RealVfsDirectory
8 years ago
Zach Hilman
d4ca68f3c5
file_sys: Add missing include in savedata_factory
8 years ago
Zach Hilman
4cbef33915
core: Port core to VfsFilesystem for file access
8 years ago
Zach Hilman
4f44293e63
vfs: Add unreachable assert to file permissions converter
8 years ago
Zach Hilman
6b97b22716
vfs: Add RealVfsFilesystem implementation
8 years ago
Zach Hilman
944f8b80d8
file_util: Add platform-specific slash option to SanitizePath
8 years ago
Zach Hilman
325a55bb1e
vfs: Add VfsFilesystem interface and default implementation
8 years ago
Zach Hilman
653257de93
filesystem: Remove unnecessary if conditions
8 years ago
bunnei
6978915f4e
gl_rasterizer: Do not render when no render target is configured.
- Used by Super Mario Odyssey.
7 years ago
Lioncash
4cfe9fad75
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
a1320c53af
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
5415ccb7da
common/logging: Add missing service log categories
These weren't added when the services were introduced.
7 years ago
Lioncash
18cd5b3930
common/color: Remove unnecessary const qualifiers on return types
These are just superfluous and not necessesary
7 years ago
Lioncash
2fe76428c5
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
e3444cb2a6
vector_math: Use variable template version of is_signed in Vec classes
Same behavior, less code
7 years ago
mailwl
89cc070fcf
Service/Account: stub LoadImage function
7 years ago
bunnei
1e66ac1103
gpu: Add R11G11B10_FLOAT to RenderTargetBytesPerPixel.
- Used by Super Mario Odyssey.
7 years ago
mailwl
219c0dabe1
hid: fix IsSixAxisSensorAtRest() response
7 years ago
bunnei
37e2165d82
gl_shader_decompiler: Stub input attribute Unknown_63.
7 years ago
bunnei
89b9893d28
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
a23331808d
renderer_opengl: Use trace log in a few places.
7 years ago
bunnei
be0642cb94
maxwell_to_gl: Implement VertexAttribute::Size::Size_8_8.
7 years ago
bunnei
e0f48e4daf
nvhost_gpu: Don't over copy IoctlSubmitGpfifo.
7 years ago
bunnei
5381a038ca
gl_rasterizer_cached: Implement RenderTargetFormat::B5G6R5_UNORM.
- Used by Super Mario Odyssey.
7 years ago
bunnei
3ee2d948a2
gl_shader_decompiler: Let OpenGL interpret floats.
- Accuracy is lost in translation to string, e.g. with NaN.
- Needed for Super Mario Odyssey.
7 years ago
bunnei
5851753d2a
am: Stub SetScreenShotImageOrientation.
- Used by Super Mario Odyssey.
7 years ago
Lioncash
3266d0989f
acc: Add missing function table entries for GetUserCount
Given this is stubbed within the common module in
5ac7b84, it should be added to the other relevant tables as well.
7 years ago
bunnei
a0c94e433d
acc: Stub GetUserCount. ( #973 )
- Used by Pokken Tournament DX.
7 years ago
Lioncash
e8824d065b
nvdrv: Get rid of global std::weak_ptr
Rather than use global state, we can simply pass the instance into the
NVFlinger instance directly.
7 years ago
Lioncash
9e90145916
vector_math: Remove unimplemented function prototypes
7 years ago
Lioncash
3868198de6
vector_math: Make functions constexpr where applicable
7 years ago
Lioncash
1393309653
vector_math: Convert typedefs to type aliases
7 years ago
Lioncash
6b1e9244c0
common: Convert type traits templates over to variable template versions where applicable
Uses the C++17 inline variable variants
7 years ago