[Mesa-dev] [PATCH v2 06/18] anv: Implement VK_KHX_external_memory

Jason Ekstrand jason at jlekstrand.net
Tue Mar 14 02:26:08 UTC 2017


There's really nothing for us to do here.  So long as the user doesn't
set any crazy environment variables such as INTEL_VK_HIZ=false, all of
the compression formats etc. should "just work" at least for opaque
handle types.
---
 src/intel/vulkan/anv_device.c           | 6 +++++-
 src/intel/vulkan/anv_entrypoints_gen.py | 1 +
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index f92a313..385a806 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -314,7 +314,11 @@ static const VkExtensionProperties device_extensions[] = {
    {
       .extensionName = VK_KHR_DESCRIPTOR_UPDATE_TEMPLATE_EXTENSION_NAME,
       .specVersion = 1,
-   }
+   },
+   {
+      .extensionName = VK_KHX_EXTERNAL_MEMORY_EXTENSION_NAME,
+      .specVersion = 1,
+   },
 };
 
 static void *
diff --git a/src/intel/vulkan/anv_entrypoints_gen.py b/src/intel/vulkan/anv_entrypoints_gen.py
index 2c084ae..e8cdfb7 100644
--- a/src/intel/vulkan/anv_entrypoints_gen.py
+++ b/src/intel/vulkan/anv_entrypoints_gen.py
@@ -39,6 +39,7 @@ supported_extensions = [
    'VK_KHR_wayland_surface',
    'VK_KHR_xcb_surface',
    'VK_KHR_xlib_surface',
+   'VK_KHX_external_memory',
    'VK_KHX_external_memory_capabilities',
 ]
 
-- 
2.5.0.400.gff86faf



More information about the mesa-dev mailing list