summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-06-10 19:51:12 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2011-06-10 19:51:12 +0100
commitd0d65940b4f4d4993eccb8c66ec7e8b633b331da (patch)
treed8a3e55bc62475e08087acd77b0f143ae2bda0b5 /configure.ac
parent6f035e80b98e478ff4c59427e50e57ecd710da62 (diff)
sna: Remove the ability to disable chipset specific code
This was a fun little, but pointless, exercise. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac38
1 files changed, 2 insertions, 36 deletions
diff --git a/configure.ac b/configure.ac
index 31106afc..5f193b37 100644
--- a/configure.ac
+++ b/configure.ac
@@ -94,7 +94,7 @@ AC_ARG_ENABLE(kms-only, AS_HELP_STRING([--enable-kms-only],
AC_ARG_ENABLE(sna,
AS_HELP_STRING([--enable-sna],
- [Enable SandyBridge's New Acceleration (SNA) [options=default|gen2|gen3|ge4|gen5|gen6]]),
+ [Enable SandyBridge's New Acceleration (SNA) [default=no]]),
[SNA="$enableval"],
[SNA=no])
@@ -187,42 +187,8 @@ if test "x$VMAP" = xyes; then
fi
AM_CONDITIONAL(SNA, test x$SNA != xno)
-AM_CONDITIONAL(SNA_GEN2, [echo $SNA | grep -E -qsi '(yes)|(all)|(gen2)'])
-AM_CONDITIONAL(SNA_GEN3, [echo $SNA | grep -E -qsi '(yes)|(all)|(pnv)|(gen3)'])
-AM_CONDITIONAL(SNA_GEN4, [echo $SNA | grep -E -qsi '(yes)|(all)|(brw)|(gen4)'])
-AM_CONDITIONAL(SNA_GEN5, [echo $SNA | grep -E -qsi '(yes)|(all)|(ilk)|(gen5)'])
-AM_CONDITIONAL(SNA_GEN6, [echo $SNA | grep -E -qsi '(yes)|(all)|(snb)|(gen6)'])
AC_MSG_CHECKING([whether to include SNA support])
-sna_drivers="no"
-if test "x$SNA" != xno; then
- sna_drivers=""
- AC_DEFINE(SNA,1,[Enable SandyBridge's New Architecture])
- if echo $SNA | grep -E -qsi '(yes)|(default)'; then
- AC_DEFINE(SNA_DEFAULT,1,[Enable SandyBridge's New Architecture by default])
- sna_drivers="default $sna_drivers"
- fi
- if echo $SNA | grep -E -qsi '(yes)|(all)|(gen2)'; then
- AC_DEFINE(SNA_GEN2,1,[Enable SandyBridge's New Architecture for GEN2])
- sna_drivers="i8xx $sna_drivers"
- fi
- if echo $SNA | grep -E -qsi '(yes)|(all)|(pnv)|(gen3)'; then
- AC_DEFINE(SNA_GEN3,1,[Enable SandyBridge's New Architecture for PNV])
- sna_drivers="pnv $sna_drivers"
- fi
- if echo $SNA | grep -E -qsi '(yes)|(all)|(brw)|(gen4)'; then
- AC_DEFINE(SNA_GEN4,1,[Enable SandyBridge's New Architecture for BRW])
- sna_drivers="brw $sna_drivers"
- fi
- if echo $SNA | grep -E -qsi '(yes)|(all)|(ilk)|(gen5)'; then
- AC_DEFINE(SNA_GEN5,1,[Enable SandyBridge's New Architecture for ILK])
- sna_drivers="ilk $sna_drivers"
- fi
- if echo $SNA | grep -E -qsi '(yes)|(all)|(snb)|(gen6)'; then
- AC_DEFINE(SNA_GEN6,1,[Enable SandyBridge's New Architecture for SNB])
- sna_drivers="snb $sna_drivers"
- fi
-fi
-AC_MSG_RESULT([$sna_drivers])
+AC_MSG_RESULT([$SNA])
AM_CONDITIONAL(DEBUG, test x$DEBUG != xno)
if test "x$DEBUG" = xno; then