/[gentoo-x86]/x11-base/xorg-server/files/05-offscreen-pixmaps.patch
Gentoo

Contents of /x11-base/xorg-server/files/05-offscreen-pixmaps.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sun Sep 9 10:34:45 2007 UTC (10 years, 4 months ago) by dberkholz
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
Drop 1.1, everyone's stable on 1.2 or 1.3.
(Portage version: 2.1.3.8)

1 dberkholz 1.1 --- ./hw/xfree86/xaa/xaaInit.c.offscreen-pixmaps 2006-07-05 14:31:42.000000000 -0400
2     +++ ./hw/xfree86/xaa/xaaInit.c 2006-08-30 16:47:29.000000000 -0400
3     @@ -98,6 +98,30 @@
4     xfree(infoRec);
5     }
6    
7     +void
8     +XAAEvictPixmaps(void)
9     +{
10     + XAAScreenPtr pScreenPriv;
11     + XAAInfoRecPtr infoRec;
12     + ScreenPtr pScreen;
13     + int i;
14     +
15     + xf86MsgVerb(X_INFO, 3, "XAA: Evicting pixmaps\n");
16     +
17     + for (i = 0; i < screenInfo.numScreens; i++) {
18     + pScreen = screenInfo.screens[i];
19     + infoRec = GET_XAAINFORECPTR_FROM_SCREEN(pScreen);
20     +
21     + pScreenPriv = pScreen->devPrivates[XAAScreenIndex].ptr;
22     + infoRec = pScreenPriv->AccelInfoRec;
23     +
24     + infoRec->offscreenDepths = 0;
25     + infoRec->Flags &= ~OFFSCREEN_PIXMAPS;
26     +
27     + XAAMoveOutOffscreenPixmaps(pScreen);
28     + XAAInvalidatePixmapCache(pScreen);
29     + }
30     +}
31    
32     Bool
33     XAAInit(ScreenPtr pScreen, XAAInfoRecPtr infoRec)
34     --- ./GL/glx/glxdri.c.offscreen-pixmaps 2006-08-30 16:46:45.000000000 -0400
35     +++ ./GL/glx/glxdri.c 2006-08-30 16:45:52.000000000 -0400
36     @@ -367,6 +367,19 @@
37     int bpp;
38     GLenum target, format, type;
39    
40     + /* When the GLX_EXT_texture_from_pixmap is used, as it's
41     + * implemented here, we want to pull pixmap out of video memory
42     + * and into host memory. */
43     + {
44     + extern void XAAEvictPixmaps(void);
45     + static int evictedPixmaps;
46     +
47     + if (!evictedPixmaps) {
48     + XAAEvictPixmaps();
49     + evictedPixmaps = TRUE;
50     + }
51     + }
52     +
53     pixmap = (PixmapPtr) glxPixmap->pDraw;
54     if (!glxPixmap->pDamage) {
55     glxPixmap->pDamage = DamageCreate(NULL, NULL, DamageReportNone,

  ViewVC Help
Powered by ViewVC 1.1.20