[Mesa-dev] [PATCH 1/2] configure.ac: don't require EGL/DRM ang GBM if OpenGL is disabled

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


From: Marek Olšák <marek.olsak at amd.com>

This allows building VDPAU/OMX/VA drivers without OpenGL and its
dependencies.
---
 configure.ac | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/configure.ac b/configure.ac
index 8d19dab..04b5fd8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2159,7 +2159,12 @@ gallium_require_drm_loader() {
     fi
 }
 
+dnl This is for Glamor. Skip this if OpenGL is disabled.
 require_egl_drm() {
+    if test "x$enable_opengl" = xno; then
+        return 0
+    fi
+
     case "$with_egl_platforms" in
         *drm*)
             ;;
-- 
2.1.4



More information about the mesa-dev mailing list