35 lines
899 B
Text
35 lines
899 B
Text
$NetBSD: patch-ch,v 1.3 2007/05/25 15:50:41 bsadewitz Exp $
|
|
|
|
--- hw/xfree86/xaa/xaaInit.c.orig 2006-09-18 02:04:18.000000000 -0400
|
|
+++ hw/xfree86/xaa/xaaInit.c
|
|
@@ -97,6 +97,30 @@ XAADestroyInfoRec(XAAInfoRecPtr infoRec)
|
|
xfree(infoRec);
|
|
}
|
|
|
|
+void
|
|
+XAAEvictPixmaps(void)
|
|
+{
|
|
+ XAAScreenPtr pScreenPriv;
|
|
+ XAAInfoRecPtr infoRec;
|
|
+ ScreenPtr pScreen;
|
|
+ int i;
|
|
+
|
|
+ xf86MsgVerb(X_INFO, 3, "XAA: Evicting pixmaps\n");
|
|
+
|
|
+ for (i = 0; i < screenInfo.numScreens; i++) {
|
|
+ pScreen = screenInfo.screens[i];
|
|
+ infoRec = GET_XAAINFORECPTR_FROM_SCREEN(pScreen);
|
|
+
|
|
+ pScreenPriv = pScreen->devPrivates[XAAScreenIndex].ptr;
|
|
+ infoRec = pScreenPriv->AccelInfoRec;
|
|
+
|
|
+ infoRec->offscreenDepths = 0;
|
|
+ infoRec->Flags &= ~OFFSCREEN_PIXMAPS;
|
|
+
|
|
+ XAAMoveOutOffscreenPixmaps(pScreen);
|
|
+ XAAInvalidatePixmapCache(pScreen);
|
|
+ }
|
|
+}
|
|
|
|
Bool
|
|
XAAInit(ScreenPtr pScreen, XAAInfoRecPtr infoRec)
|