anv: Only wait for queue sync if execbuf was properly executed
authorJosé Roberto de Souza <jose.souza@intel.com>
Tue, 16 Aug 2022 20:57:55 +0000 (13:57 -0700)
committerMarge Bot <emma+marge@anholt.net>
Mon, 22 Aug 2022 22:04:52 +0000 (22:04 +0000)
commit631794b8a90e820f4e6fe5acb1d79c35eaba7882
tree1150c5c401f2f101b65219747de9ac183c0ab1a0
parent7981936e46e8a714fb6a3b01d70bd235de9f0e59
anv: Only wait for queue sync if execbuf was properly executed

In case execbuf failed it would block execution until the maximum
timeout if DEBUG_SYNC is enabled.

While at it also removing the shadowing of result that would cause
the function result to not have its values updated in case
vk_sync_wait() returns a error.

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18110>
src/intel/vulkan/anv_batch_chain.c