aboutsummaryrefslogtreecommitdiff
path: root/src/video_core/renderer_vulkan/vk_swapchain.h
diff options
context:
space:
mode:
authorameerj <52414509+ameerj@users.noreply.github.com>2021-09-02 01:26:18 -0400
committerameerj <52414509+ameerj@users.noreply.github.com>2021-09-02 13:13:20 -0400
commit7d854fbdb074f38f465403ce3d5de78288ddc570 (patch)
treef5f137e360b481e1804796cded4b1d2695f6911c /src/video_core/renderer_vulkan/vk_swapchain.h
parentb2572a56d3ab3c327f766d718bbdd16be6bc1635 (diff)
renderer_vulkan: Wait on present semaphore at queue submit
The present semaphore is being signalled by the call to acquire the swapchain image. This semaphore is meant to be waited on when rendering to the swapchain image. Currently it is waited on when presenting, but moving its usage to be waited on in the command buffer submission allows for proper usage of this semaphore. Fixes the device lost when launching titles on the Intel Linux Mesa driver.
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_swapchain.h')
-rw-r--r--src/video_core/renderer_vulkan/vk_swapchain.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_swapchain.h b/src/video_core/renderer_vulkan/vk_swapchain.h
index 35c2cdc14..bbc8f07a8 100644
--- a/src/video_core/renderer_vulkan/vk_swapchain.h
+++ b/src/video_core/renderer_vulkan/vk_swapchain.h
@@ -72,6 +72,10 @@ public:
return image_format;
}
+ VkSemaphore CurrentPresentSemaphore() const {
+ return *present_semaphores[frame_index];
+ }
+
private:
void CreateSwapchain(const VkSurfaceCapabilitiesKHR& capabilities, u32 width, u32 height,
bool srgb);