From b0ec685f10cc406a94ba3f9d956a30dcb0f90360 Mon Sep 17 00:00:00 2001 From: IndecisiveTurtle <47210458+raphaelthegreat@users.noreply.github.com> Date: Mon, 16 Dec 2024 02:18:06 +0200 Subject: [PATCH] liverpool: Flush vulkan work on task finish --- src/video_core/amdgpu/liverpool.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; }