anv: Implement VK_KHX_external_memory
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 15 Feb 2017 02:57:22 +0000 (18:57 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 28 Apr 2017 03:08:46 +0000 (20:08 -0700)
This is the trivial implementation that just exposes the extension
string but exposes zero external handle types.

Reviewed-by: Chad Versace <chadversary@chromium.org>
src/intel/vulkan/anv_device.c
src/intel/vulkan/anv_entrypoints_gen.py

index df6f7ad7636e1e8205b8e9b0aa9b370fcb489d01..da3752956e1375804cb4894de134ca8ed0131c7b 100644 (file)
@@ -362,6 +362,10 @@ static const VkExtensionProperties device_extensions[] = {
       .extensionName = VK_KHR_INCREMENTAL_PRESENT_EXTENSION_NAME,
       .specVersion = 1,
    },
+   {
+      .extensionName = VK_KHX_EXTERNAL_MEMORY_EXTENSION_NAME,
+      .specVersion = 1,
+   },
 };
 
 static void *
index 245d6d024e7e15055574121fefff4bc29d170e64..400b56766c7d30c5470e33f931de0188c473f38f 100644 (file)
@@ -45,6 +45,7 @@ SUPPORTED_EXTENSIONS = [
     'VK_KHR_wayland_surface',
     'VK_KHR_xcb_surface',
     'VK_KHR_xlib_surface',
+    'VK_KHX_external_memory',
     'VK_KHX_external_memory_capabilities',
 ]