From e66f034fb3595cedfa5fcf3427e9cbc4132fd675 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Mon, 13 Jul 2020 23:31:14 +0200 Subject: [PATCH] Readback: Downgrade from vkWaitDeviceIdle to vkWaitQueueIdle. Probably effectively pretty much the same. --- ext/native/thin3d/VulkanRenderManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/native/thin3d/VulkanRenderManager.cpp b/ext/native/thin3d/VulkanRenderManager.cpp index d8d50bae3a..c790b6eb57 100644 --- a/ext/native/thin3d/VulkanRenderManager.cpp +++ b/ext/native/thin3d/VulkanRenderManager.cpp @@ -1188,8 +1188,8 @@ void VulkanRenderManager::EndSyncFrame(int frame) { Submit(frame, false); // This is brutal! Should probably wait for a fence instead, not that it'll matter much since we'll - // still stall everything. - vkDeviceWaitIdle(vulkan_->GetDevice()); + // still stall everything on our queue. + vkQueueWaitIdle(vulkan_->GetGraphicsQueue()); // At this point we can resume filling the command buffers for the current frame since // we know the device is idle - and thus all previously enqueued command buffers have been processed.