summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authorMarkus Wick <degasus@users.noreply.github.com>2018-06-21 10:16:54 +0200
committerGitHub <noreply@github.com>2018-06-21 10:16:54 +0200
commitbf50348d9fac2b403e79b5bde396f134152ec704 (patch)
tree5d4706dd5d7faba45205e8615e9679ad67e97bd5 /Source/Core/VideoCommon
parentd8ba3034c35459a8c349841fdb3c4ad2d710a480 (diff)
parent38602198993f19871dcde5844633a90eb3560c32 (diff)
Merge pull request #6539 from degasus/async
VideoCommon: Flush the GPU pipeline on async requests.
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/AsyncRequests.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/AsyncRequests.cpp b/Source/Core/VideoCommon/AsyncRequests.cpp
index cab79c8bc2..e5d0bb3c27 100644
--- a/Source/Core/VideoCommon/AsyncRequests.cpp
+++ b/Source/Core/VideoCommon/AsyncRequests.cpp
@@ -7,6 +7,7 @@
#include "VideoCommon/AsyncRequests.h"
#include "VideoCommon/Fifo.h"
#include "VideoCommon/RenderBase.h"
+#include "VideoCommon/VertexManagerBase.h"
#include "VideoCommon/VideoBackendBase.h"
#include "VideoCommon/VideoCommon.h"
@@ -16,6 +17,10 @@ AsyncRequests::AsyncRequests() = default;
void AsyncRequests::PullEventsInternal()
{
+ // This is only called if the queue isn't empty.
+ // So just flush the pipeline to get accurate results.
+ g_vertex_manager->Flush();
+
std::unique_lock<std::mutex> lock(m_mutex);
m_empty.Set();