anv/android: set ANV_BO_ALLOC_EXTERNAL for imported AHW

This fixes some cacheline flush artifacts

Signed-off-by: Juston Li <justonli@google.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29882>
This commit is contained in:
Juston Li
2024-06-21 11:52:22 -07:00
committed by Marge Bot
parent 9eeaa4618f
commit 33dd38f9d5

View File

@@ -307,7 +307,8 @@ anv_import_ahw_memory(VkDevice device_h,
if (dma_buf < 0)
return VK_ERROR_INVALID_EXTERNAL_HANDLE;
VkResult result = anv_device_import_bo(device, dma_buf, 0,
VkResult result = anv_device_import_bo(device, dma_buf,
ANV_BO_ALLOC_EXTERNAL,
0 /* client_address */,
&mem->bo);
assert(result == VK_SUCCESS);