android: enable VK_ANDROID_native_buffer
authorTapani Pälli <tapani.palli@intel.com>
Wed, 16 May 2018 05:38:50 +0000 (08:38 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 21 May 2018 06:26:50 +0000 (09:26 +0300)
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 <tapani.palli@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Android.common.mk
src/intel/vulkan/anv_entrypoints_gen.py

index e8aed48c31ab1704cbcf6db216669c18639c409f..999e17789b128926922b5699be49d891355d4450 100644 (file)
@@ -73,6 +73,7 @@ LOCAL_CFLAGS += \
        -DHAVE_ENDIAN_H \
        -DHAVE_ZLIB \
        -DMAJOR_IN_SYSMACROS \
+       -DVK_USE_PLATFORM_ANDROID_KHR \
        -fvisibility=hidden \
        -Wno-sign-compare
 
index d603ac1b20bf35128899e6dfe2af0a56689be8a1..230671d36aeaedcd12cc9c871231c39512765097 100644 (file)
@@ -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']