summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_device.c
diff options
context:
space:
mode:
authorKevin Strasser <kevin.strasser@intel.com>2016-08-12 14:17:20 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-08-15 09:47:06 -0700
commit71258e9462c9cfb4c8b567713af5018928ef744d (patch)
treed549d437c967e373e41f57dcd21e8dd96cf50b74 /src/intel/vulkan/anv_device.c
parent5d9b50e596c9d81c37ce0844ae0f8c9da3f6bea6 (diff)
downloadexternal_mesa3d-71258e9462c9cfb4c8b567713af5018928ef744d.zip
external_mesa3d-71258e9462c9cfb4c8b567713af5018928ef744d.tar.gz
external_mesa3d-71258e9462c9cfb4c8b567713af5018928ef744d.tar.bz2
anv/x11: Add support for Xlib platform
Some applications continue to use the Xlib client library and expect that VK_KHR_xlib_surface will be available in the driver. Service these applications by converting the Display pointer to xcb_connection_t and use the existing xcb code in the driver. Signed-off-by: Kevin Strasser <kevin.strasser@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to 'src/intel/vulkan/anv_device.c')
-rw-r--r--src/intel/vulkan/anv_device.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c
index be3d333..e64790e 100644
--- a/src/intel/vulkan/anv_device.c
+++ b/src/intel/vulkan/anv_device.c
@@ -182,6 +182,12 @@ static const VkExtensionProperties global_extensions[] = {
.specVersion = 5,
},
#endif
+#ifdef VK_USE_PLATFORM_XLIB_KHR
+ {
+ .extensionName = VK_KHR_XLIB_SURFACE_EXTENSION_NAME,
+ .specVersion = 5,
+ },
+#endif
#ifdef VK_USE_PLATFORM_WAYLAND_KHR
{
.extensionName = VK_KHR_WAYLAND_SURFACE_EXTENSION_NAME,