diff options
author | Adam Jackson <ajax@redhat.com> | 2011-12-19 16:21:51 -0500 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2011-12-19 16:21:51 -0500 |
commit | 92c7067070455610bd761b73f992642882ca2156 (patch) | |
tree | 6e85475b2170b3d1d43ee68c95e48e0f191420d9 | |
parent | d9c9cc333e8a67749c20b3b30129f4d2297a3e0a (diff) |
Fall back to shadowfb if XAA is unavailable
Signed-off-by: Adam Jackson <ajax@redhat.com>
-rw-r--r-- | src/alp_driver.c | 6 | ||||
-rw-r--r-- | src/lg_driver.c | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/alp_driver.c b/src/alp_driver.c index d3d8e4f..ecdd807 100644 --- a/src/alp_driver.c +++ b/src/alp_driver.c @@ -1093,8 +1093,10 @@ AlpPreInit(ScrnInfoPtr pScrn, int flags) /* Load XAA if needed */ if (!pCir->NoAccel) { if (!xf86LoadSubModule(pScrn, "xaa")) { - AlpFreeRec(pScrn); - return FALSE; + xf86DrvMsg(pScrn->scrnIndex, X_INFO, + "Falling back to shadowfb\n"); + pCir->NoAccel = TRUE; + pCir->shadowFB = TRUE; } } 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; } } |