[Mesa-dev] [PATCH 6/7] anv: Implement VK_KHX_external_memory

Jason Ekstrand jason at jlekstrand.net
Mon Feb 27 18:25:04 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 9ee2e02..024e19f 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -305,7 +305,11 @@ static const VkExtensionProperties device_extensions[] = {
    {
       .extensionName = VK_KHR_SHADER_DRAW_PARAMETERS_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 6cf9f5f..d8816a5 100644
--- a/src/intel/vulkan/anv_entrypoints_gen.py
+++ b/src/intel/vulkan/anv_entrypoints_gen.py
@@ -37,6 +37,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