summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <airlied@gmail.com>2012-12-22 20:00:00 +1000
committerDave Airlie <airlied@gmail.com>2012-12-22 20:00:00 +1000
commitca9718a887ecbc59b76869af673791ab591b849b (patch)
tree5bbbce2dff8115d27a30222af9bf1f85f494e979 /src
parent3d181030a6ba2205a57ef4665e53aed0251ccaa6 (diff)
savage: fix default accel arch when built with no XAA
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/savage_driver.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/savage_driver.c b/src/savage_driver.c
index 026bf5c..5b49e60 100644
--- a/src/savage_driver.c
+++ b/src/savage_driver.c
@@ -1267,6 +1267,7 @@ static Bool SavagePreInit(ScrnInfoPtr pScrn, int flags)
from = X_DEFAULT;
char *strptr;
if((strptr = (char *)xf86GetOptValString(psav->Options, OPTION_ACCELMETHOD))) {
+#ifdef HAVE_XAA_H
if(!xf86NameCmp(strptr,"XAA")) {
from = X_CONFIG;
psav->useEXA = FALSE;
@@ -1274,6 +1275,9 @@ static Bool SavagePreInit(ScrnInfoPtr pScrn, int flags)
from = X_CONFIG;
psav->useEXA = TRUE;
}
+#else
+ psav->useEXA = TRUE;
+#endif
}
xf86DrvMsg(pScrn->scrnIndex, from, "Using %s acceleration architecture\n",
psav->useEXA ? "EXA" : "XAA");