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>
(cherry picked from commit aed5a974e9)
This commit is contained in:
Eric Engestrom 2024-07-22 11:44:12 +02:00 committed by Eric Engestrom
parent 43d3468267
commit 5a6e55e1bb
2 changed files with 3 additions and 3 deletions

View file

@ -294,7 +294,7 @@
"description": "meson: xcb & xcb-randr are needed by the loader whenever x11 is built",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -2076,11 +2076,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')