[Mesa-dev] [PATCH 07/21] anv: Implement VK_KHX_external_memory
Jason Ekstrand
jason at jlekstrand.net
Fri Apr 14 17:37:54 UTC 2017
This is the trivial implementation that just exposes the extension
string but exposes zero external handle types.
Reviewed-by: Chad Versace <chadversary at chromium.org>
---
src/intel/vulkan/anv_device.c | 4 ++++
src/intel/vulkan/anv_entrypoints_gen.py | 1 +
2 files changed, 5 insertions(+)
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index d8de707..a7ae6ce 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -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 *
diff --git a/src/intel/vulkan/anv_entrypoints_gen.py b/src/intel/vulkan/anv_entrypoints_gen.py
index 245d6d0..400b567 100644
--- a/src/intel/vulkan/anv_entrypoints_gen.py
+++ b/src/intel/vulkan/anv_entrypoints_gen.py
@@ -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',
]
--
2.5.0.400.gff86faf
More information about the mesa-dev
mailing list