summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2018-11-27yuzu/configure_input_player: Use std::size_t to represent the player index ↵Lioncash
instead of u8 Prevents compiler warnings related to truncation when invoking the dialog. It's also extremely suspect to use a u8 value here instead of a more general type to begin with.
2018-11-27yuzu/configure_input: Make CallConfigureDialog a non-member template functionLioncash
This doesn't depend on any part of the private interface, so it can be made a non-member internal function.
2018-11-27yuzu/configure_input_player: Use a lambda expression instead of std::bindLioncash
std::bind is the pre-C++11 way of doing this.
2018-11-27yuzu/configure_input_player: Amend constructor initializer list orderLioncash
Orders the elements the way they would actually be initialized in. Resolves compiler warnings with gcc and clang
2018-11-27yuzu/configure_input: Remove unused function MoveGridElementLioncash
2018-11-27yuzu/configure_input*: Move data members after function declarationsLioncash
The common pattern is to put the data members after the function interface where applicable.
2018-11-27yuzu/configure_input: Remove unnecessary includesLioncash
2018-11-26Merge pull request #1806 from ReinUsesLisp/morton-fixupbunnei
morton: Fixup compiler warning
2018-11-26Merge pull request #1804 from lioncash/castbunnei
gdbstub: Silence value truncation warning within FpuWrite()
2018-11-26Merge pull request #1805 from lioncash/resourcebunnei
svc: Implement svcCreateResourceLimit, svcGetResourceLimitCurrentValue(), svcGetResourceLimitLimitValue(), and svcSetResourceLimitLimitValue()
2018-11-26svc: Implement svcSetResourceLimitLimitValue()Lioncash
The opposite of the getter functions, this function sets the limit value for a particular ResourceLimit resource category, with the restriction that the new limit value must be equal to or greater than the current resource value. If this is violated, then ERR_INVALID_STATE is returned. e.g. Assume: current[Events] = 10; limit[Events] = 20; a call to this service function lowering the limit value to 10 would be fine, however, attempting to lower it to 9 in this case would cause an invalid state error.
2018-11-26svc: Implement svcGetResourceLimitCurrentValue()Lioncash
This kernel service function is essentially the exact same as svcGetResourceLimitLimitValue(), with the only difference being that it retrieves the current value for a given resource category using the provided resource limit handle, rather than retrieving the limiting value of that resource limit instance. Given these are exactly the same and only differ on returned values, we can extract the existing code for svcGetResourceLimitLimitValue() to handle both values.
2018-11-26morton: Fixup compiler warningReinUsesLisp
2018-11-26svc: Implement svcGetResourceLimitLimitValue()Lioncash
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.
2018-11-26svc: Implement svcCreateResourceLimit()Lioncash
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.
2018-11-26gdbstub: Silence value truncation warning within FpuWrite()Lioncash
Previously this would cause an implicit truncation warning about assigning a u64 value to a u32 value without an explicit cast.
2018-11-26Merge pull request #1794 from Tinob/masterbunnei
Add support for viewport_transfom_enable register
2018-11-26Merge pull request #1723 from degasus/dirty_flagsbunnei
gl_rasterizer: Skip VB upload if the state is clean.
2018-11-26GPU States: Implement Polygon Offset. This is used in SMO all the time. (#1784)Marcos
* GPU States: Implement Polygon Offset. This is used in SMO all the time. * Clang Format fixes. * Initialize polygon_offset in the constructor.
2018-11-26Merge pull request #1713 from FernandoS27/bra-ccbunnei
Implemented BRA CC conditional and FSET CC Setting
2018-11-26Merge pull request #1798 from ReinUsesLisp/y-directionbunnei
gl_shader_decompiler: Implement S2R's Y_DIRECTION
2018-11-25Merge pull request #1763 from ReinUsesLisp/bfibunnei
gl_shader_decompiler: Implement BFI_IMM_R
2018-11-25Merge pull request #1793 from lioncash/refbunnei
service/sm: Take std::string by const reference in UnregisterService
2018-11-25Merge pull request #1760 from ReinUsesLisp/r2pbunnei
gl_shader_decompiler: Implement R2P_IMM
2018-11-25Merge pull request #1782 from FernandoS27/dcbunnei
Fixed Coordinate Encodings in TEX and TEXS instructions
2018-11-25Merge pull request #1783 from ReinUsesLisp/clip-distancesbunnei
gl_shader_decompiler: Implement clip distances
2018-11-25Merge pull request #1796 from ReinUsesLisp/morton-movebunnei
video_core: Move morton functions out of gl_rasterizer_cache
2018-11-25svc: Return ERR_INVALID_ENUM_VALUE from svcGetInfoLuke Street
2018-11-25Limit the amount of viewports tested for state changes only to the usable onesRodolfo Bogado
2018-11-25gl_shader_decompiler: Implement S2R's Y_DIRECTIONReinUsesLisp
2018-11-24Merge pull request #1791 from bunnei/nvdrv-stubbunnei
nvdrv: Implement/stub DumpGraphicsMemoryInfo and GetStatus.
2018-11-24Merge pull request #1787 from bunnei/fix-gpu-mmbunnei
memory_manager: Do not allow 0 to be a valid GPUVAddr.
2018-11-25morton: Style changesReinUsesLisp
2018-11-25video_core: Move morton functions to their own fileReinUsesLisp
2018-11-24Fix Texture OverlappingFernandoS27
2018-11-24Implemented BRA CC conditional and FSET CC SettingFernandoS27
2018-11-24Add support for viewport_transfom_enable registerRodolfo Bogado
2018-11-24service/sm: Take std::string by const reference in UnregisterServiceLioncash
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.
2018-11-23Merge pull request #1641 from DarkLordZach/sm-register-unregisterbunnei
sm: Implement RegisterService and UnregisterService
2018-11-23Merge pull request #1731 from DarkLordZach/change-dir-crashbunnei
filesystem: Clear registered union paths on factory creation
2018-11-23Merge pull request #1725 from FernandoS27/gl43bunnei
Update OpenGL's backend version from 3.3 to 4.3
2018-11-23Merge pull request #1785 from Tinob/masterbunnei
Add support for clear_flags register
2018-11-23Merge pull request #1692 from Hedges/GDBCleanbunnei
GDBStub Improvements
2018-11-23Merge pull request #1708 from ogniK5377/res-scalebunnei
Report resolution scaling support for vi and am
2018-11-23Merge pull request #1747 from DarkLordZach/exefs-lfsbunnei
patch_manager: Add support for applying LayeredFS patches to ExeFS
2018-11-23Merge pull request #1769 from ReinUsesLisp/ccbunnei
gl_shader_decompiler: Rename cc to condition code and name internal flags
2018-11-23nvdrv: Implement/stub DumpGraphicsMemoryInfo and GetStatus.bunnei
- Used by Undertale.
2018-11-24Add support for clear_flags registerRodolfo Bogado
2018-11-23Fix TEXS Instruction encodingsFernandoS27
2018-11-23Fix one encoding in TEX InstructionFernandoS27