summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTormod Volden <debian.tormod@gmail.com>2013-10-17 22:01:20 +0200
committerTormod Volden <debian.tormod@gmail.com>2013-10-25 19:46:06 +0200
commitcbcee5de1ba02c8a58bae932a0cb98093dccefd9 (patch)
tree09f885e827e73e243be60a002c6059fcafb54881
parent15815c8612694a89d0d8593b3e603fdcdeacdd05 (diff)
Fix dual head crash without XAA
https://launchpad.net/bugs/1180986 Signed-off-by: Tormod Volden <debian.tormod@gmail.com> Reviewed-by: Robert Jacobs <robert.n.jacobs@gmail.com> Tested-by: Robert Jacobs <robert.n.jacobs@gmail.com>
-rw-r--r--src/mga_driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mga_driver.c b/src/mga_driver.c
index 3bd814e..a5d0bc4 100644
--- a/src/mga_driver.c
+++ b/src/mga_driver.c
@@ -3177,11 +3177,13 @@ MGACrtc2FillStrip(ScrnInfoPtr pScrn)
(pScrn->bitsPerPixel >> 3) * pScrn->displayWidth * pScrn->virtualY);
} else {
xf86SetLastScrnFlag(pScrn->entityList[0], pScrn->scrnIndex);
+#ifdef HAVE_XAA_H
pMga->RestoreAccelState(pScrn);
pMga->SetupForSolidFill(pScrn, 0, GXcopy, 0xFFFFFFFF);
pMga->SubsequentSolidFillRect(pScrn, pScrn->virtualX, 0,
pScrn->displayWidth - pScrn->virtualX,
pScrn->virtualY);
+#endif
MGAStormSync(pScrn);
}
}