From 494fd5d06860fe511e6f70fa030a40efaf53c028 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Wed, 29 Nov 2023 12:33:56 +0100 Subject: [PATCH] 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: df0623e51a8 ("rusticl, meson: Add gl/egl/glx bindings") Signed-off-by: Karol Herbst Part-of: --- meson.build | 3 +++ src/gallium/frontends/rusticl/meson.build | 3 +++ 2 files changed, 6 insertions(+) diff --git a/meson.build b/meson.build index dc47214331d..6181c1439ed 100644 --- a/meson.build +++ b/meson.build @@ -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 diff --git a/src/gallium/frontends/rusticl/meson.build b/src/gallium/frontends/rusticl/meson.build index f6c28da414e..ee9d8c3fcd6 100644 --- a/src/gallium/frontends/rusticl/meson.build +++ b/src/gallium/frontends/rusticl/meson.build @@ -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,