From b26c136ee9bf7015c583136af53d0c9e9da67ace Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Thu, 26 Feb 2009 10:35:44 +0100 Subject: [PATCH] EXA: Stop tracking damage for pixmaps subject to ModifyPixmapHeader. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michel Dänzer --- exa/exa.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/exa/exa.c b/exa/exa.c index 9329f1094..a64769905 100644 --- a/exa/exa.c +++ b/exa/exa.c @@ -431,6 +431,15 @@ exaModifyPixmapHeader(PixmapPtr pPixmap, int width, int height, int depth, exaSetAccelBlock(pExaScr, pExaPixmap, width, height, bitsPerPixel); } + + /* Pixmaps subject to ModifyPixmapHeader will be pinned to system or + * offscreen memory, so there's no need to track damage. + */ + if (pExaPixmap->pDamage) { + DamageUnregister(&pPixmap->drawable, pExaPixmap->pDamage); + DamageDestroy(pExaPixmap->pDamage); + pExaPixmap->pDamage = NULL; + } }