mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
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:
parent
9eeaa4618f
commit
33dd38f9d5
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue