[PATCH] dix: Propagate notification of FreeScratchPixmapHeader to the ddx
Chris Wilson
chris at chris-wilson.co.uk
Tue Apr 12 04:29:13 PDT 2011
As FreeScratchPixmapHeader is called when the resource backing the
scratch pixmap becomes no longer accessible, it is vital that the ddx is
notified in order to serialise any access it has to that resource.
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
---
dix/pixmap.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dix/pixmap.c b/dix/pixmap.c
index cbb5e7f..76d905e 100644
--- a/dix/pixmap.c
+++ b/dix/pixmap.c
@@ -79,7 +79,9 @@ FreeScratchPixmapHeader(PixmapPtr pPixmap)
{
ScreenPtr pScreen = pPixmap->drawable.pScreen;
+ (*pScreen->ModifyPixmapHeader)(pPixmap, -1, -1, -1, -1, -1, NULL);
pPixmap->devPrivate.ptr = NULL; /* lest ddx chases bad ptr */
+
if (pScreen->pScratchPixmap)
(*pScreen->DestroyPixmap)(pPixmap);
else
--
1.7.4.1
More information about the xorg-devel
mailing list