[PATCH] EXA: Stop tracking damage for pixmaps subject to ModifyPixmapHeader.
Michel Dänzer
michel at daenzer.net
Tue Feb 24 01:41:33 PST 2009
From: Michel Dänzer <daenzer at vmware.com>
These pixmaps will be pinned to system or offscreen memory, so there's no need
to track damage.
Signed-off-by: Michel Dänzer <daenzer at vmware.com>
---
exa/exa.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/exa/exa.c b/exa/exa.c
index b0c96fb..61c3245 100644
--- a/exa/exa.c
+++ b/exa/exa.c
@@ -431,6 +431,12 @@ exaModifyPixmapHeader(PixmapPtr pPixmap, int width, int height, int depth,
exaSetAccelBlock(pExaScr, pExaPixmap,
width, height, bitsPerPixel);
}
+
+ if (pExaPixmap->pDamage) {
+ DamageUnregister(&pPixmap->drawable, pExaPixmap->pDamage);
+ DamageDestroy(pExaPixmap->pDamage);
+ pExaPixmap->pDamage = NULL;
+ }
}
--
1.6.2.rc1
More information about the xorg-devel
mailing list