aboutsummaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2020-08-14async_shaders: Resolve -Wpessimizing-move warningLioncash
Prevents pessimization of the move constructor (which thankfully didn't actually happen in practice here, given std::thread isn't copyable).
2020-08-14maxwell_3d: Resolve -Wextra-semi warningLioncash
Semicolons after a function definition aren't necessary.
2020-08-14Reworked ADPCM decoder to allow better streamingDavid Marcec
2020-08-14emu_window: Mark Scoped constructor and Acquire() as nodiscardLioncash
Ensures that callers make use of the constructor, preventing bugs from silently occurring.
2020-08-14kernel/scheduler: Mark SchedulerLock constructor as nodiscardLioncash
Allows the compiler to warn about cases where the constructor is used but then immediately discarded, which is a potential cause of locking/unlocking bugs.
2020-08-14Merge pull request #4495 from lioncash/convRodrigo Locatti
cheat_engine: Resolve implicit bool->u64 conversion
2020-08-13Merge pull request #4514 from Morph1984/worker-allocbunnei
gl_shader_cache: Use std::max() for determining num_workers
2020-08-13Merge pull request #4511 from lioncash/build2LC
General: Tidy up clang-format warnings part 2
2020-08-13General: Tidy up clang-format warnings part 2Lioncash
2020-08-12gl_shader_cache: Use std::max() for determining num_workersMorph
Does not allocate more threads than available in the host system for boot-time shader compilation and always allocates at least 1 thread if hardware_concurrency() returns 0.
2020-08-11Merge pull request #4497 from lioncash/freezer-algbunnei
freezer: Make use of std::erase_if
2020-08-11Merge pull request #4493 from jbeich/dragonflybunnei
common/virtual_buffer: drop unused includes
2020-08-11Merge pull request #4502 from lioncash/buildbunnei
General: Tidy up clang-format warnings
2020-08-10textures/decoders: Fix block linear to pitch copiesReinUsesLisp
There were two issues with block linear copies. First the swizzling was wrong and this commit reimplements them. The other issue was that these copies are generally used to download render targets from the GPU and yuzu was not downloading them from host GPU memory unless the extreme GPU accuracy setting was selected. This commit enables cached memory reads for all accuracy levels. - Fixes level thumbnails in Super Mario Maker 2.
2020-08-10Merge pull request #4496 from lioncash/ce-desigbunnei
cheat_engine: Make use of designated initializers
2020-08-10Remove UI changesameerj
This PR is now only the Analog devices handling the range value defaulting at 100%
2020-08-10Add range slider functionality for gc adapterameerj
2020-08-10undo unnecessary newlines, slider range 50-150Ameer
2020-08-10Address c++20 warning, fix inaccurate range text display when slide == 0Ameer
2020-08-10Add range slider for analog sticksAmeer
2020-08-10Merge pull request #4491 from lioncash/unused-varsbunnei
kernel: Remove unused variables
2020-08-09Merge pull request #4488 from lioncash/filebunnei
vfs_vector: Make creation of array vfs files less verbose
2020-08-08General: Tidy up clang-format warningsLioncash
2020-08-07Merge pull request #4448 from Morph1984/fix-entriesbunnei
game_list_worker: Do not clear entries when > 1 gamedir is present
2020-08-07Merge pull request #4457 from ogniK5377/SetScreenShotPermissionbunnei
am: Unstub SetScreenShotPermission
2020-08-07Merge pull request #4389 from ogniK5377/redundant-format-typebunnei
video_core: Remove redundant pixel format type
2020-08-07common/concepts: Rename IsBaseOf to DerivedFromLioncash
This makes it more inline with its currently unavailable standardized analogue std::derived_from. While we're at it, we can also make the template match the requirements of the standardized variant as well.
2020-08-06Merge pull request #4483 from lioncash/constexpr-hexbunnei
partition_data_manager: Make data arrays constexpr
2020-08-06Merge pull request #4490 from lioncash/arbiterbunnei
address_arbiter/scheduler: Resolve sign conversion warnings
2020-08-06freezer: Move entry finding to its own functionLioncash
Cleans up the callsites in other functions.
2020-08-06freezer: Take address values by valueLioncash
VAddr will always be 64-bit, so there's no need to take a trivial primitive alias by reference.
2020-08-06freezer: Make use of std::erase_ifLioncash
With C++20 we can simplify the erasing idiom.
2020-08-06cheat_engine: Resolve implicit bool->u64 conversionLioncash
We can just return zero here.
2020-08-06cheat_engine: Make use of designated initializersLioncash
Same behavior, but makes the member being assigned obvious.
2020-08-06partition_data_manager: Update master key hashesLioncash
Fills in some hashes that were previously unhandled.
2020-08-06partition_data_manager: Make data arrays constexprLioncash
Previously the constructor for all of these would run at program startup, consuming time before the application can enter main(). This is also particularly dangerous, given the logging system wouldn't have been initialized properly yet, yet the program would use the logs to signify an error. To rectify this, we can replace the literals with constexpr functions that perform the conversion at compile-time, completely eliminating the runtime cost of initializing these arrays.
2020-08-06partition_data_manager: Eliminate magic valueLioncash
We can use sizeof to make it obvious at the call site where the value is coming from.
2020-08-06aes_util: Make use of non-template variant of TranscodeLioncash
Same behavior, less template instantiations.
2020-08-05Fix thread naming on Linux, which limits names to 15 bytes.comex
- In `SetCurrentThreadName`, when on Linux, truncate to 15 bytes, as (at least on glibc) `pthread_set_name_np` will otherwise return `ERANGE` and do nothing. - Also, add logging in case `pthread_set_name_np` returns an error anyway. This is Linux-specific, as the Apple and BSD versions of `pthread_set_name_np return `void`. - Change the name for CPU threads in multi-core mode from "yuzu:CoreCPUThread_N" (19 bytes) to "yuzu:CPUCore_N" (14 bytes) so it fits into the Linux limit. Some other thread names are also cut off, but I didn't bother addressing them as you can guess them from the truncated versions. For a CPU thread, truncation means you can't see which core it is!
2020-08-05Merge pull request #4489 from lioncash/typesafebunnei
ipc_helpers: Only allow trivially copyable objects with PushRaw() and PopRaw()
2020-08-05Merge pull request #4484 from lioncash/aesutilbunnei
aes_util: Allow SetIV() to be non-allocating
2020-08-05Merge pull request #4477 from lioncash/log-desigbunnei
logging/backend: Make use of designated initializers
2020-08-05common/virtual_buffer: drop unused includesJan Beich
On DragonFly and NetBSD build fails with src/common/virtual_buffer.cpp src/common/virtual_buffer.cpp:16:10: fatal error: sys/sysinfo.h: No such file or directory #include <sys/sysinfo.h> ^~~~~~~~~~~~~~~
2020-08-05Merge pull request #4475 from lioncash/bqueuebunnei
buffer_queue: Make use of designated initializers/std::nullopt where applicable
2020-08-05Merge pull request #4479 from lioncash/conceptsbunnei
CMakeLists: Resolve #4478
2020-08-05system_control: Make functions internally linked where applicableLioncash
These functions are only ever used internally as implementation details for GenerateRandomRange(), so these can be given internal linkage.
2020-08-05kernel: Remove unused variablesLioncash
Resolves a few compiler warnings.
2020-08-05scheduler: Resolve sign conversion warningLioncash
2020-08-05address_arbiter: Resolve sign conversion warningLioncash
Makes our type conversion explicit.
2020-08-05Merge pull request #4444 from lioncash/volatilebunnei
common/atomic_ops: Don't cast away volatile from pointers