summaryrefslogtreecommitdiff
path: root/Source
AgeCommit message (Collapse)Author
2024-10-11Merge pull request #13117 from mitaclaw/ranges-modernization-9-trivial-findTilka
Ranges Algorithms Modernization - Find
2024-10-11JitArm64_RegCache: Simplify `std::find` using ranges and projectionsmitaclaw
2024-10-11GraphicsMod: Simplify `std::sort` using ranges and projectionsmitaclaw
2024-10-11CoreTiming: Simplify algorithms using ranges and three-way comparisonmitaclaw
2024-10-10C++20: Synthesize `operator!=` From `operator==`mitaclaw
The inequality operator is automatically generated by the compiler if `operator==` is defined.
2024-10-10Modernize `std::adjacent_find` with rangesmitaclaw
2024-10-10Modernize `std::find_if` with rangesmitaclaw
In BTEmu.cpp, `std::mem_fn` was not necessary for the predicate to compile.
2024-10-10Modernize `std::find` with rangesmitaclaw
2024-10-10JitArm64_Integer: Use IsImm helper moreSintendo
2024-10-10JitArm64_SystemRegisters: Optimize mtsprSintendo
No need to materialize the immediate if it is zero, we can just use WZR. Before: mov w27, #0x0 ; =0 str w27, [x29, #0x1178] After: str wzr, [x29, #0x1178]
2024-10-10JitArm64_RegCache: Add IsImm helperSintendo
Because checking if a register is a specific immediate is a rather common operation.
2024-10-10Modernize `std::min_element` with rangesmitaclaw
2024-10-10Modernize `std::max_element` with rangesmitaclaw
2024-10-10Modernize `std::set_intersection` with rangesmitaclaw
2024-10-10Modernize `std::binary_search` with rangesmitaclaw
In VolumeVerifier.cpp, constructing a `std::string_view` of the volume's GameID is unnecessary, as `std::`(`ranges::`)`binary_search` supports heterogeneous lookup. The usage in GameFile.cpp is a perfect example.
2024-10-10Modernize `std::is_sorted` with rangesmitaclaw
In OGLConfig.cpp, `std::views::reverse` is used rather than sorting using `std::ranges::greater` in order to parallel other instances of reverse iteration in the function.
2024-10-10Modernize `std::sort` with rangesmitaclaw
2024-10-10Modernize `std::reverse_copy` with rangesmitaclaw
2024-10-10Modernize `std::reverse` with rangesmitaclaw
2024-10-10Modernize `std::fill` with rangesmitaclaw
In DSPCore.cpp, there were two `std::fill` uses that could be simplified using `std::fill_n`. Due to their proximity with other `std::fill` algorithms being modernized with ranges, I chose to make these examples into the rare `std::ranges::fill_n`.
2024-10-10Modernize `std::replace_if` with rangesmitaclaw
2024-10-10Modernize `std::replace` with rangesmitaclaw
2024-10-10Modernize `std::transform` with rangesmitaclaw
In StringUtil.h, the lambdas wrapping `Common::ToLower(char)` and `Common::ToUpper(char)` were only necessary due to the function names being overloaded.
2024-10-10Modernize `std::copy` with rangesmitaclaw
2024-10-10Modernize `std::equal` with rangesmitaclaw
2024-10-10Modernize `std::count_if` with rangesmitaclaw
2024-10-10Modernize `std::count` with rangesmitaclaw
2024-10-10Modernize `std::for_each` with rangesmitaclaw
2024-10-10VideoCommon: fix common opcode decoding errorsTillmann Karras
Many games call GXSetGPFifo() without first waiting for the GP to finish consuming outstanding commands in the previous GP fifo. Normally, Dolphin runs OpcodeDecoding in 1000-cycle time slices. In that time frame, GXSetGPFifo() has probably completed and the GP read pointer now points to entirely new memory. If the last GP fifo copy ended in an incomplete command, the new GP fifo would most likely desync for a while. To avoid all this, give the GP a time slice right now to copy the remaining data from the previous GP fifo.
2024-10-09Simplify `std::stable_sort` with `std::ranges::stable_partition`mitaclaw
2024-10-09Simplify `std::transform` with `std::ranges::transform_view`mitaclaw
2024-10-09Simplify `std::fill` with `std::array::fill`mitaclaw
2024-10-09IOS: log cIOS device checks as warnings, not errorsTillmann Karras
Some games do this to detect piracy.
2024-10-09Merge pull request #13086 from Tilka/gameiniJules Blok
GameSettings: safe texture cache for "Winter Sports 3: The Great Tournament"
2024-10-07Simplify `std::fill` with `std::fill_n`mitaclaw
2024-10-07Simplify `std::copy` with `std::copy_n`mitaclaw
+ a surprise `std::memcpy` in VolumeVerifier.cpp.
2024-10-07Merge pull request #13109 from Pokechu22/fifo-player-wii-batsTilka
FifoPlayer: Set up additional BATs in Wii mode
2024-10-06Fifo analyzer: Fix indexed XF loads showing "bytes" instead of "words"Pokechu22
Indexed XF loads specify the number of 32-bit words (generally floats, but light data has some integers) to load, not the number of bytes. This was only a mistake in the fifo analyzer text; the actual implementation already loaded words.
2024-10-06FifoPlayer: Set up additional BATs in Wii modePokechu22
The light LIT fifolog from https://bugs.dolphin-emu.org/issues/13635 has position data at physical address 11ae3180. This works fine when using the memory viewer in physical mode, but the corresponding virtual address (91ae3180) previously didn't show anything in effective mode. It works fine now though. This shouldn't affect playback of fifologs as everything in there uses physical addresses; this only impacts the memory viewer. This logic was copied from CBoot::SetupBAT.
2024-10-06Merge pull request #12918 from JosJuice/revert-revert-audit-get-stateJMC47
Partially revert "Revert "Audit uses of IsRunning and GetState""
2024-10-06Merge pull request #13105 from lycheefox/skylandersJMC47
Skylanders: Fix Head Rush (Nitro)
2024-10-06VideoBackends:Metal: Use standardized C++ features over clang builtinsTellowKrinkle
2024-10-06VideoBackends:Metal: Log file on failed pipeline compileTellowKrinkle
2024-10-05Skylanders: Fix Head Rush (Nitro)lycheefox
2024-10-05VideoBackends:Vulkan: Increase VMA Vulkan Version to 1.2TellowKrinkle
We now use Vulkan 1.2 if available
2024-10-05Merge pull request #13101 from JosJuice/gametdbid-partitionTilka
Core: Include partition when calling GetGameTDBID for non-game partition
2024-10-05Merge pull request #12208 from PatrickFerry/add-vertex-depth-range-caseJules Blok
Use Vertex Depth Range when zRange Exceeds farZ
2024-10-05Core: Include partition when calling GetGameTDBID for non-game partitionJosJuice
This problem was introduced in 8842a0f402ffe60a80ce7894bfd36afd039009fc and is likely a copy-paste error. Fixes the problem mentioned in the issue comment https://bugs.dolphin-emu.org/issues/13640#note-2.
2024-10-05Merge pull request #13050 from TellowKrinkle/HKIsNotMVKJMC47
Vulkan: Don't do MoltenVK things on Asahi Linux
2024-10-04Merge pull request #13088 from TellowKrinkle/iOSFixesOatmealDome
VideoBackends:Metal: Fix bbox on newer iOS devices