meson: xcb & xcb-randr are needed by the loader whenever x11 is built

Specifically, `src/loader/loader_dri_helper.c` needs them.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11536
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30292>
This commit is contained in:
Eric Engestrom
2024-07-22 11:44:12 +02:00
committed by Marge Bot
parent 65c92f0b82
commit aed5a974e9

View File

@@ -2102,11 +2102,11 @@ with_dri3_modifiers = false
with_dri3_explicit_sync = false
with_xcb_keysyms = false
if with_platform_x11
dep_xcb = dependency('xcb')
dep_xcb_xrandr = dependency('xcb-randr')
if with_glx == 'xlib'
dep_x11 = dependency('x11')
dep_xext = dependency('xext')
dep_xcb = dependency('xcb')
dep_xcb_xrandr = dependency('xcb-randr')
elif with_glx == 'dri'
dep_x11 = dependency('x11')
dep_xext = dependency('xext')