FernandoS27
e2416bbd1f
Fixed VAOs Float types only returning GL_FLOAT in cases that they had to return GL_HALF_FLOAT
7 years ago
ReinUsesLisp
3ec795d95e
gl_shader_decompiler: Move position varying declaration back to gl_shader_gen
The intention of declaring them in gl_shader_decompiler was to be able
to use blocks to implement geometry shaders. But that wasn't needed in
the end and it caused issues when both vertex stages were being used,
resulting in a redeclaration of "position".
7 years ago
David Marcec
a03600ba28
Added auto controller switching to supported controllers and single joycon button rotation
This is a subset of the better-hid-2 changes, this fixes input in various games which don't support dual joycons. This pr will search for the next best controller which is supported by the current game
7 years ago
Zach Hilman
7e0d2fc994
aoc_u: Stub GetAddOnContentListChangedEvent
This event signals the game when new DLC is purchased from the eShop while the game is running. Since, for the forseeable future, yuzu will not have this ability, it seems safe to stub with a dummy event that will never fire. This is needed to boot Sonic Mania Plus (update v1.04).
7 years ago
Zach Hilman
0aef2b9c26
crypto: Use compressed sizes in offset calculation for KIP decompression
Fixes a fatal crash on start when deriving keys.
7 years ago
David Marcec
7a7dad05c0
Stubbed home blocking
Needed by arms due to new hid rework
7 years ago
Lioncash
1833498617
es: Update service function tables
Updated based off information provided by Switchbrew.
7 years ago
Lioncash
a653be3510
audio: Update service function tables
Updated based off information provided by Switchbrew.
7 years ago
Lioncash
2b9fd23058
omm: Update service function tables
Updated based off information provided by Switchbrew.
7 years ago
Lioncash
4f52800822
nifm: Update service function tables
Updated based off information provided by switchbrew.
7 years ago
Lioncash
f6c5a48dd1
hid: Update service function tables
Updated based off information provided by Switchbrew.
7 years ago
Lioncash
d0cda7fe40
nim: Add the basic skeleton of the nim:eca service
Added based off information provided by Switchbrew
7 years ago
Lioncash
d16bafc99d
ns: Update service function table
Updated based off information provided by Switchbrew.
7 years ago
Lioncash
a056b284cf
set_cal: Update service function table
Updated based on information from Switchbrew.
7 years ago
bunnei
7e665c2721
GPU: Improved implementation of maxwell DMA (Subv).
7 years ago
bunnei
bcde71d4d9
decoders: Introduce functions for un/swizzling subrects.
7 years ago
bunnei
a5d853a9f8
GPU: Invalidate destination address of kepler_memory writes.
7 years ago
bunnei
6b333d862b
fermi_2d: Add support for more accurate surface copies.
7 years ago
Lioncash
4b5ae8dbaa
svc: Check for word alignment of addresses within svcArbitrateLock/svcArbitrateUnlock
The kernel itself checks whether or not the provided addresses are word
aligned before continuing, so we should be doing the same.
7 years ago
Lioncash
541e9624eb
common: Add function for checking word alignment to alignment.h
This will be used in a following change to svcArbitrateLock() and
svcArbitrateUnlock()
7 years ago
Lioncash
d27f4a4928
common: Move Is4KBAligned() to alignment.h
Aligning on 4KB pages isn't a Switch-specific thing, so this can be
moved to common so it can be used with other things as well.
7 years ago
Lioncash
f109615be0
core: Remove unnecessary assert in ArmInterface()
CpuCore already does this sort of checking, so we can just call that
instead of duplicating the assertions.
7 years ago
David Marcec
98c7a6d622
Used better names for mm:u and fixed bad stub
InitializeWithId needs to return an id which is a u32 which should be a non zero value
7 years ago
Lioncash
33830aa65a
svc: Add missing sanitizing checks for MapSharedMemory/UnmapSharedMemory
Now that the changes clarifying the address spaces has been merged, we
can wrap the checks that the kernel performs when mapping shared memory
(and other forms of memory) into its own helper function and then use
those within MapSharedMemory and UnmapSharedMemory to complete the
sanitizing checks that are supposed to be done.
7 years ago
Lioncash
452aa30cb7
hid/controller: Remove unused header inclusions
swap.h only needs to be present in the header for the type aliases and
definitions, it's not actually needed in the cpp files though. input.h
is just unused entirely in xpad.h
7 years ago
Lioncash
7f52dc1790
hid/controller/npad: Remove unused dump_idx member variable
Given it's unused, we may as well toss it.
7 years ago
Lioncash
7eb2328d8e
hid/controller/npad: Remove unnecessary semicolon from the closing brace of LedPattern's constructor
7 years ago
Lioncash
929ed59f1f
hid/controller/npad: Remove #pragma once from the cpp file
This is only useful in headers.
7 years ago
Lioncash
aeda743446
hid/controller/npad: Move npad_id_list into the cpp file
This is just a lookup table, and since it's private, there's nothing
really stateful about it, so we can just move it into the cpp file.
7 years ago
Lioncash
aeca224890
hid/controller/npad: Remove unnecessary const from void return type
This literally does nothing.
7 years ago
Lioncash
46202e984e
hid/controller: Default the destructors of all controller types in the cpp file
These classes are non-trivial and are definitely going to be changed in
the future, so we default these to prevent issues with forward
declarations, and to keep the compiler from inlining tear-down code.
7 years ago
Lioncash
119b47f366
controller_base: Default the base class constructor and destructor in the cpp file
The destructor doesn't need to be a pure-virtual function.
7 years ago
FernandoS27
caaa9914fd
Clang format and other fixes
7 years ago
FernandoS27
cb9fdc7a26
Implement Reinterpret Surface, to accurately blit 3D textures
7 years ago
FernandoS27
dbc34db6ce
Implement GetInRange in the Rasterizer Cache
7 years ago
FernandoS27
fd9e2d0073
Implement 3D Textures
7 years ago
bunnei
648b55c6b9
gl_rasterizer_cache: Remove unnecessary block_depth=1 on Flush.
7 years ago
bunnei
2a035a1f6f
gl_rasterizer_cache: Remove unnecessary temporary buffer with unswizzle.
7 years ago
David Marcec
8144fa42bd
Using dual joycons as the default controller
Reason for the change is to allow both docked and undocked mode to work
7 years ago
bunnei
43b9494a0f
gl_rasterizer_cache: Use AccurateCopySurface for use_accurate_gpu_emulation.
7 years ago
bunnei
ee7c2dbf5a
config: Rename use_accurate_framebuffers -> use_accurate_gpu_emulation.
- This will be used as a catch-all for slow-but-accurate GPU emulation paths.
7 years ago
bunnei
91602de7f2
rasterizer_cache: Refactor to support in-order flushing.
7 years ago
Lioncash
871350ae35
content_archive: Simpify assignment of bktr_base_romfs in the constructor
std::move doesn't actually dereference the data, so it doesn't matter
whether or not the type is null.
7 years ago
Lioncash
441b5b97bd
content_archive: Make IsValidNCA() an internally linked function
This is only ever used within the cpp file, so it can just be an
internal function.
7 years ago
Lioncash
53e77ffbfe
content_archive: Simplify rights ID check
This is the same as using std::any_of with an inverted predicate.
7 years ago
Lioncash
d6604fa765
content_archive: Split loading into separate functions
The constructor alone is pretty large, the reading code should be split
into its consistuent parts to make it easier to understand it without
having to build a mental model of a 300+ line function.
7 years ago
Lioncash
4783ad54de
content_archive: Pass and take NCASectionHeader instance by reference
Each header is 512 bytes in size, which is kind of an excessive amount
to copy all the time when it's possible to avoid doing so.
7 years ago
Lioncash
73e1e929a2
XCI: Add function for checking the existence of the program NCA
The only reason the getter existed was to check whether or not the
program NCA was null. Instead, we can just provide a function to query
for the existence of it, instead of exposing it entirely.
7 years ago
bunnei
0e59291310
gl_rasterizer_cache: Refactor to only call GetRegionEnd on surface creation.
7 years ago
bunnei
949d7832fa
gl_rasterizer_cache: Only flush when use_accurate_framebuffers is enabled.
7 years ago