vulkan/wsi: Set the right stage flags for semaphore waits

This is currently technically broken for compute.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Cc: mesa-stable@lists.freedesktop.org
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16333>
(cherry picked from commit 233be8ee59)
This commit is contained in:
Jason Ekstrand 2021-05-21 15:31:06 -05:00 committed by Dylan Baker
parent ca8af9c529
commit aab9d6df50
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@
"description": "vulkan/wsi: Set the right stage flags for semaphore waits",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -964,7 +964,7 @@ wsi_common_queue_present(const struct wsi_device *wsi,
goto fail_present;
}
for (uint32_t s = 0; s < pPresentInfo->waitSemaphoreCount; s++)
stage_flags[s] = VK_PIPELINE_STAGE_ALL_GRAPHICS_BIT;
stage_flags[s] = VK_PIPELINE_STAGE_ALL_COMMANDS_BIT;
submit_info.pWaitDstStageMask = stage_flags;
}