anv/android: fix assert in anv_import_ahw_memory
authorAbhishek Kumar <abhishek4.kumar@intel.com>
Tue, 21 Apr 2020 06:28:31 +0000 (06:28 +0000)
committerMarge Bot <eric+marge@anholt.net>
Tue, 21 Apr 2020 11:50:15 +0000 (11:50 +0000)
commitf06e4ab3190a0a715447c4df4017892adb8708dc
tree34d49ab9db05968ce37b7ee056b53c39ad74e10b
parent829013d0cad0fa2513b32ae07cf8d745f6e5c62d
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>
src/intel/vulkan/anv_android.c