configure: autodetect video state-trackers when non swrast driver is present
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 13 Mar 2014 04:25:17 +0000 (04:25 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 31 Mar 2014 11:21:30 +0000 (12:21 +0100)
It makes little sense to enable the vdpau, xvmc and omx state-trackers
as they do not make use of (don't work with) the software driver.

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
configure.ac

index d7dbd1ede721181c7045a0b5ca50e31299deab01..3055de67a7e8b19a1d64df0ff8bf52549871e5b5 100644 (file)
@@ -1273,7 +1273,7 @@ AM_CONDITIONAL(HAVE_OPENVG, test "x$enable_openvg" = xyes)
 dnl
 dnl Gallium G3DVL configuration
 dnl
-if test -n "$with_gallium_drivers"; then
+if test -n "$with_gallium_drivers" && ! echo "$with_gallium_drivers" | grep -q 'swrast'; then
     if test "x$enable_xvmc" = xauto; then
        PKG_CHECK_EXISTS([xvmc], [enable_xvmc=yes], [enable_xvmc=no])
     fi