From f6c78584f61c066806b5adf74dcafe087710ee2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Fri, 23 Sep 2022 19:45:50 +0200 Subject: [PATCH] Readback fix --- Common/GPU/Vulkan/VulkanFrameData.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Common/GPU/Vulkan/VulkanFrameData.cpp b/Common/GPU/Vulkan/VulkanFrameData.cpp index fbd04d131f..e8d6f67784 100644 --- a/Common/GPU/Vulkan/VulkanFrameData.cpp +++ b/Common/GPU/Vulkan/VulkanFrameData.cpp @@ -146,11 +146,8 @@ void FrameData::SubmitPending(VulkanContext *vulkan, FrameSubmitType type, Frame hasPresentCommands = false; if (type == FrameSubmitType::Present) { - NOTICE_LOG(G3D, "Has present commands, Triggering fence"); fenceToTrigger = fence; } - } else { - NOTICE_LOG(G3D, "No present commands, not triggering fence"); } if (!numCmdBufs && fenceToTrigger == VK_NULL_HANDLE) { @@ -183,6 +180,7 @@ void FrameData::SubmitPending(VulkanContext *vulkan, FrameSubmitType type, Frame // Hard stall of the GPU, not ideal, but necessary so the CPU has the contents of the readback. vkWaitForFences(vulkan->GetDevice(), 1, &readbackFence, true, UINT64_MAX); vkResetFences(vulkan->GetDevice(), 1, &readbackFence); + syncDone = true; } }