| Age | Commit message (Collapse) | Author |
|
VideoCommon: apply "force 24-bit color" to EFB-to-VRAM copies as well
|
|
|
|
|
|
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.
|
|
NetKDRequestDevice: Fix sporadic crashes during emulation shutdown
|
|
Aims to fix https://bugs.dolphin-emu.org/issues/13444.
|
|
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.
|
|
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.
|
|
|
|
We don't need to specify the type of the mutex being passed in.
|
|
Now that the system instance is passed through, this is no longer necessary.
|
|
Simplifies the interface in terms of usage
|
|
Core: Use fmt over sprintf in trivial cases
|
|
JitArm64: Fix the "do nothing" cases of ANDI2R and friends
|
|
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.
|
|
VideoCommon/CommandProcessor: Pass system instance through constructor
|
|
erroring when the memory is exceeded and not allowing more assets to load until memory is released
|
|
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
|
|
Makes the use of the interface a little less noisy, especially given
how much of the interface depends on an instance being present.
|
|
VideoCommon/Fifo: Pass system instance through FifoManager constructor
|
|
Core/HLE/HLE: Remove global system accessors
|
|
the texture type is not defined and the 2d texture is assumed
|
|
samplers (2D, 2D array, and cube maps)
|
|
|
|
Core/IOS/ES: Remove global system accessor in InitializeEmulationState()
|
|
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.
|
|
CheatSearch: Get rid of global system accessors
|
|
We can retrieve the system via the CPUThreadGuard instances.
|
|
This can be passed through via the IOS instance.
|
|
We can just pass in our system instance via the ABI function helpers.
|
|
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.
|
|
We can pass the core timing instance into the function.
|
|
Core/GeckoCode: Remove global system accessors
|
|
Core/IOS/IOS: Remove global system accessors
|
|
Core/PatchEngine: Get rid of global system accessors
|
|
We can use the CPUThreadGuard instance to get the active system instance.
|
|
We can pass the system instance into ApplyFramePatches() instead,
especially considering the patch engine callback already has it
available.
|
|
Same thing for all intents and purposes, less to read.
|
|
i is being used alongside unsigned types, so it should be unsigned as well.
|
|
We can use the CPUThreadGuard instance to retrieve the system instance instead.
|
|
This also allows the constructed CallstackEntry instances to be moved into
the output vector, rather than being copied.
|
|
The CPU thread guard already allows access to the system instance. We can
remove the system parameter to reduce rendundancy here.
|
|
This is wholly unused in current code.
|
|
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).
|
|
Previously, these were given external linkage when they're only used within
this translation unit.
|
|
Thread guards provide access to the current active system instance.
|
|
Thread guards provide access to the current active system instance.
|
|
We can convert printf and fprintf over to the use of fmt as well,
given that we've converted the sprintf calls over.
|
|
Resolves some deprecation warnings on macOS. This is better anyway, given fmt
has generic type formatting.
|
|
Keeps the interface consistent.
|