[Mesa-stable] [PATCH] vulkan: Disable randr lease for libxcb < 1.13
Stuart Young
cefiar at gmail.com
Sun Sep 23 22:46:22 UTC 2018
From: Maxime <berillions at gmail.com>
Since the Randr lease code was added, compiling against libxcb 1.12 no
longer works.
CC: mesa-stable at lists.freedesktop.org
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108024
Fixes: 7ab1fffcd2a504024b16e408de329f7a94553ecc
Tested-By: Maxime <berillions at gmail.com>
---
src/vulkan/wsi/wsi_common_display.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/vulkan/wsi/wsi_common_display.c b/src/vulkan/wsi/wsi_common_display.c
index e99b0465ec..e23d2983c9 100644
--- a/src/vulkan/wsi/wsi_common_display.c
+++ b/src/vulkan/wsi/wsi_common_display.c
@@ -2304,6 +2304,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,
@@ -2324,6 +2325,7 @@ wsi_acquire_xlib_display(VkPhysicalDevice physical_device,
return VK_ERROR_INITIALIZATION_FAILED;
wsi->fd = fd;
+#endif
return VK_SUCCESS;
}
--
2.11.0
More information about the mesa-stable
mailing list