anv: fix utrace signaling with Xe
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 11 Jul 2023 09:36:15 +0000 (12:36 +0300)
committerMarge Bot <emma+marge@anholt.net>
Tue, 11 Jul 2023 16:27:06 +0000 (16:27 +0000)
commita85b84ba1e205f665787ea643aa20912bebaca09
tree6c8bda9fe67dfe8fd704b27549706346cd1c8990
parent6b2fa965c6cb062d7a30ed056bf905fc6fd7cc72
anv: fix utrace signaling with Xe

utrace submits can either have a batch or not.

When there is a batch, the utrace vk_sync is signaled by the utrace
batch (because utrace does a timestamp buffer copy using its own
batch). When there is no batch, the utrace vk_sync should be signaled
by the application batch (no timestamp copy required, utrace can read
the timestamps when the application batch has completed).

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: fdea48df5e ("anv: Implement Xe version of anv_queue_exec_locked() and queue_exec_trace()")
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24085>
src/intel/vulkan/xe/anv_batch_chain.c