summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2018-08-28Merge pull request #1193 from lioncash/privbunnei
gpu: Make memory_manager private
2018-08-28Merge pull request #1192 from lioncash/unusedbunnei
gl_rasterizer: Remove unused variables
2018-08-28Merge pull request #1191 from lioncash/noexceptbunnei
hle/result: Make ResultVal's move constructor as noexcept
2018-08-28Merge pull request #1194 from lioncash/allocbunnei
gl_shader_cache: Remove unused program_code vector in GetShaderAddress()
2018-08-28gl_shader_cache: Remove unused program_code vector in GetShaderAddress()Lioncash
Given std::vector is a type with a non-trivial destructor, this variable cannot be optimized away by the compiler, even if unused. Because of that, something that was intended to be fairly lightweight, was actually allocating 32KB and deallocating it at the end of the function.
2018-08-28gpu: Make memory_manager privateLioncash
Makes the class interface consistent and provides accessors for obtaining a reference to the memory manager instance. Given we also return references, this makes our more flimsy uses of const apparent, given const doesn't propagate through pointers in the way one would typically expect. This makes our mutable state more apparent in some places.
2018-08-28gl_rasterizer: Remove unused variablesLioncash
2018-08-28hle/result: Make ResultVal's move constructor as noexceptLioncash
Many containers within the standard library provide different behaviors based on whether or not a move constructor/assignment operator can be guaranteed not to throw or not. Notably, implementations will generally use std::move_if_noexcept (or an internal implementation of it) to provide strong exception guarantees. If a move constructor potentially throws (in other words, is not noexcept), then certain behaviors will create copies, rather than moving the values. For example, consider std::vector. When a std::vector calls resize(), there are two ways the elements can be relocated to the new block of memory (if a reallocation happens), by copy, or by moving the existing elements into the new block of memory. If a type does not have a guarantee that it will not throw in the move constructor, a copy will happen. However, if it can be guaranteed that the move constructor won't throw, then the elements will be moved. This just allows ResultVal to be moved instead of copied all the time if ever used in conjunction with containers for whatever reason.
2018-08-28Fix two stupid errors made in #1141fearlessTobi
2018-08-27Merge pull request #1165 from bunnei/shader-cachebunnei
renderer_opengl: Implement a new shader cache.
2018-08-28yuzu: Fix stick UI direction orderfearlessTobi
2018-08-27Merge pull request #1177 from lioncash/errbunnei
kernel/error: Amend several error codes
2018-08-27renderer_opengl: Implement a new shader cache.bunnei
2018-08-27gl_rasterizer_cache: Update to use RasterizerCache base class.bunnei
2018-08-27video_core: Add RasterizerCache class for common cache management code.bunnei
2018-08-27Merge pull request #1169 from Lakumakkara/selbunnei
shader_bytecode: fix SEL_IMM bitstring
2018-08-27Merge pull request #1188 from lioncash/unusedbunnei
vfs_real: Remove unused variable in CreateDirectoryRelative()
2018-08-27Merge pull request #1170 from lioncash/retbunnei
file_util: Correct return value in early exit of ReadFileToString()
2018-08-27Merge pull request #1175 from lioncash/nsbunnei
core: Namespace all code in the arm subdirectory under the Core namespace
2018-08-27Merge pull request #1187 from lioncash/shadowbunnei
registered_cache: Get rid of variable shadowing in ProcessFiles()
2018-08-27vfs_real: Remove unused variable in CreateDirectoryRelative()Lioncash
2018-08-27registered_cache: Get rid of variable shadowing in ProcessFiles()Lioncash
Prevents compiler warnings.
2018-08-27Merge pull request #1128 from DarkLordZach/malformed-hex-crashbunnei
hex_util: Replace logic_errors with LOG_CRITICAL
2018-08-27Merge pull request #1176 from lioncash/infobunnei
svc: Return process title ID if queried in GetInfo()
2018-08-27Merge pull request #1174 from lioncash/debugbunnei
debug_utils: Minor individual interface changes
2018-08-27Merge pull request #1162 from ogniK5377/ttf-plubunnei
PL:U Added SharedFonts loading via TTF
2018-08-27Merge pull request #1168 from lioncash/headerbunnei
hid: Move core include to cpp file
2018-08-27Merge pull request #1171 from lioncash/truebunnei
core: Remove always true conditionals in Load()
2018-08-26set: Fixed GetAvailableLanguageCodes() to follow the max_entriestech4me
Rightnow, in games use GetAvailableLanguageCodes(), there is a WriteBuffer() with size larger than the buffer_size. (Core Critical core\hle\kernel\hle_ipc.cpp:WriteBuffer:296: size (0000000000000088) is greater than buffer_size (0000000000000078)) 0x88 = 17(languages) * 8 0x78 = 15(languages) * 8 GetAvailableLanguageCodes() can only support 15 languages. After firmware 4.0.0 there are 17 supported language instead of 15, to enable this GetAvailableLanguageCodes2() need to be used. So GetAvailableLanguageCodes() will be caped at 15 languages. Reference: http://switchbrew.org/index.php/Settings_services
2018-08-25Merge pull request #1173 from lioncash/batchbunnei
maxwell3d: Move FinishedPrimitiveBatch event after AcceleratedDrawBatch()
2018-08-25Merge pull request #1167 from lioncash/assertbunnei
gl_rasterizer: Correct assertion condition in SyncLogicOpState()
2018-08-25kernel/error: Amend error code for ERR_MAX_CONNECTIONS_REACHEDLioncash
We can make this error code an alias of the resource limit exceeded error code, allowing us to get rid of the lingering 3DS error code of the same type.
2018-08-25kernel/error: Amend error code for ERR_PORT_NAME_TOO_LONGLioncash
We can treat this as an alias of TooLarge for documentation purposes. This also lets us get rid of another lingering 3DS-related error code.
2018-08-25kernel/error: Add error code for the handle table being fullLioncash
This replaces the lingering 3DS constant with the proper one, and utilizes it within HandleTable's Create() member function.
2018-08-25kernel/error: Add error code for invalid memory permissionsLioncash
2018-08-25kernel/error: Correct kernel error code for invalid combinationLioncash
2018-08-25Merge pull request #1166 from lioncash/typoSebastian Valle
filesystem: Fix typo in log message
2018-08-25svc: Return process title ID if queried in GetInfo()Lioncash
We already have the variable itself set up to perform this task, so we can just return its value from the currently executing process instead of always stubbing it to zero.
2018-08-24Merge pull request #1094 from DarkLordZach/nax0Mat M
file_sys: Add support for NAX archives
2018-08-24file_sys/crypto: Fix missing/unnecessary includesZach Hilman
2018-08-24core: Namespace all code in the arm subdirectory under the Core namespaceLioncash
Gets all of these types and interfaces out of the global namespace.
2018-08-24debug_utils: Remove unused includesLioncash
Quite a bit of these aren't necessary directly within the debug_utils header and can be removed or included where actually necessary.
2018-08-24debug_utils: Make BreakpointObserver class' constructor explicitLioncash
Avoids implicit conversions.
2018-08-24debug_utils: Initialize active_breakpoint member of DebugContextLioncash
Ensures that all class members are initialized.
2018-08-24maxwell3d: Move FinishedPrimitiveBatch event after AcceleratedDrawBatch()Lioncash
The start and finish events should likely not be right after one another like this, otherwise the batch will appear to complete immediately
2018-08-24Merge pull request #1065 from DarkLordZach/window-titleZach Hilman
qt: Add filename and title id to window title while running
2018-08-24core: Remove always true conditionals in Load()Lioncash
These conditions are always true, since the outer conditional already checks for these conditions.
2018-08-24file_util: Correct return value in early exit of ReadFileToString()Lioncash
While still essentially being zero, we should be returning a numeric value here, not a boolean typed value.
2018-08-24fix SEL_IMM bitstringLaku
2018-08-23hid: Move core include to cpp fileLioncash
This isn't required to be in the header. Instead, directly include what this header needs and move it to the cpp file where it belongs.