[Mesa-dev] [PATCH 1/2] anv/android: Fix Autotools build for VK_ANDROID_native_buffer
Chad Versace
chadversary at chromium.org
Thu Jun 28 03:40:49 UTC 2018
Changes to vk.xml and anv_entrypoints_gen.py broke the Autotools build
on Android. The changes undef'd the VK_ANDROID_native_buffer entrypoints in anv_entrypoints.h.
Fix it with CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR.
See-Also: 63525ba7 "android: enable VK_ANDROID_native_buffer"
Cc: Tapani Pälli <tapani.palli at intel.com>
Cc: Tomasz Figa <tfiga at chromium.org>
---
src/intel/Makefile.vulkan.am | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/intel/Makefile.vulkan.am b/src/intel/Makefile.vulkan.am
index 4a80c3ae412..9555d98095b 100644
--- a/src/intel/Makefile.vulkan.am
+++ b/src/intel/Makefile.vulkan.am
@@ -164,7 +164,10 @@ VULKAN_LIB_DEPS = \
-lm
if HAVE_PLATFORM_ANDROID
-VULKAN_CPPFLAGS += $(ANDROID_CPPFLAGS)
+VULKAN_CPPFLAGS += \
+ $(ANDROID_CPPFLAGS) \
+ -DVK_USE_PLATFORM_ANDROID_KHR
+
VULKAN_CFLAGS += $(ANDROID_CFLAGS)
VULKAN_LIB_DEPS += $(ANDROID_LIBS)
VULKAN_SOURCES += $(VULKAN_ANDROID_FILES)
--
2.18.0.rc2.346.g013aa6912e-goog
More information about the mesa-dev
mailing list