Module: Mesa
Branch: main
Commit: 494fd5d06860fe511e6f70fa030a40efaf53c028
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=494fd5d06860fe511e6f70fa030a40efaf53c028

Author: Karol Herbst <[email protected]>
Date:   Wed Nov 29 12:33:56 2023 +0100

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 <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26394>

---

 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,

Reply via email to