summaryrefslogtreecommitdiff
path: root/src/lg_driver.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2011-12-19 16:21:51 -0500
committerAdam Jackson <ajax@redhat.com>2011-12-19 16:21:51 -0500
commit92c7067070455610bd761b73f992642882ca2156 (patch)
tree6e85475b2170b3d1d43ee68c95e48e0f191420d9 /src/lg_driver.c
parentd9c9cc333e8a67749c20b3b30129f4d2297a3e0a (diff)
Fall back to shadowfb if XAA is unavailable
Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'src/lg_driver.c')
-rw-r--r--src/lg_driver.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lg_driver.c b/src/lg_driver.c
index fc864f8..80b5b02 100644
--- a/src/lg_driver.c
+++ b/src/lg_driver.c
@@ -800,8 +800,10 @@ LgPreInit(ScrnInfoPtr pScrn, int flags)
/* Load XAA if needed */
if (!pCir->NoAccel) {
if (!xf86LoadSubModule(pScrn, "xaa")) {
- LgFreeRec(pScrn);
- return FALSE;
+ xf86DrvMsg(pScrn->scrnInfo, X_INFO,
+ "Falling back to shadowfb\n");
+ pCir->NoAccel = TRUE;
+ pCir->shadowFB = TRUE;
}
}