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.
This commit is contained in:
Simon Ser 2022-12-02 18:10:29 +01:00 committed by Simon Zeni
parent 47a038c90e
commit 79aea58834

View file

@ -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) {