diff --git a/src/video_core/amdgpu/liverpool.cpp b/src/video_core/amdgpu/liverpool.cpp index 5dd3edd6..1df08014 100644 --- a/src/video_core/amdgpu/liverpool.cpp +++ b/src/video_core/amdgpu/liverpool.cpp @@ -123,6 +123,10 @@ void Liverpool::Process(std::stop_token stoken) { if (task.done()) { task.destroy(); + if (rasterizer) { + rasterizer->Flush(); + } + std::scoped_lock lock{queue.m_access}; queue.submits.pop(); @@ -134,10 +138,6 @@ void Liverpool::Process(std::stop_token stoken) { if (submit_done) { VideoCore::EndCapture(); - - if (rasterizer) { - rasterizer->Flush(); - } submit_done = false; }