diff options
| author | JMC47 <JMC4789@gmail.com> | 2025-03-10 15:05:30 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-10 15:05:30 -0400 |
| commit | d45e6c67293f10be4159d4e222ad3e903d7a835b (patch) | |
| tree | 1c2b241c6a7fbcdb0e3589ad2d1f86bd3213a065 /Source/Core | |
| parent | 203454a97a03d8128d54e6f5528f2d1d1d5d1de4 (diff) | |
| parent | 7925240107edc910bb8bf0d786ecd5dbab575bd3 (diff) | |
Merge pull request #13401 from jordan-woyak/exit-gpu-loop
Core/VideoBackendBase: Call ExitGpuLoop from Core to eliminate Video_ExitLoop.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/Core/Core.cpp | 4 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/VideoBackendBase.cpp | 6 | ||||
| -rw-r--r-- | Source/Core/VideoCommon/VideoBackendBase.h | 2 |
3 files changed, 2 insertions, 10 deletions
diff --git a/Source/Core/Core/Core.cpp b/Source/Core/Core/Core.cpp index e59c20a0d3..7226c1ed06 100644 --- a/Source/Core/Core/Core.cpp +++ b/Source/Core/Core/Core.cpp @@ -310,12 +310,12 @@ void Stop(Core::System& system) // - Hammertime! if (system.IsDualCoreMode()) { - // Video_EnterLoop() should now exit so that EmuThread() + // FIFO processing should now exit so that EmuThread() // will continue concurrently with the rest of the commands // in this function. We no longer rely on Postmessage. INFO_LOG_FMT(CONSOLE, "{}", StopMessage(true, "Wait for Video Loop to exit ...")); - g_video_backend->Video_ExitLoop(); + system.GetFifo().ExitGpuLoop(); } s_last_actual_emulation_speed = 1.0; diff --git a/Source/Core/VideoCommon/VideoBackendBase.cpp b/Source/Core/VideoCommon/VideoBackendBase.cpp index e8f9f91b41..cf4b1a3fde 100644 --- a/Source/Core/VideoCommon/VideoBackendBase.cpp +++ b/Source/Core/VideoCommon/VideoBackendBase.cpp @@ -91,12 +91,6 @@ std::string VideoBackendBase::BadShaderFilename(const char* shader_stage, int co g_video_backend->GetName(), counter); } -void VideoBackendBase::Video_ExitLoop() -{ - auto& system = Core::System::GetInstance(); - system.GetFifo().ExitGpuLoop(); -} - // Run from the CPU thread (from VideoInterface.cpp) void VideoBackendBase::Video_OutputXFB(u32 xfb_addr, u32 fb_width, u32 fb_stride, u32 fb_height, u64 ticks) diff --git a/Source/Core/VideoCommon/VideoBackendBase.h b/Source/Core/VideoCommon/VideoBackendBase.h index 2ddfc284ca..770b6f3631 100644 --- a/Source/Core/VideoCommon/VideoBackendBase.h +++ b/Source/Core/VideoCommon/VideoBackendBase.h @@ -56,8 +56,6 @@ public: static std::string BadShaderFilename(const char* shader_stage, int counter); - void Video_ExitLoop(); - void Video_OutputXFB(u32 xfb_addr, u32 fb_width, u32 fb_stride, u32 fb_height, u64 ticks); u32 Video_AccessEFB(EFBAccessType type, u32 x, u32 y, u32 data); |
