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.
Simon Ser 2 years ago committed by Simon Zeni
parent 47a038c90e
commit 79aea58834

@ -961,6 +961,8 @@ static void vulkan_end(struct wlr_renderer *wlr_renderer) {
stage_sub->pNext = &stage_timeline_submit_info; stage_sub->pNext = &stage_timeline_submit_info;
stage_sub->commandBufferCount = 1u; stage_sub->commandBufferCount = 1u;
stage_sub->pCommandBuffers = &pre_cb; stage_sub->pCommandBuffers = &pre_cb;
stage_sub->signalSemaphoreCount = 1;
stage_sub->pSignalSemaphores = &renderer->timeline_semaphore;
++submit_count; ++submit_count;
if (renderer->stage.last_timeline_point > 0) { if (renderer->stage.last_timeline_point > 0) {

Loading…
Cancel
Save