[PATCH xf86-video-sunffb] Unbreak when XAA is not present.
Matthieu Herrb
matthieu.herrb at laas.fr
Mon Jun 10 12:58:44 PDT 2013
Turn accel off if loading XAA fails.
Signed-off-by: Matthieu Herrb <matthieu.herrb at laas.fr>
---
src/ffb_driver.c | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git src/ffb_driver.c src/ffb_driver.c
index af13484..7f17d64 100644
--- src/ffb_driver.c
+++ src/ffb_driver.c
@@ -413,9 +413,12 @@ FFBPreInit(ScrnInfoPtr pScrn, int flags)
return FALSE;
}
- if (xf86LoadSubModule(pScrn, "xaa") == NULL) {
- FFBFreeRec(pScrn);
- return FALSE;
+ if (!pFfb->NoAccel) {
+ if (xf86LoadSubModule(pScrn, "xaa") == NULL) {
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "Loading XAA failed, acceleration disabled\n");
+ pFfb->NoAccel = TRUE;
+ }
}
if (pFfb->HWCursor && xf86LoadSubModule(pScrn, "ramdac") == NULL) {
--
1.8.3
More information about the xorg-devel
mailing list