diff options
author | Abhishek Kumar <[email protected]> | 2020-04-21 06:28:31 +0000 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-04-21 11:50:15 +0000 |
commit | f06e4ab3190a0a715447c4df4017892adb8708dc (patch) | |
tree | 34d49ab9db05968ce37b7ee056b53c39ad74e10b /src/intel/vulkan | |
parent | 829013d0cad0fa2513b32ae07cf8d745f6e5c62d (diff) |
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 <[email protected]>
Reviewed-by: Tapani Pälli <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4655>
Diffstat (limited to 'src/intel/vulkan')
-rw-r--r-- | src/intel/vulkan/anv_android.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/vulkan/anv_android.c b/src/intel/vulkan/anv_android.c index 74b5b062286..b46a990b32e 100644 --- a/src/intel/vulkan/anv_android.c +++ b/src/intel/vulkan/anv_android.c @@ -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 |