mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-25 22:25:58 +01:00
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:
parent
47a038c90e
commit
79aea58834
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue