summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/Vulkan/CommandBufferManager.cpp
diff options
context:
space:
mode:
authorRobin Kertels <robin.kertels@gmail.com>2022-11-07 02:20:22 +0100
committerRobin Kertels <robin.kertels@gmail.com>2022-11-07 02:20:22 +0100
commit3beb22ed7f356635aabdf3c06d4de6ec13628d30 (patch)
tree27967a27eb4840a9bd7d1fda4a2ba5fa55a25112 /Source/Core/VideoBackends/Vulkan/CommandBufferManager.cpp
parentc931529e7aa5926b8a21a193bf8f80244b3ae888 (diff)
VideoBackends:Vulkan: Synchronize presentation
Synchronize with the submission thread if the last present is not done yet.
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/CommandBufferManager.cpp')
-rw-r--r--Source/Core/VideoBackends/Vulkan/CommandBufferManager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/CommandBufferManager.cpp b/Source/Core/VideoBackends/Vulkan/CommandBufferManager.cpp
index 19df14d4f3..8c9f744216 100644
--- a/Source/Core/VideoBackends/Vulkan/CommandBufferManager.cpp
+++ b/Source/Core/VideoBackends/Vulkan/CommandBufferManager.cpp
@@ -473,6 +473,7 @@ void CommandBufferManager::SubmitCommandBuffer(u32 command_buffer_index,
nullptr};
m_last_present_result = vkQueuePresentKHR(g_vulkan_context->GetPresentQueue(), &present_info);
+ m_last_present_done.Set();
if (m_last_present_result != VK_SUCCESS)
{
// VK_ERROR_OUT_OF_DATE_KHR is not fatal, just means we need to recreate our swap chain.