diff options
author | Fernando S <fsahmkow27@gmail.com> | 2021-09-11 22:35:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-11 22:35:52 +0200 |
commit | 472aad69db9480936eae4d3f07397f4bf71a1d47 (patch) | |
tree | 40364432f55cc13389ca918236283b19447780ff /src/video_core/renderer_vulkan/vk_swapchain.cpp | |
parent | Merge pull request #6981 from ameerj/nvflinger-hb-format (diff) | |
parent | renderer_vulkan: Wait on present semaphore at queue submit (diff) | |
download | yuzu-472aad69db9480936eae4d3f07397f4bf71a1d47.tar yuzu-472aad69db9480936eae4d3f07397f4bf71a1d47.tar.gz yuzu-472aad69db9480936eae4d3f07397f4bf71a1d47.tar.bz2 yuzu-472aad69db9480936eae4d3f07397f4bf71a1d47.tar.lz yuzu-472aad69db9480936eae4d3f07397f4bf71a1d47.tar.xz yuzu-472aad69db9480936eae4d3f07397f4bf71a1d47.tar.zst yuzu-472aad69db9480936eae4d3f07397f4bf71a1d47.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_swapchain.cpp')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_swapchain.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/video_core/renderer_vulkan/vk_swapchain.cpp b/src/video_core/renderer_vulkan/vk_swapchain.cpp index d990eefba..71b12efe8 100644 --- a/src/video_core/renderer_vulkan/vk_swapchain.cpp +++ b/src/video_core/renderer_vulkan/vk_swapchain.cpp @@ -107,14 +107,12 @@ void VKSwapchain::AcquireNextImage() { } void VKSwapchain::Present(VkSemaphore render_semaphore) { - const VkSemaphore present_semaphore{*present_semaphores[frame_index]}; - const std::array<VkSemaphore, 2> semaphores{present_semaphore, render_semaphore}; const auto present_queue{device.GetPresentQueue()}; const VkPresentInfoKHR present_info{ .sType = VK_STRUCTURE_TYPE_PRESENT_INFO_KHR, .pNext = nullptr, - .waitSemaphoreCount = render_semaphore ? 2U : 1U, - .pWaitSemaphores = semaphores.data(), + .waitSemaphoreCount = render_semaphore ? 1U : 0U, + .pWaitSemaphores = &render_semaphore, .swapchainCount = 1, .pSwapchains = swapchain.address(), .pImageIndices = &image_index, |