summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTapani Pälli <[email protected]>2018-05-16 08:38:50 +0300
committerTapani Pälli <[email protected]>2018-05-21 09:26:50 +0300
commit63525ba730e3d8a466d7f6382a2b91f4c75dd171 (patch)
tree50afc3e089a846a5433b31893444658b7ef4fa21
parent437acae704337120c23a365b3d9aad92213cf500 (diff)
android: enable VK_ANDROID_native_buffer
Patch changes entrypoints generator to not skip this extension even though it is set as disabled in the xml. We also need compilation flag VK_USE_PLATFORM_ANDROID_KHR to be enabled. It looks like this extension got disabled in commit 69f447553c. v2: just remove the whole 'supported' attrib check + remove vk_icd.h compilation fix (fix in VulkanHeaders instead) Signed-off-by: Tapani Pälli <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
-rw-r--r--Android.common.mk1
-rw-r--r--src/intel/vulkan/anv_entrypoints_gen.py3
2 files changed, 1 insertions, 3 deletions
diff --git a/Android.common.mk b/Android.common.mk
index e8aed48c31a..999e17789b1 100644
--- a/Android.common.mk
+++ b/Android.common.mk
@@ -73,6 +73,7 @@ LOCAL_CFLAGS += \
-DHAVE_ENDIAN_H \
-DHAVE_ZLIB \
-DMAJOR_IN_SYSMACROS \
+ -DVK_USE_PLATFORM_ANDROID_KHR \
-fvisibility=hidden \
-Wno-sign-compare
diff --git a/src/intel/vulkan/anv_entrypoints_gen.py b/src/intel/vulkan/anv_entrypoints_gen.py
index d603ac1b20b..230671d36ae 100644
--- a/src/intel/vulkan/anv_entrypoints_gen.py
+++ b/src/intel/vulkan/anv_entrypoints_gen.py
@@ -495,9 +495,6 @@ def get_entrypoints(doc, entrypoints_to_defines, start_index):
if ext_name not in supported_exts:
continue
- if extension.attrib['supported'] != 'vulkan':
- continue
-
ext = supported_exts[ext_name]
ext.type = extension.attrib['type']