Commit a5f0522b authored by Alan Hourihane's avatar Alan Hourihane

Add some additional checks when XAA is enabled.

parent 81722a21
......@@ -597,7 +597,8 @@ I810RefreshRing(ScrnInfoPtr pScrn)
if (pI810->LpRing->space < 0)
pI810->LpRing->space += pI810->LpRing->mem.Size;
pI810->AccelInfoRec->NeedToSync = TRUE;
if (pI810->AccelInfoRec)
pI810->AccelInfoRec->NeedToSync = TRUE;
}
/* Emit on gaining VT?
......
......@@ -222,6 +222,7 @@ I810InitVisualConfigs(ScreenPtr pScreen)
pConfigs[i].redSize = 5;
pConfigs[i].greenSize = 6;
pConfigs[i].blueSize = 5;
pConfigs[i].alphaSize = 0;
pConfigs[i].redMask = 0x0000F800;
pConfigs[i].greenMask = 0x000007E0;
pConfigs[i].blueMask = 0x0000001F;
......@@ -1173,7 +1174,9 @@ I810DRIInitBuffers(WindowPtr pWin, RegionPtr prgn, CARD32 index)
pbox++;
}
I810SelectBuffer(pScrn, I810_SELECT_FRONT);
pI810->AccelInfoRec->NeedToSync = TRUE;
if (pI810->AccelInfoRec)
pI810->AccelInfoRec->NeedToSync = TRUE;
}
/* This routine is a modified form of XAADoBitBlt with the calls to
......@@ -1332,7 +1335,8 @@ I810DRIMoveBuffers(WindowPtr pParent, DDXPointRec ptOldOrg,
DEALLOCATE_LOCAL(pboxNew1);
}
pI810->AccelInfoRec->NeedToSync = TRUE;
if (pI810->AccelInfoRec)
pI810->AccelInfoRec->NeedToSync = TRUE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment