[Mesa-dev] [PATCH] configure.ac: don't require DRM and GBM for surfaceless egl platform

Marek Olšák maraeo at gmail.com
Mon Oct 17 16:47:32 UTC 2016


From: Deepak Sharma <Deepak.Sharma at amd.com>

This allows building radeonsi driver for surfaceless platform.

Signed-off-by: Deepak Sharma <Deepak.Sharma at amd.com>
Signed-off-by: Marek Olšák <marek.olsak at amd.com>
---
 configure.ac | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index b414edd..05e4bdc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2345,27 +2345,30 @@ gallium_require_llvm() {
         esac
     fi
 }
 
 gallium_require_drm_loader() {
     if test "x$need_pci_id$have_pci_id" = xyesno; then
         AC_MSG_ERROR([Gallium drm loader requires libudev >= $LIBUDEV_REQUIRED or sysfs])
     fi
 }
 
-dnl This is for Glamor. Skip this if OpenGL is disabled.
+dnl This is for Glamor. Skip this if OpenGL is disabled or surfaceless EGL platform is enabled.
 require_egl_drm() {
     if test "x$enable_opengl" = xno; then
         return 0
     fi
 
     case "$with_egl_platforms" in
+        surfaceless)
+            return 0
+            ;;
         *drm*)
             ;;
          *)
             AC_MSG_ERROR([--with-egl-platforms=drm is required to build the $1 driver.])
             ;;
     esac
     if test "x$enable_gbm" != xyes; then
             AC_MSG_ERROR([--enable-gbm is required to build the $1 driver.])
     fi
 }
-- 
2.7.4



More information about the mesa-dev mailing list