Mesa (main): vulkan/wsi: Set the right stage flags for semaphore waits

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed May 4 22:40:53 UTC 2022


Module: Mesa
Branch: main
Commit: 233be8ee592a0119501d9459fdafdc94c70902a4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=233be8ee592a0119501d9459fdafdc94c70902a4

Author: Jason Ekstrand <jason at jlekstrand.net>
Date:   Fri May 21 15:31:06 2021 -0500

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

This is currently technically broken for compute.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Reviewed-by: Adam Jackson <ajax at redhat.com>
Cc: mesa-stable at lists.freedesktop.org
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16333>

---

 src/vulkan/wsi/wsi_common.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/vulkan/wsi/wsi_common.c b/src/vulkan/wsi/wsi_common.c
index c1cecc2622a..60db4cb00a0 100644
--- a/src/vulkan/wsi/wsi_common.c
+++ b/src/vulkan/wsi/wsi_common.c
@@ -961,7 +961,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;
       }



More information about the mesa-commit mailing list