[PATCH 2/2] Fix dual head crash without XAA

Tormod Volden lists.tormod at gmail.com
Sat Oct 19 00:58:32 CEST 2013


From: Tormod Volden <debian.tormod at gmail.com>

https://launchpad.net/bugs/1180986

Signed-off-by: Tormod Volden <debian.tormod at gmail.com>
Reviewed-by: Robert Jacobs <robert.n.jacobs at gmail.com>
Tested-by: Robert Jacobs <robert.n.jacobs at gmail.com>

---
 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);
     }
 }
-- 
1.7.10.4



More information about the xorg-devel mailing list