radv: fix build on Android 7 (v2)
authorMauro Rossi <issor.oruam@gmail.com>
Thu, 23 Jul 2020 20:50:32 +0000 (22:50 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 30 Jul 2020 17:10:31 +0000 (17:10 +0000)
commit80c135e6a6ade34f451e694d1c54598a75b1243e
tree4fe82a3edd3b9e96f2975656d2ee06f999ffd73f
parente1b114868a164f8b4e0e4aeb8e79647519abc5db
radv: fix build on Android 7 (v2)

Fixes the following building error:

external/mesa/src/amd/vulkan/radv_android.c:28:10: fatal error:
'vndk/hardware_buffer.h' file not found
         ^~~~~~~~~~~~~~~~~~~~~~~~

(v2) use the existing preprocessor condition #if ANDROID_API_LEVEL >= 26

Fixes: f36b527 "radv/android: Add android hardware buffer queries."
Reported-and-tested-by: youling 257 <youling257@gmail.com>
Signed-off-by: Mauro Rossi <issor.oruam@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6051>
src/amd/vulkan/radv_android.c