[Mesa-dev] [PATCH 2/2] gallium: always build glsl for gallium

Marek Olšák maraeo at gmail.com
Tue Jan 12 11:46:24 PST 2016


From: Jammy Zhou <Jammy.Zhou at amd.com>

It is needed if the GL/ES build is disabled. Otherwise, there will
be an error that nir_opcodes.h is missing. The motivation is to allow
building Gallium VDPAU/OMX/VA without OpenGL.

For example:
./autogen.sh --enable-vdpau --disable-opengl --disable-gles1 \
  -disable-gles2 --with-gallium-drivers=radeonsi --with-dri-drivers= \
  --disable-egl --disable-xvmc --disable-dri

Signed-off-by: Jammy Zhou <Jammy.Zhou at amd.com>
Acked-by: Michel Dänzer <michel.daenzer at amd.com>
Signed-off-by: Marek Olšák <marek.olsak at amd.com>
---
 src/Makefile.am | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/Makefile.am b/src/Makefile.am
index 0d49bcd..081c392 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -44,6 +44,9 @@ SUBDIRS += egl
 endif
 
 if HAVE_GALLIUM
+if !NEED_OPENGL_COMMON
+SUBDIRS += glsl
+endif
 SUBDIRS += gallium
 endif
 
-- 
2.1.4



More information about the mesa-dev mailing list