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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user