vulkan: Add EXT_acquire_xlib_display [v5]

Graphics / Mesa 3D Graphics Library / Mesa - Keith Packard [keithp.com] - 19 June 2018 21:17 EDT

This extension adds the ability to borrow an X RandR output for temporary use directly by a Vulkan application. For DRM, we use the Linux resource leasing mechanism.

v2: Clean up xlib_lease detection

- Use separate temporary '_xlib_lease' variable to hold the option value to avoid changin the type of a variable.

- Use boolean expressions instead of additional if statements to compute resulting with_xlib_lease value.

- Simplify addition of VK_USE_PLATFORM_XLIB_XRANDR_KHR to
vulkan_wsi_args

7ab1fffcd2 vulkan: Add EXT_acquire_xlib_display [v5]
configure.ac | 32 +++
meson.build | 11 +
meson_options.txt | 7 +
src/vulkan/Makefile.am | 5 +
src/vulkan/wsi/meson.build | 5 +
src/vulkan/wsi/wsi_common_display.c | 488 ++++++++++++++++++++++++++++++++++++
src/vulkan/wsi/wsi_common_display.h | 17 ++
7 files changed, 565 insertions(+)

Upstream: cgit.freedesktop.org


  • Share