Lioncash
ee59c47a59
svc: Implement svcGetResourceLimitLimitValue()
This kernel service function retrieves the maximum allowable value for
a provided resource category for a given resource limit instance. Given
we already have the functionality added to the resource limit instance
itself, it's sufficient to just hook it up.
The error scenarios for this are:
1. If an invalid resource category type is provided, then ERR_INVALID_ENUM is returned.
2. If an invalid handle is provided, then ERR_INVALID_HANDLE is returned (bad thing goes in, bad thing goes out, as one would expect).
If neither of the above error cases occur, then the out parameter is
provided with the maximum limit value for the given category and success
is returned.
7 years ago
Lioncash
931ac0359b
svc: Implement svcCreateResourceLimit()
This function simply creates a ResourceLimit instance and attempts to
create a handle for it within the current process' handle table. If the
kernal fails to either create the ResourceLimit instance or create a
handle for the ResourceLimit instance, it returns a failure code
(OUT_OF_RESOURCE, and HANDLE_TABLE_FULL respectively). Finally, it exits
by providing the output parameter with the handle value for the
ResourceLimit instance and returning that it was successful.
Note: We do not return OUT_OF_RESOURCE because, if yuzu runs out of
available memory, then new will currently throw. We *could* allocate the
kernel instance with std::nothrow, however this would be inconsistent
with how all other kernel objects are currently allocated.
7 years ago
David Marcec
07ed10a53e
Added comment on Main memory size for more clarity
7 years ago
David Marcec
2097ef79e3
Made svcSetHeapSize and svcCreateSharedMemory more readable
7 years ago
David Marcec
67518a57b9
Reworked svcs slightly, improved error messages in AM and fsp_srv
7 years ago
Lioncash
2176b2986f
gdbstub: Silence value truncation warning within FpuWrite()
Previously this would cause an implicit truncation warning about
assigning a u64 value to a u32 value without an explicit cast.
7 years ago
Rodolfo Bogado
07e7586b63
Implement depth clamp
7 years ago
Rodolfo Bogado
0eabde665d
Add support for Clip Distance enabled register
7 years ago
bunnei
dae6451ca5
Merge pull request #1794 from Tinob/master
Add support for viewport_transfom_enable register
7 years ago
bunnei
c5fb7fafd4
Merge pull request #1723 from degasus/dirty_flags
gl_rasterizer: Skip VB upload if the state is clean.
7 years ago
Marcos
fc09b5cc26
GPU States: Implement Polygon Offset. This is used in SMO all the time. ( #1784 )
* GPU States: Implement Polygon Offset. This is used in SMO all the time.
* Clang Format fixes.
* Initialize polygon_offset in the constructor.
7 years ago
bunnei
5b044676cb
Merge pull request #1713 from FernandoS27/bra-cc
Implemented BRA CC conditional and FSET CC Setting
7 years ago
bunnei
ff5abaa0d9
Merge pull request #1798 from ReinUsesLisp/y-direction
gl_shader_decompiler: Implement S2R's Y_DIRECTION
7 years ago
Zach Hilman
14ad676994
profile_manager: Save and load ProfileData from disk
The ProfileData is a 0x80-sized structure that stores various pieces of miscellaneous data for the account.
7 years ago
FernandoS27
b509890e4c
Implemented Tile Width Spacing
7 years ago
David Marcec
775267deb9
Fixed hwopus compile error
7 years ago
David Marcec
7caebd7e0e
Improved error messages in AM, HwOpus and NvMap
7 years ago
David Marcec
224dcaf1a5
Improved error messages for SVCs
7 years ago
David Marcec
5ae0d6cba2
Changed logging to be "Log before execution", Added more error logging, all services should now log on some level
7 years ago
bunnei
bfcbcc989e
Merge pull request #1763 from ReinUsesLisp/bfi
gl_shader_decompiler: Implement BFI_IMM_R
7 years ago
bunnei
9473d1dc1e
Merge pull request #1793 from lioncash/ref
service/sm: Take std::string by const reference in UnregisterService
7 years ago
bunnei
b793e04646
Merge pull request #1760 from ReinUsesLisp/r2p
gl_shader_decompiler: Implement R2P_IMM
7 years ago
bunnei
221bbea764
Merge pull request #1782 from FernandoS27/dc
Fixed Coordinate Encodings in TEX and TEXS instructions
7 years ago
bunnei
3885f36323
Merge pull request #1783 from ReinUsesLisp/clip-distances
gl_shader_decompiler: Implement clip distances
7 years ago
bunnei
73159a5189
Merge pull request #1796 from ReinUsesLisp/morton-move
video_core: Move morton functions out of gl_rasterizer_cache
7 years ago
Mat M
a94cdcf36f
Merge pull request #1800 from encounter/svcgetinfo
svc: Return ERR_INVALID_ENUM_VALUE from svcGetInfo
7 years ago
Luke Street
7d5b774d8a
svc: Return ERR_INVALID_ENUM_VALUE from svcGetInfo
7 years ago
Rodolfo Bogado
fc1c8f585d
Limit the amount of viewports tested for state changes only to the usable ones
7 years ago
ReinUsesLisp
ac2c2ded06
gl_shader_decompiler: Implement S2R's Y_DIRECTION
7 years ago
bunnei
748632351d
Merge pull request #1791 from bunnei/nvdrv-stub
nvdrv: Implement/stub DumpGraphicsMemoryInfo and GetStatus.
7 years ago
bunnei
3f8a365d78
Merge pull request #1787 from bunnei/fix-gpu-mm
memory_manager: Do not allow 0 to be a valid GPUVAddr.
7 years ago
ReinUsesLisp
5c4311075b
morton: Style changes
7 years ago
ReinUsesLisp
70920fd69f
video_core: Move morton functions to their own file
7 years ago
FernandoS27
b29904eb68
Fix Texture Overlapping
7 years ago
FernandoS27
84e30cb3a7
Implemented BRA CC conditional and FSET CC Setting
7 years ago
Rodolfo Bogado
dd86a7ee67
Add support for viewport_transfom_enable register
7 years ago
Lioncash
ecfdfae795
service/sm: Take std::string by const reference in UnregisterService
Avoids the need to create a copy of the std::string instance
(potentially allocating).
The only reason RegisterService takes its argument by value is because
it's std::moved internally.
7 years ago
bunnei
e5d6a2cc01
Merge pull request #1641 from DarkLordZach/sm-register-unregister
sm: Implement RegisterService and UnregisterService
7 years ago
bunnei
f983bac4e5
Merge pull request #1731 from DarkLordZach/change-dir-crash
filesystem: Clear registered union paths on factory creation
7 years ago
bunnei
7e2d2545af
Merge pull request #1725 from FernandoS27/gl43
Update OpenGL's backend version from 3.3 to 4.3
7 years ago
bunnei
254f9854dc
Merge pull request #1785 from Tinob/master
Add support for clear_flags register
7 years ago
bunnei
20b178ddc3
Merge pull request #1692 from Hedges/GDBClean
GDBStub Improvements
7 years ago
bunnei
491a01f8aa
Merge pull request #1708 from ogniK5377/res-scale
Report resolution scaling support for vi and am
7 years ago
bunnei
78314332c2
Merge pull request #1747 from DarkLordZach/exefs-lfs
patch_manager: Add support for applying LayeredFS patches to ExeFS
7 years ago
bunnei
d4339a4c76
Merge pull request #1769 from ReinUsesLisp/cc
gl_shader_decompiler: Rename cc to condition code and name internal flags
7 years ago
bunnei
6b564d4275
nvdrv: Implement/stub DumpGraphicsMemoryInfo and GetStatus.
- Used by Undertale.
7 years ago
Rodolfo Bogado
d311047172
Add support for clear_flags register
7 years ago
FernandoS27
1d3cfabdd6
Fix TEXS Instruction encodings
7 years ago
FernandoS27
ca4e585916
Fix one encoding in TEX Instruction
7 years ago
FernandoS27
0dbec58b7b
Corrected inputs indexing in TEX instruction
7 years ago