anv/android: fix assert in anv_import_ahw_memory
Commit fixes assert that triggers when running
dEQP-VK.api.external.memory.android_hardware_buffer.dedicated.buffer#bind_export_import_bind
on a debug build of Mesa.
Fixes: c79a528d ("anv/android: support import/export of AHardwareBuffer objects")
Signed-off-by: Abhishek Kumar <abhishek4.kumar@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4655>
This commit is contained in:
committed by
Marge Bot
parent
829013d0ca
commit
f06e4ab319
@@ -308,7 +308,7 @@ anv_import_ahw_memory(VkDevice device_h,
|
||||
VkResult result = anv_device_import_bo(device, dma_buf, 0,
|
||||
0 /* client_address */,
|
||||
&mem->bo);
|
||||
assert(VK_SUCCESS);
|
||||
assert(result == VK_SUCCESS);
|
||||
|
||||
/* "If the vkAllocateMemory command succeeds, the implementation must
|
||||
* acquire a reference to the imported hardware buffer, which it must
|
||||
|
||||
Reference in New Issue
Block a user