mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
VideoCommon/Fifo: Pass Core::System to methods.
This commit is contained in:
@ -599,7 +599,7 @@ static void EmuThread(std::unique_ptr<BootParameters> boot, WindowSystemInfo wsi
|
||||
wiifs_guard.Dismiss();
|
||||
|
||||
// This adds the SyncGPU handler to CoreTiming, so now CoreTiming::Advance might block.
|
||||
system.GetFifo().Prepare();
|
||||
system.GetFifo().Prepare(system);
|
||||
|
||||
// Setup our core
|
||||
if (Config::Get(Config::MAIN_CPU_CORE) != PowerPC::CPUCore::Interpreter)
|
||||
@ -624,7 +624,7 @@ static void EmuThread(std::unique_ptr<BootParameters> boot, WindowSystemInfo wsi
|
||||
s_cpu_thread = std::thread(cpuThreadFunc, savestate_path, delete_savestate);
|
||||
|
||||
// become the GPU thread
|
||||
system.GetFifo().RunGpuLoop();
|
||||
system.GetFifo().RunGpuLoop(system);
|
||||
|
||||
// We have now exited the Video Loop
|
||||
INFO_LOG_FMT(CONSOLE, "{}", StopMessage(false, "Video Loop Ended"));
|
||||
@ -769,7 +769,7 @@ static bool PauseAndLock(bool do_lock, bool unpause_on_unlock)
|
||||
// video has to come after CPU, because CPU thread can wait for video thread
|
||||
// (s_efbAccessRequested).
|
||||
auto& system = Core::System::GetInstance();
|
||||
system.GetFifo().PauseAndLock(do_lock, false);
|
||||
system.GetFifo().PauseAndLock(system, do_lock, false);
|
||||
|
||||
ResetRumble();
|
||||
|
||||
@ -1034,7 +1034,7 @@ void UpdateWantDeterminism(bool initial)
|
||||
ios->UpdateWantDeterminism(new_want_determinism);
|
||||
|
||||
auto& system = Core::System::GetInstance();
|
||||
system.GetFifo().UpdateWantDeterminism(new_want_determinism);
|
||||
system.GetFifo().UpdateWantDeterminism(system, new_want_determinism);
|
||||
|
||||
// We need to clear the cache because some parts of the JIT depend on want_determinism,
|
||||
// e.g. use of FMA.
|
||||
|
Reference in New Issue
Block a user