hasvk: include "vk_android.h" header in anv_android.c
authorMauro Rossi <issor.oruam@gmail.com>
Sat, 1 Apr 2023 11:24:19 +0000 (13:24 +0200)
committerMauro Rossi <issor.oruam@gmail.com>
Sun, 2 Apr 2023 21:30:42 +0000 (23:30 +0200)
commitb40e7dcf827fffbcb907ee0ce533a222e702c335
treee64bc894b5226f2ced663174ec4a1f82e417c7e2
parent4de9a4b2b8c41864aadae89be705ef125a745a0a
hasvk: include "vk_android.h" header in anv_android.c

Fixes the following building errors:

../src/intel/vulkan_hasvk/anv_android.c:387:34: error: implicit declaration of function 'vk_alloc_ahardware_buffer' is invalid in C99 [-Werror,-
Wimplicit-function-declaration]
   struct AHardwareBuffer *ahw = vk_alloc_ahardware_buffer(pAllocateInfo);
                                 ^
../src/intel/vulkan_hasvk/anv_android.c:387:28: error: incompatible integer to pointer conversion initializing 'struct AHardwareBuffer *' with an expression of type 'int' [-Werror,-Wint-conversion]
   struct AHardwareBuffer *ahw = vk_alloc_ahardware_buffer(pAllocateInfo);
                           ^     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.

Fixes: b16cfe23 ("vulkan,anv,hasvk,radv: Unify Android hardware buffer creation")
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22251>
src/intel/vulkan_hasvk/anv_android.c