turnip: set MSM_SUBMIT_SYNCOBJ_RESET for submit pWaitSemaphores
authorJonathan Marek <jonathan@marek.ca>
Tue, 29 Sep 2020 02:40:51 +0000 (22:40 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 30 Sep 2020 00:32:40 +0000 (00:32 +0000)
From VK spec:

"the act of waiting for a binary semaphore also unsignals that semaphore"

Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6719>

src/freedreno/vulkan/tu_drm.c

index 7ec10d9..d23aab8 100644 (file)
@@ -660,7 +660,7 @@ tu_QueueSubmit(VkQueue _queue,
             continue;
          in_syncobjs[nr_in_syncobjs++] = (struct drm_msm_gem_submit_syncobj) {
             .handle = part->syncobj,
-            .flags = 0,
+            .flags = MSM_SUBMIT_SYNCOBJ_RESET,
          };
       }