From 0b18ec8208d90bb9a70dabd0f035b43f549c6766 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Sat, 8 May 2021 19:08:53 +0300 Subject: [PATCH] vk: Allow flipping without wait --- rpcs3/Emu/RSX/VK/vkutils/swapchain.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/RSX/VK/vkutils/swapchain.hpp b/rpcs3/Emu/RSX/VK/vkutils/swapchain.hpp index ba58a37cf8..f8f5655669 100644 --- a/rpcs3/Emu/RSX/VK/vkutils/swapchain.hpp +++ b/rpcs3/Emu/RSX/VK/vkutils/swapchain.hpp @@ -760,8 +760,12 @@ namespace vk present.swapchainCount = 1; present.pSwapchains = &m_vk_swapchain; present.pImageIndices = ℑ - present.waitSemaphoreCount = 1; - present.pWaitSemaphores = &semaphore; + + if (semaphore != VK_NULL_HANDLE) + { + present.waitSemaphoreCount = 1; + present.pWaitSemaphores = &semaphore; + } return _vkQueuePresentKHR(dev.get_present_queue(), &present); }