configure: use HAVE_DRISW_KMS when handling kms swrast
authorEmil Velikov <emil.l.velikov@gmail.com>
Sun, 11 Oct 2015 10:53:45 +0000 (11:53 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Sat, 21 Nov 2015 12:52:18 +0000 (12:52 +0000)
Using HAVE_DRI2 to manage it seems counter-intuitive.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Acked-by: Rob Clark <robclark@freedesktop.org>
configure.ac
src/gallium/Makefile.am
src/gallium/drivers/softpipe/Automake.inc

index 027cfb1de90176a815f3bd4371ece8a57efb247f..98acfdda0a23044b1027355105115c6fdc53ed70 100644 (file)
@@ -956,8 +956,13 @@ gnu*|cygwin*)
     dri_platform='drm' ;;
 esac
 
+if test "x$enable_dri" = xyes -a "x$dri_platform" = xdrm -a "x$have_libdrm" = xyes; then
+    have_drisw_kms='yes'
+fi
+
 AM_CONDITIONAL(HAVE_DRICOMMON, test "x$enable_dri" = xyes )
 AM_CONDITIONAL(HAVE_DRISW, test "x$enable_dri" = xyes )
+AM_CONDITIONAL(HAVE_DRISW_KMS, test "x$have_drisw_kms" = xyes )
 AM_CONDITIONAL(HAVE_DRI2, test "x$enable_dri" = xyes -a "x$dri_platform" = xdrm -a "x$have_libdrm" = xyes )
 AM_CONDITIONAL(HAVE_DRI3, test "x$enable_dri3" = xyes -a "x$dri_platform" = xdrm -a "x$have_libdrm" = xyes )
 AM_CONDITIONAL(HAVE_APPLEDRI, test "x$enable_dri" = xyes -a "x$dri_platform" = xapple )
index 611d55fafe224ec7411e821e45eb34f76e35d220..2c7508385cad1b97da5c5e7ef564a23b4a01beef 100644 (file)
@@ -98,7 +98,7 @@ if HAVE_DRISW
 SUBDIRS += winsys/sw/dri
 endif
 
-if HAVE_DRI2
+if HAVE_DRISW_KMS
 SUBDIRS += winsys/sw/kms-dri
 endif
 
index 6455f3caa3d9b892cadc3dfe51dc24713b114866..5cedcef9772a625a86135780e8edaebbfc608c15 100644 (file)
@@ -6,7 +6,7 @@ TARGET_LIB_DEPS += \
        $(top_builddir)/src/gallium/winsys/sw/dri/libswdri.la \
        $(top_builddir)/src/gallium/drivers/softpipe/libsoftpipe.la
 
-if HAVE_DRI2
+if HAVE_DRISW_KMS
 TARGET_DRIVERS += kms_swrast
 TARGET_LIB_DEPS += \
        $(top_builddir)/src/gallium/winsys/sw/kms-dri/libswkmsdri.la