summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Fifo.cpp
diff options
context:
space:
mode:
authorConnor McLaughlin <stenzek@gmail.com>2019-07-25 13:50:57 +1000
committerGitHub <noreply@github.com>2019-07-25 13:50:57 +1000
commitac9912bad3ad35b1ef27151ba724a3424c110acc (patch)
tree3f6873682f9c6f2570ed0123be82475cc62873d4 /Source/Core/VideoCommon/Fifo.cpp
parentd82e0e0761aa8cf08048aed64011f0edf5d967a8 (diff)
parent2d4d61e967baa460fa45abd4fd6bccfb12fe3cac (diff)
Merge pull request #6321 from stenzek/efb-savestates
Support saving EFB and texture cache in save states
Diffstat (limited to 'Source/Core/VideoCommon/Fifo.cpp')
-rw-r--r--Source/Core/VideoCommon/Fifo.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/Source/Core/VideoCommon/Fifo.cpp b/Source/Core/VideoCommon/Fifo.cpp
index 36a9ee7307..f63aaff805 100644
--- a/Source/Core/VideoCommon/Fifo.cpp
+++ b/Source/Core/VideoCommon/Fifo.cpp
@@ -299,14 +299,15 @@ void RunGpuLoop()
[] {
const SConfig& param = SConfig::GetInstance();
+ // Run events from the CPU thread.
+ AsyncRequests::GetInstance()->PullEvents();
+
// Do nothing while paused
if (!s_emu_running_state.IsSet())
return;
if (s_use_deterministic_gpu_thread)
{
- AsyncRequests::GetInstance()->PullEvents();
-
// All the fifo/CP stuff is on the CPU. We just need to run the opcode decoder.
u8* seen_ptr = s_video_buffer_seen_ptr;
u8* write_ptr = s_video_buffer_write_ptr;
@@ -321,9 +322,6 @@ void RunGpuLoop()
else
{
CommandProcessor::SCPFifoStruct& fifo = CommandProcessor::fifo;
-
- AsyncRequests::GetInstance()->PullEvents();
-
CommandProcessor::SetCPStatusFromGPU();
// check if we are able to run this buffer