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/renderer_vulkan.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/renderer_vulkan.cpp')
-rw-r--r-- | src/video_core/renderer_vulkan/renderer_vulkan.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/video_core/renderer_vulkan/renderer_vulkan.cpp b/src/video_core/renderer_vulkan/renderer_vulkan.cpp index 7c9b0d6db..9ff0a28cd 100644 --- a/src/video_core/renderer_vulkan/renderer_vulkan.cpp +++ b/src/video_core/renderer_vulkan/renderer_vulkan.cpp @@ -164,7 +164,8 @@ void RendererVulkan::SwapBuffers(const Tegra::FramebufferConfig* framebuffer) { blit_screen.Recreate(); } const VkSemaphore render_semaphore = blit_screen.DrawToSwapchain(*framebuffer, use_accelerated); - scheduler.Flush(render_semaphore); + const VkSemaphore present_semaphore = swapchain.CurrentPresentSemaphore(); + scheduler.Flush(render_semaphore, present_semaphore); scheduler.WaitWorker(); swapchain.Present(render_semaphore); |