summaryrefslogtreecommitdiff
path: root/Source/Core
AgeCommit message (Collapse)Author
2023-12-29Merge pull request #12452 from Tilka/efb24Jules Blok
VideoCommon: apply "force 24-bit color" to EFB-to-VRAM copies as well
2023-12-29DSPHLE/Zelda: fix use of wrong reverb bufferTillmann Karras
2023-12-29DSPHLE/Zelda: add another 32-bit getter/setter (NFC)Tillmann Karras
2023-12-28Qt: Handle Overridden Graphics BackendPatrick Ferry
This fixes an issue where the game specific graphics backend would be saved as the global setting after playing a game. This also now displays the currently running graphics backend when looking in the graphics configuration window.
2023-12-27Merge pull request #12463 from Dentomologist/netkdrequestdevice_fix_crashesAdmiral H. Curtiss
NetKDRequestDevice: Fix sporadic crashes during emulation shutdown
2023-12-27Jit: Reload RMEM/MEM_REG on ISI exceptionJosJuice
Aims to fix https://bugs.dolphin-emu.org/issues/13444.
2023-12-24NetKDRequestDevice: Fix nullptr dereference crashDentomologist
Keep a shared_ptr to NetKDTimeDevice inside NetKDRequestDevice. This allows the KDDownload task to finish its work without potentially trying to dereference nullptr, which can potentially come from either GetIOS() or GetDeviceByName() if EmulationKernel's destructor has started running.
2023-12-24NetKDRequestDevice: Fix use-after-free crashDentomologist
Explicitly shut down work queues in NetKDRequestDevice's destructor to prevent their threads from accessing members after they've been freed. This crash would occur sporadically if NetKDRequestDevice's periodic download or mail checks happened to overlap with emulation shutdown in the wrong way. An example sequence of events that could cause the crash: * m_scheduler_timer_thread queues a periodic Download event in m_scheduler_work_queue, then waits for m_shutdown_event. * A request to stop emulation results in s_ios being reset by the CPU thread. This triggers NetKDRequestDevice's destructor which sets m_shutdown_event and joins m_scheduler_timer_thread. * m_scheduler_timer_thread wakes from m_shutdown_event and returns from its thread function, ending the thread. * The CPU thread resumes execution at the end of NetKDRequestDevice's destructor and begins destroying NetKDRequestDevice's members in reverse declaration order. * m_http is declared after m_scheduler_work_queue and is therefore destroyed earlier. * m_scheduler_work_queue's destructor calls its Shutdown function, which by default finishes the work items in the queue. * The queued Download event calls KDDownload which calls m_http.Get() which calls Fetch() which passes garbage data from the freed m_curl into curl_easy_setopt(). * Curl promptly crashes. Shutting down the work queues manually in the destructor prevents the above because m_http and the other members don't get freed until after the queue threads finish.
2023-12-24Socket: Fix a nullptr dereference when operations are pendingSepalani
2023-12-22VideoCommon/PixelEngine: Generify lock guardsLioncache
We don't need to specify the type of the mutex being passed in.
2023-12-22VideoCommon/PixelEngine: Remove global system accessor in UpdateInterrupts()Lioncache
Now that the system instance is passed through, this is no longer necessary.
2023-12-22VideoCommon/PixelEngine: Passthrough system instance in constructorLioncache
Simplifies the interface in terms of usage
2023-12-21Merge pull request #12439 from lioncash/sprintfMai
Core: Use fmt over sprintf in trivial cases
2023-12-21Merge pull request #12458 from JosJuice/jitarm64-logic-i2r-not-nothingMai
JitArm64: Fix the "do nothing" cases of ANDI2R and friends
2023-12-21JitArm64: Fix the "do nothing" cases of ANDI2R and friendsJosJuice
So somehow I forgot that AArch64 uses three-operand encoding... Fixes a regression from 6303416201 which manifested in various ways, such as incorrect rendering of the Wind Waker title screen.
2023-12-21Merge pull request #12454 from lioncash/procTilka
VideoCommon/CommandProcessor: Pass system instance through constructor
2023-12-21VideoCommon: handle asset memory going over reserved limit correctly by ↵iwubcode
erroring when the memory is exceeded and not allowing more assets to load until memory is released
2023-12-21VideoCommon: revert max pixel shader samplers back to 8 for Android devices.iwubcode
It was reported that some games (Zelda Wind Waker and Zelda Twilight Princess but others may also exhibit the issue) have graphical issues with the max pixel samplers set to 16 on some Android devices (ex: Pixel6); since this was increased for a performance heavy feature (custom shaders) just disable it for now. In the future, this could be handled more elegantly
2023-12-20VideoCommon/CommandProcessor: Pass system instance through constructorLioncache
Makes the use of the interface a little less noisy, especially given how much of the interface depends on an instance being present.
2023-12-20Merge pull request #12451 from lioncash/fifoTilka
VideoCommon/Fifo: Pass system instance through FifoManager constructor
2023-12-20Merge pull request #12442 from lioncash/hleTilka
Core/HLE/HLE: Remove global system accessors
2023-12-19VideoCommon: when loading a texture asset, set sampler to linear sampler if ↵iwubcode
the texture type is not defined and the 2d texture is assumed
2023-12-19VideoCommon: update custom pipeline action to support a variety of texture ↵iwubcode
samplers (2D, 2D array, and cube maps)
2023-12-20VideoCommon: apply "force 24-bit color" to EFB-to-VRAM copies as wellTillmann Karras
2023-12-19Merge pull request #12448 from lioncash/esAdmiral H. Curtiss
Core/IOS/ES: Remove global system accessor in InitializeEmulationState()
2023-12-18VideoCommon/Fifo: Pass system instance through FifoManager constructorLioncache
Given how many member functions make use of the system instance, it's likely just better to pass the system instance in on construction. Makes the interface a little less noisy to use.
2023-12-18Merge pull request #12450 from lioncash/cheatsOatmealDome
CheatSearch: Get rid of global system accessors
2023-12-18CheatSearch: Get rid of global system accessorsLioncache
We can retrieve the system via the CPUThreadGuard instances.
2023-12-18UICommon: Remove global system accessor in TriggerSTMPowerEvent()Lioncache
This can be passed through via the IOS instance.
2023-12-18Core/HLE/HLE: Remove global system accessor from ExecuteFromJIT()Lioncache
We can just pass in our system instance via the ABI function helpers.
2023-12-18Core/HLE/HLE: Remove global system accessorsLioncache
We can get rid of the global system accessors by requiring passing in relevant state that the function needs and making callsites do the work. This *does* add a global accessor to the PPCAnalyzer, however, this already has global accessors present elsewhere within its code, so they can be removed all at once in a follow up change.
2023-12-18Core/IOS/ES: Remove global system accessor in InitializeEmulationState()Lioncache
We can pass the core timing instance into the function.
2023-12-18Merge pull request #12445 from lioncash/geckoAdmiral H. Curtiss
Core/GeckoCode: Remove global system accessors
2023-12-18Merge pull request #12441 from lioncash/iosAdmiral H. Curtiss
Core/IOS/IOS: Remove global system accessors
2023-12-18Merge pull request #12446 from lioncash/patchAdmiral H. Curtiss
Core/PatchEngine: Get rid of global system accessors
2023-12-18Core/Debugger/PPCDebugInterface: Remove global system accessorLioncache
We can use the CPUThreadGuard instance to get the active system instance.
2023-12-18Core/PatchEngine: Get rid of global system accessorsLioncache
We can pass the system instance into ApplyFramePatches() instead, especially considering the patch engine callback already has it available.
2023-12-18Core/GeckoCode: unsigned int -> u32Lioncache
Same thing for all intents and purposes, less to read.
2023-12-18Core/GeckoCode: Avoid signed conversion in RunCodeHandler()Lioncache
i is being used alongside unsigned types, so it should be unsigned as well.
2023-12-18Core/GeckoCode: Remove global system accessorLioncache
We can use the CPUThreadGuard instance to retrieve the system instance instead.
2023-12-18Core/Debugger_SymbolMap: Make GetCallstack() less verboseLioncache
This also allows the constructed CallstackEntry instances to be moved into the output vector, rather than being copied.
2023-12-18Core/Debugger_SymbolMap: Remove redundant system parameters from interfaceLioncache
The CPU thread guard already allows access to the system instance. We can remove the system parameter to reduce rendundancy here.
2023-12-18Core/Debugger_SymbolMap: Remove AddAutoBreakpoints()Lioncache
This is wholly unused in current code.
2023-12-18Input: Improve Controller Interface devices threadingFiloppi
This specific issue was already addressed by https://github.com/dolphin-emu/dolphin/pull/11635 though I felt like there was something more we could do, and wasn't too happy with the likelihood of devices update calls being skipped (due to `m_devices_population_mutex` being locked).
2023-12-18Core/HLE/HLE_OS: Mark helpers as static where applicableLioncache
Previously, these were given external linkage when they're only used within this translation unit.
2023-12-18HLE_OS: Get rid of global system accessorsLioncache
Thread guards provide access to the current active system instance.
2023-12-18HLE_Misc: Get rid of global system accessorsLioncache
Thread guards provide access to the current active system instance.
2023-12-18Common/TraversalServer: Make use of fmt moreLioncache
We can convert printf and fprintf over to the use of fmt as well, given that we've converted the sprintf calls over.
2023-12-18Common/TraversalServer: Make use of fmt over sprintf where applicableLioncache
Resolves some deprecation warnings on macOS. This is better anyway, given fmt has generic type formatting.
2023-12-18Core/DSP/DSPTables: Make pdregname() and pdregnamelong() return std::stringLioncache
Keeps the interface consistent.