diff options
author | Simon Ser <contact@emersion.fr> | 2022-12-02 18:10:29 +0100 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-12-02 19:28:13 +0000 |
commit | 79aea5883454e4ef92df428a8874ca1e02392719 (patch) | |
tree | a96f1f7b59deb11f137b36a5417604c125948467 /render/vulkan | |
parent | 47a038c90e95918f9e0292c6fb34b254c51d8570 (diff) |
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.
Diffstat (limited to 'render/vulkan')
-rw-r--r-- | render/vulkan/renderer.c | 2 |
1 files changed, 2 insertions, 0 deletions
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) { |