rusticl: add x11 dependency

This is needed by `glx.h` pulling in `X11/Xlib.h`

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/10221
Fixes: df0623e51a ("rusticl, meson: Add gl/egl/glx bindings")
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26394>
This commit is contained in:
Karol Herbst
2023-11-29 12:33:56 +01:00
committed by Marge Bot
parent 338319741c
commit 494fd5d068
2 changed files with 6 additions and 0 deletions

View File

@@ -2069,6 +2069,9 @@ if with_platform_x11
if with_xlib_lease
dep_xlib_xrandr = dependency('xrandr', version : '>= 1.3')
endif
elif with_gallium_rusticl
# needed for GL sharing extension
dep_x11 = dependency('x11')
endif
if with_dri

View File

@@ -154,6 +154,9 @@ rusticl_opencl_bindings_rs = rust.bindgen(
include_directories : [
inc_include,
],
dependencies : [
dep_x11,
],
c_args : [
rusticl_bindgen_c_args,
cl_c_args,