summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/AsyncRequests.cpp
diff options
context:
space:
mode:
authorStenzek <stenzek@gmail.com>2019-06-29 18:35:12 +1000
committerStenzek <stenzek@gmail.com>2019-07-24 04:08:25 +1000
commitb26bb0605b962456720519b273f171919ebfb65d (patch)
tree726c68df8d167671bc161c27d59d05532330d896 /Source/Core/VideoCommon/AsyncRequests.cpp
parenta25a4e07083d4e20b5be6192892c346c4549ed73 (diff)
VideoBackendBase: Do save state logic on the GPU thread
Diffstat (limited to 'Source/Core/VideoCommon/AsyncRequests.cpp')
-rw-r--r--Source/Core/VideoCommon/AsyncRequests.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/AsyncRequests.cpp b/Source/Core/VideoCommon/AsyncRequests.cpp
index 11a37afdfa..67a3441af1 100644
--- a/Source/Core/VideoCommon/AsyncRequests.cpp
+++ b/Source/Core/VideoCommon/AsyncRequests.cpp
@@ -154,6 +154,10 @@ void AsyncRequests::HandleEvent(const AsyncRequests::Event& e)
case Event::PERF_QUERY:
g_perf_query->FlushResults();
break;
+
+ case Event::DO_SAVE_STATE:
+ g_video_backend->DoStateGPUThread(*e.do_save_state.p);
+ break;
}
}