[PATCH] DRI2: Clear old->devPrivate.ptr in fixup_glamor

Michel Dänzer michel at daenzer.net
Wed Apr 22 02:43:21 PDT 2015


From: Michel Dänzer <michel.daenzer at amd.com>

It doesn't point to the memory of the newly allocated BO. Fixes crash
running piglit with Option "ShadowPrimary" enabled.

Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
 src/radeon_dri2.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c
index 31a1ce7..6bb3dc6 100644
--- a/src/radeon_dri2.c
+++ b/src/radeon_dri2.c
@@ -119,6 +119,7 @@ static PixmapPtr fixup_glamor(DrawablePtr drawable, PixmapPtr pixmap)
 				   0, 0,
 				   pixmap->devKind,
 				   NULL);
+	old->devPrivate.ptr = NULL;
 
 	screen->DestroyPixmap(pixmap);
 
-- 
2.1.4



More information about the xorg-driver-ati mailing list