anv: reset binary syncobj to be signaled before submission
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Mon, 22 Feb 2021 11:57:37 +0000 (13:57 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 22 Feb 2021 21:43:05 +0000 (21:43 +0000)
commitcb74cd816c0a0b1d6a715585414f8518cefbba5a
tree739b2ecfb1572c7ff5440704d5f64ef77652e500
parent38ae84b8daa1c2bc2f74093cf46ced5e252b04e5
anv: reset binary syncobj to be signaled before submission

Before we introduced the submission thread in 829699ba632b2b, once we
returned from vkQueueSubmit, all signaled syncobj would have a
i915_request/dma-fence waiting to be signaled by some work that would
submitted to HW by i915.

After this submission thread that is no longer the case. We added a
few checks in places like vkQueuePresentKHR() to wait for the binary
semaphores to materialize before we would hand things over to the WSI
code.

Unfortunately 829699ba632b2b forgot to reset the signaled binary
semaphore.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 829699ba632b2b ("anv: implement shareable timeline semaphores")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4276
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9188>
src/intel/vulkan/anv_queue.c