From cbcee5de1ba02c8a58bae932a0cb98093dccefd9 Mon Sep 17 00:00:00 2001 From: Tormod Volden Date: Thu, 17 Oct 2013 22:01:20 +0200 Subject: Fix dual head crash without XAA https://launchpad.net/bugs/1180986 Signed-off-by: Tormod Volden Reviewed-by: Robert Jacobs Tested-by: Robert Jacobs --- src/mga_driver.c | 2 ++ 1 file changed, 2 insertions(+) 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); } } -- cgit v1.2.3