mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
meson: Fix missing xcb-xrandr dependency for Vulkan X11 WSI
Fixes a build failure when building any Vulkan driver for the X11 platform with -Dxlib-lease=disabled. For example: /usr/bin/ld: src/vulkan/wsi/libvulkan_wsi.a(wsi_common_x11.c.o): in function `wsi_x11_detect_xwayland': src/vulkan/wsi/wsi_common_x11.c:123: undefined reference to `xcb_randr_query_version_unchecked' Fixes:1de2fd0cf2"wsi/x11: Always link against xcb-xrandr" Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Reviewed-by: Michel Dänzer <mdaenzer@redhat.com> Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9972> (cherry picked from commit2470bcb946)
This commit is contained in:
parent
da033c13ce
commit
6870d9097b
2 changed files with 4 additions and 2 deletions
|
|
@ -220,7 +220,7 @@
|
|||
"description": "meson: Fix missing xcb-xrandr dependency for Vulkan X11 WSI",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "1de2fd0cf205eda4f26c97a323d1cc509f3668f9"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1859,8 +1859,10 @@ if with_platform_x11
|
|||
with_gallium_omx != 'disabled'))
|
||||
dep_xcb_xfixes = dependency('xcb-xfixes')
|
||||
endif
|
||||
if with_xlib_lease
|
||||
if with_xlib_lease or with_any_vk
|
||||
dep_xcb_xrandr = dependency('xcb-randr')
|
||||
endif
|
||||
if with_xlib_lease
|
||||
dep_xlib_xrandr = dependency('xrandr', version : '>= 1.3')
|
||||
endif
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue