anv: apply ANV_BO_ALLOC_IMPLICIT_SYNC for external memory
authorYiwei Zhang <zzyiwei@chromium.org>
Wed, 10 May 2023 05:38:58 +0000 (05:38 +0000)
committerMarge Bot <emma+marge@anholt.net>
Wed, 10 May 2023 14:33:53 +0000 (14:33 +0000)
commitb2d636b275b058e8539b94bcb9f1217fe9dab918
tree444ad87b3ffa94658f28a36a4ae1a1c168b88d91
parentbcdd5b5e748c1da2ef99985c4e352278bc171b65
anv: apply ANV_BO_ALLOC_IMPLICIT_SYNC for external memory

This is necessary to make anv work with clients like VA-API which relies
on implicit fencing only. The bahavior matches iris i915_batch_submit.

Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22937>
src/intel/vulkan/anv_device.c