mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 06:58:05 +02:00
vulkan: Disable randr lease for libxcb < 1.13
Since the Randr lease code was added, compiling against libxcb 1.12 no longer works. CC: mesa-stable@lists.freedesktop.org Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108024 Fixes:7ab1fffcd2Tested-By: Maxime <berillions@gmail.com> Fixes:7ab1fffcd2"vulkan: Add EXT_acquire_xlib_display [v5]" (cherry picked from commitdd333c66bd)
This commit is contained in:
parent
4c34a42189
commit
3c24f60cca
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue