mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 06:39:46 -06:00
VideoCommon/Fifo: Refactor to class, move to Core::System.
This commit is contained in:
@ -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:
|
||||
|
Reference in New Issue
Block a user