summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/AsyncRequests.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2022-12-09 20:01:25 +0100
committerAdmiral H. Curtiss <pikachu025@gmail.com>2022-12-10 17:16:19 +0100
commit5624dd6d3982aebab498dcc99dafbcfc00983b4f (patch)
treed3706a2a6f9bde97f665190e116fe27aa294823b /Source/Core/VideoCommon/AsyncRequests.cpp
parentd250e69ddff41db2910f38e741cf3f57d07b362c (diff)
VideoCommon/Fifo: Refactor to class, move to Core::System.
Diffstat (limited to 'Source/Core/VideoCommon/AsyncRequests.cpp')
-rw-r--r--Source/Core/VideoCommon/AsyncRequests.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/AsyncRequests.cpp b/Source/Core/VideoCommon/AsyncRequests.cpp
index 0371683376..7e3b329ad6 100644
--- a/Source/Core/VideoCommon/AsyncRequests.cpp
+++ b/Source/Core/VideoCommon/AsyncRequests.cpp
@@ -5,6 +5,7 @@
#include <mutex>
+#include "Core/System.h"
#include "VideoCommon/Fifo.h"
#include "VideoCommon/RenderBase.h"
#include "VideoCommon/Statistics.h"
@@ -90,7 +91,8 @@ void AsyncRequests::PushEvent(const AsyncRequests::Event& event, bool blocking)
m_queue.push(event);
- Fifo::RunGpu();
+ auto& system = Core::System::GetInstance();
+ system.GetFifo().RunGpu();
if (blocking)
{
m_cond.wait(lock, [this] { return m_queue.empty(); });
@@ -159,7 +161,7 @@ void AsyncRequests::HandleEvent(const AsyncRequests::Event& e)
break;
case Event::FIFO_RESET:
- Fifo::ResetVideoBuffer();
+ Core::System::GetInstance().GetFifo().ResetVideoBuffer();
break;
case Event::PERF_QUERY: