diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-07-27 07:15:19 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-07-27 07:15:19 +0100 |
commit | 997a5d28021ece0e81845d0217a1b6feb765e6fa (patch) | |
tree | 5a88a9a64ad69635c19d7032417cfed4dffa4a2a /configure.ac | |
parent | cac1548a9c48db4707fc3c885b1ea568ae2fbc54 (diff) |
configure: Expose no acceleration by default (--with-default-accel=none)
Why? I am not sure, but it seems equally as valid as allowing the switch
to uxa/glamor as default. The runtime equivalent is Option "AccelMethod".
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 5c3dd20c..94959f7d 100644 --- a/configure.ac +++ b/configure.ac @@ -646,7 +646,7 @@ fi AC_ARG_WITH(default-accel, AS_HELP_STRING([--with-default-accel], - [Select the default acceleration method [default=sna if enabled, otherwise uxa]]), + [Select the default acceleration method out of glamor, none, sna, or uxa [default is sna if enabled, otherwise uxa]]), [accel="$withval"], [accel="auto"]) if test "x$accel" = "xyes"; then @@ -698,7 +698,11 @@ fi if test "x$have_accel" = "xnone"; then if test "x$KMS" = "xyes"; then - AC_MSG_ERROR([Invalid default acceleration option]) + if test "x$SNA" != "xno" -o "x$UXA" != "xno"; then + AC_DEFINE(DEFAULT_ACCEL_METHOD, NONE, [Default acceleration method]) + else + AC_MSG_ERROR([Invalid default acceleration option]) + fi fi accel="none" fi @@ -865,6 +869,11 @@ test -e `pwd $0`/README && cat `pwd $0`/README accel_msg="" if test "x$SNA" != "xno"; then + if test "$accel" = "none"; then + accel_msg="$accel_msg *none" + else + accel_msg="$accel_msg none" + fi if test "$accel" = "sna"; then accel_msg="$accel_msg *sna" else @@ -872,6 +881,13 @@ if test "x$SNA" != "xno"; then fi fi if test "x$UXA" != "xno"; then + if test "x$SNA" = "xno"; then + if test "$accel" = "none"; then + accel_msg="$accel_msg *none" + else + accel_msg="$accel_msg none" + fi + fi if test "$accel" = "uxa"; then accel_msg="$accel_msg *uxa" else |