From 79aea5883454e4ef92df428a8874ca1e02392719 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 2 Dec 2022 18:10:29 +0100 Subject: render/vulkan: fix missing pSignalSemaphores for stage CB We were filling VkTimelineSemaphoreSubmitInfoKHR.pSignalSemaphoreValues, but we were missing VkSubmitInfo.pSignalSemaphores. This was causing VkTimelineSemaphoreSubmitInfoKHR.pSignalSemaphoreValues to be ignored. By chance, the render command buffer was using the next timeline point, so we were waiting for that instead. --- render/vulkan/renderer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/render/vulkan/renderer.c b/render/vulkan/renderer.c index 3721d466..7bd4576f 100644 --- a/render/vulkan/renderer.c +++ b/render/vulkan/renderer.c @@ -961,6 +961,8 @@ static void vulkan_end(struct wlr_renderer *wlr_renderer) { stage_sub->pNext = &stage_timeline_submit_info; stage_sub->commandBufferCount = 1u; stage_sub->pCommandBuffers = &pre_cb; + stage_sub->signalSemaphoreCount = 1; + stage_sub->pSignalSemaphores = &renderer->timeline_semaphore; ++submit_count; if (renderer->stage.last_timeline_point > 0) { -- cgit v1.2.3