summaryrefslogtreecommitdiff
path: root/driver/xf86-video-openchrome/src/via_driver.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2012-11-11 21:34:16 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2012-11-11 21:34:16 +0000
commit968aa0484af82695d00d90190a06367843f7c16f (patch)
treea010f9e295325a1092a4e98f7ba7563281f970d5 /driver/xf86-video-openchrome/src/via_driver.c
parentac98071c55b1f3e9283d36052e328c9bf8d0d1a2 (diff)
Patch the driver a bit more, to be able to build without XAA.
Diffstat (limited to 'driver/xf86-video-openchrome/src/via_driver.c')
-rw-r--r--driver/xf86-video-openchrome/src/via_driver.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/driver/xf86-video-openchrome/src/via_driver.c b/driver/xf86-video-openchrome/src/via_driver.c
index 6bed7ae14..12dd0030e 100644
--- a/driver/xf86-video-openchrome/src/via_driver.c
+++ b/driver/xf86-video-openchrome/src/via_driver.c
@@ -1218,9 +1218,11 @@ VIAPreInit(ScrnInfoPtr pScrn, int flags)
if (!xf86NameCmp(s, "EXA")) {
from = X_CONFIG;
pVia->useEXA = TRUE;
+#ifdef USE_XAA
} else if (!xf86NameCmp(s, "XAA")) {
from = X_CONFIG;
pVia->useEXA = FALSE;
+#endif
}
}
xf86DrvMsg(pScrn->scrnIndex, from,
@@ -1809,11 +1811,13 @@ VIAPreInit(ScrnInfoPtr pScrn, int flags)
VIAFreeRec(pScrn);
return FALSE;
}
+#ifdef USE_XAA
} else {
if (!xf86LoadSubModule(pScrn, "xaa")) {
VIAFreeRec(pScrn);
return FALSE;
}
+#endif
}
}