summaryrefslogtreecommitdiff
path: root/Source/Core
AgeCommit message (Collapse)Author
2024-04-09Merge pull request #11141 from JosJuice/jit64-soft-fma-nans-preserveAdmiral H. Curtiss
Jit64: Preserve inputs when software_fma && m_accurate_nans
2024-04-09Merge pull request #12646 from mitaclaw/ppc-cache-global-systemAdmiral H. Curtiss
PPCCache: Avoid Global System Accessor
2024-04-09Merge pull request #12690 from JosJuice/no-getpointer-part-3Admiral H. Curtiss
IOS::HLE::BluetoothEmuDevice: Remove calls to GetPointer
2024-04-08PPCCache: Avoid Global System Accessormitaclaw
2024-04-08Core::GetState: Avoid Global System Accessormitaclaw
2024-04-08Video: remove enforced resolution least common multiple of 4 when dumping ↵Filoppi
screenshots and not videos (only videos encoders have this limit). NOTE: this will likely trigger FIFOCI differences.
2024-04-08Video: split frame dumping settings into 3 resolution dumping modesFiloppi
also polish aspect ratio related code for clarity
2024-04-07DSPHLE/Zelda: set COMBINED_CMD_0D flag appropriatelyTillmann Karras
All relevant games other than Pikmin 1 Wii seem to always set the two dwords to zero, so previously they were ignored during command dispatch and now we still ignore them but in the right place.
2024-04-07DSPHLE/Zelda: simplify AFC decodingTillmann Karras
2024-04-06evdev: close file descriptors in a separate threadTillmann Karras
For some reason Linux is surprisingly slow at closing file descriptors of event devices. This commit improves GUI startup times on my computer by about 1.5 seconds.
2024-04-06Jit64: Preserve inputs when software_fma && m_accurate_nansJosJuice
When writing the software FMA code, I didn't realize that we can't overwrite d if d is the same register as one of the inputs and HandleNaNs is going to be called. This fixes that.
2024-04-06IOS::HLE::BluetoothEmuDevice: Remove calls to GetPointerJosJuice
Part 3 of stopping using GetPointer. This gets rid of the last GetPointer call in IOS, which I skipped in part 1.
2024-04-06BBA/HLE: Fix network_ref coding styleSepalani
2024-04-06BBA/HLE: Move polling data logic into a methodSepalani
2024-04-06BBA/HLE: Move functions to anonymous namespaceSepalani
2024-04-06BBA/HLE: Loop over network_ref onceSepalani
2024-04-06BBA/HLE: Move GetSlot methodsSepalani
2024-04-06BBA/HLE: Add NetworkRef::Clear methodSepalani
2024-04-06BBA/HLE: Make network_ref into a classSepalani
2024-04-06Movie: simplify silly loopTillmann Karras
2024-04-05Merge pull request #12555 from sepalani/bba-connectingAdmiral H. Curtiss
BBA/HLE: Don't assume connect is successful
2024-04-04Merge pull request #12684 from Pokechu22/invalid-vertex-componentAdmiral H. Curtiss
Fix out of bounds accesses for invalid vertex component formats
2024-04-04Fix out of bounds accesses for invalid vertex component formatsPokechu22
On all platforms, this would result in out of bounds accesses when getting the component sizes (which uses stuff from VertexLoader_Position.h/VertexLoader_TextCoord.h/VertexLoader_Normal.h). On platforms other than x64 and ARM64, this would also be out of bounds accesses when getting function pointers for the non-JIT vertex loader (in VertexLoader_Position.cpp etc.). Usually both of these would get data from other entries in the same multi-dimensional array, but the last few entries would be truly out of bounds. This does mean that an out of bounds function pointer can be called on platforms that don't have a JIT vertex loader, but it is limited to invalid component formats with values 5/6/7 due to the size of the bitfield the formats come from, so it seems unlikely that this could be exploited in practice. This issue affects a few games; Def Jam: Fight for New York (https://bugs.dolphin-emu.org/issues/12719) and Fifa Street are known to be affected. I have not done any hardware testing for this PR specifically, though I *think* I previously determined that at least a value of 5 behaves the same as float (4). That's what I implemented in any case. I did previously determine that both Def Jam: Fight for New York and Fifa Street use an invalid normal format, but don't actually have lighting enabled when that normal vector is used, so it doesn't change rendering in practice. The color component format also has two invalid values, but VertexLoader_Color.h/.cpp do check for those invalid ones and return a default value instead of doing an out of bounds access.
2024-04-04Merge pull request #12678 from JosJuice/no-getpointer-part-2Admiral H. Curtiss
HW: Remove calls to GetPointer
2024-04-04Merge pull request #12683 from ↵Admiral H. Curtiss
LillyJadeKatrin/retroachievements-submodule-update Update rcheevos submodule to newest master.
2024-04-04Merge pull request #12685 from JosJuice/get-pointer-for-range-zero-sizeAdmiral H. Curtiss
Memmap: Don't show panic alert for 0 length range
2024-04-04Memmap: Don't show panic alert for 0 length rangeJosJuice
IOS::HLE::IOCtlVRequest::Dump sometimes tries to call GetPointerForRange with an address of 0 and a size of 0. Address 0 is valid, but we were mistakenly also trying to check that address 3FFFFFFF is valid, which it isn't. Fixes https://bugs.dolphin-emu.org/issues/13514.
2024-04-03Update rcheevos submodule to newest master.LillyJadeKatrin
2024-04-03Video: move all padding added for frame dumping to a single function,Filoppi
which also avoids the output window from being resized randomly to be a multiple of 4
2024-04-03Video: Change the frame dumper to actually use the raw emulation output ↵Filoppi
resolution, avoiding any scaling if possible. This should make comparisons much more reliable as pixels wouldn't be smushed together or stretched.
2024-04-01Merge pull request #12631 from jordan-woyak/remove-osx-input-leftoversOatmealDome
InputCommon: Remove some IOKit leftovers.
2024-04-01Jit: Skip discarded registers when flushing for interpreter fallbackJosJuice
Normally, the asserts added in 34b0a6ea90 are only triggered when something actually went wrong in Dolphin. But there is one exception: In FallBackToInterpreter, we flush all registers regardless of whether they're discarded. This is fine as long as none of the discarded registers are inputs to the instruction that the interpreter will run. To avoid false positive asserts, this change adds a parameter to Flush that controls whether to skip the asserts for discarded registers. Additionally, an assert for discarded registers is added to Arm64FPRCache::Flush. (Previously JitArm64 asserted for GPRs (and CRs) only, whereas Jit64 asserted both for GPRs and FPRs. I most likely didn't think of FPRs when writing 34b0a6ea90.)
2024-03-31CheatsManager: Allow making the window smallerDentomologist
Move CheatManager's child widgets into scroll areas to allow making the window smaller than the default. In CheatSearchWidget, enable word wrapping for the label describing the address space and search type to help it fit better inside a narrower window.
2024-03-31HW: Remove calls to GetPointerJosJuice
Typically when someone uses GetPointer, it's because they want to read from a range of memory. GetPointer is unsafe to use for this. While it does check that the passed-in address is valid, it doesn't know the size of the range that will be accessed, so it can't check that the end address is valid. The safer alternative GetPointerForRange should be used instead. Note that there is still the problem of many callers not checking for nullptr. This is part 2 of a series of changes removing the use of GetPointer throughout the code base. After this, VideoCommon is the one major part of Dolphin that remains.
2024-03-31Merge pull request #12671 from JosJuice/no-getpointer-part-1Admiral H. Curtiss
IOS: Remove calls to GetPointer
2024-03-31IOS: Remove calls to GetPointerJosJuice
Typically when someone uses GetPointer, it's because they want to read from a range of memory. GetPointer is unsafe to use for this. While it does check that the passed-in address is valid, it doesn't know the size of the range that will be accessed, so it can't check that the end address is valid. The safer alternative GetPointerForRange should be used instead. Note that there is still the problem of many callers not checking for nullptr. This is the first part of a series of changes that will remove the usage of GetPointer in different parts of the code base. This commit gets rid of every GetPointer call from our IOS code except for a particularly tricky one in BluetoothEmuDevice.
2024-03-31Merge pull request #12665 from Pokechu22/dsp-hle-asnd-2024Admiral H. Curtiss
DSPHLE: Implement 2024 libasnd uCodes
2024-03-31Merge pull request #12656 from jordan-woyak/texture-dump-no-dupsAdmiral H. Curtiss
VideoCommon: Scan texture dumping directory + subdirectories to not re-dump existing files.
2024-03-31Merge pull request #12609 from JosJuice/aspect-ratio-descriptionAdmiral H. Curtiss
DolphinQt: Tweak the aspect ratio setting description
2024-03-31Merge pull request #12645 from mitaclaw/ppc-symbols-signalAdmiral H. Curtiss
DolphinQt: A Ubiquitous Signal For When Symbols Change
2024-03-31Merge pull request #12640 from jordan-woyak/sdl-cleanupAdmiral H. Curtiss
SDL: Cleanups
2024-03-30Jit64: Clean up ExtractWithByteOffsetJosJuice
RCOpArg::ExtractWithByteOffset is only used in one place: a special case of rlwinmx. ExtractWithByteOffset first stores the value of the specified register into m_ppc_state (unless it's already there), and then returns an offset into m_ppc_state. Our use of this function has two undesirable properties (except in the trivial case `offset == 0`): 1. ExtractWithByteOffset calls StoreFromRegister without going through any of the usual functions. This violated an assumption I made when working on my constant propagation PR and led to a hard-to-find bug. 2. If the specified register is in a host register and is dirty, ExtractWithByteOffset will store its value to m_ppc_state even when it's unnecessary. In particular, this always happens when rlwinmx uses the same register as input and output, since rlwinmx always allocates a host register for the output and marks it as dirty. Since ExtractWithByteOffset is only used in one place, I figure we might as well inline it there. This commit does that, and also alters rlwinmx's logic so the special case code is only triggered when the input is already in m_ppc_state. Input in `m_ppc_state`, before (11 bytes): mov esi, dword ptr [rbp-104] mov dword ptr [rbp-104], esi movzx esi, byte ptr [rbp-101] Input in `m_ppc_state`, after (5 bytes): movzx esi, byte ptr [rbp-101] Input in host register, before (8 bytes): mov dword ptr [rbp-104], esi movzx esi, byte ptr [rbp-101] Input in host register, after (3 bytes): shr edi, 0x18
2024-03-29Merge pull request #12670 from mitaclaw/branchwatch-fileutil-copy-pasteJordan Woyak
FileUtil: Fix BranchWatch User Path
2024-03-29FileUtil: Fix BranchWatch User Pathmitaclaw
I mistakenly put `D_DUMP_IDX` here instead of `D_DUMPDEBUG_IDX`.
2024-03-29Merge pull request #12662 from JosJuice/jitarm64-imm-rc0-sxtwJosJuice
JitArm64: Skip SXTW in ComputeRC0(u64)
2024-03-29Merge pull request #12661 from Sintendo/arm64divwuxJosJuice
JitArm64: Optimize divwux
2024-03-28Core::RunOnCPUThread: Avoid Global System Accessormitaclaw
2024-03-28Merge pull request #12659 from mitaclaw/qt-debug-fontJMC47
DolphinQt Settings: Signal Debug Font By Const Reference
2024-03-28Merge pull request #12658 from mitaclaw/core-global-system-2bJMC47
Core: Remove RunAsCPUThread
2024-03-28DolphinQt: A Ubiquitous Signal For When Symbols Changemitaclaw
There were three distinct mechanisms for signaling symbol changes in DolphinQt: `Host::NotifyMapLoaded`, `MenuBar::NotifySymbolsUpdated`, and `CodeViewWidget::SymbolsChanged`. The behavior of these signals has been consolidated into the new `Host::PPCSymbolsUpdated` signal, which can be emitted from anywhere in DolphinQt to properly update symbols everywhere in DolphinQt.