summaryrefslogtreecommitdiffstats
path: root/src/vulkan
diff options
context:
space:
mode:
authorMaxime <[email protected]>2018-09-24 08:46:22 +1000
committerDave Airlie <[email protected]>2018-09-27 16:31:42 +1000
commitdd333c66bdcb11c0d7c522642761490aced2b7ab (patch)
treeeff07889057a0a6115145fdc7c929389faa9cbdb /src/vulkan
parent40585ddb48620325816f1526bb6e3407f8356490 (diff)
vulkan: Disable randr lease for libxcb < 1.13
Since the Randr lease code was added, compiling against libxcb 1.12 no longer works. CC: [email protected] Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108024 Fixes: 7ab1fffcd2a504024b16e408de329f7a94553ecc Tested-By: Maxime <[email protected]> Fixes: 7ab1fffcd2a504024b16 "vulkan: Add EXT_acquire_xlib_display [v5]"
Diffstat (limited to 'src/vulkan')
-rw-r--r--src/vulkan/wsi/wsi_common_display.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vulkan/wsi/wsi_common_display.c b/src/vulkan/wsi/wsi_common_display.c
index 1dbed08d8a7..5cebde5b9bc 100644
--- a/src/vulkan/wsi/wsi_common_display.c
+++ b/src/vulkan/wsi/wsi_common_display.c
@@ -2308,6 +2308,7 @@ wsi_acquire_xlib_display(VkPhysicalDevice physical_device,
if (!crtc)
return VK_ERROR_INITIALIZATION_FAILED;
+#ifdef HAVE_DRI3_MODIFIERS
xcb_randr_lease_t lease = xcb_generate_id(connection);
xcb_randr_create_lease_cookie_t cl_c =
xcb_randr_create_lease(connection, root, lease, 1, 1,
@@ -2328,6 +2329,7 @@ wsi_acquire_xlib_display(VkPhysicalDevice physical_device,
return VK_ERROR_INITIALIZATION_FAILED;
wsi->fd = fd;
+#endif
return VK_SUCCESS;
}