anv_android: Add missing type

Fixes: 2797c75426 ("anv: fix AHB leak upon exportable allocation")
Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11068>
This commit is contained in:
Roman Stratiienko 2021-05-28 18:52:47 +03:00 committed by Marge Bot
parent 1d2a33c705
commit e91445464f

View file

@ -440,7 +440,7 @@ anv_create_ahw_memory(VkDevice device_h,
const VkImportAndroidHardwareBufferInfoANDROID import_info = {
.buffer = ahw,
};
result = anv_import_ahw_memory(device_h, mem, &import_info);
VkResult result = anv_import_ahw_memory(device_h, mem, &import_info);
/* Release a reference to avoid leak for AHB allocation. */
AHardwareBuffer_release(ahw);