diff options
author | Kevin Strasser <[email protected]> | 2016-08-12 14:17:20 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-08-15 09:47:06 -0700 |
commit | 71258e9462c9cfb4c8b567713af5018928ef744d (patch) | |
tree | d549d437c967e373e41f57dcd21e8dd96cf50b74 /src/intel/vulkan/anv_device.c | |
parent | 5d9b50e596c9d81c37ce0844ae0f8c9da3f6bea6 (diff) |
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 <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_device.c')
-rw-r--r-- | src/intel/vulkan/anv_device.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index be3d333e165..e64790e9685 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, |