Mesa (master): radv: fix build on Android 7 (v2)

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jul 30 17:32:45 UTC 2020


Module: Mesa
Branch: master
Commit: 80c135e6a6ade34f451e694d1c54598a75b1243e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=80c135e6a6ade34f451e694d1c54598a75b1243e

Author: Mauro Rossi <issor.oruam at gmail.com>
Date:   Thu Jul 23 22:50:32 2020 +0200

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 at gmail.com>
Signed-off-by: Mauro Rossi <issor.oruam at gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6051>

---

 src/amd/vulkan/radv_android.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_android.c b/src/amd/vulkan/radv_android.c
index 6be0391b8d9..b445b30e0ff 100644
--- a/src/amd/vulkan/radv_android.c
+++ b/src/amd/vulkan/radv_android.c
@@ -25,13 +25,13 @@
 #include <hardware/gralloc.h>
 #include <hardware/hardware.h>
 #include <hardware/hwvulkan.h>
-#include <vndk/hardware_buffer.h>
 #include <vulkan/vk_android_native_buffer.h>
 #include <vulkan/vk_icd.h>
 #include <libsync.h>
 
 #if ANDROID_API_LEVEL >= 26
 #include <hardware/gralloc1.h>
+#include <vndk/hardware_buffer.h>
 #endif
 #endif
 



More information about the mesa-commit mailing list