From: Michel Dänzer <michel.daen...@amd.com>

Reported-by: Qiang Yu <qiang...@amd.com>
(Ported from amdgpu commit 397aedafee437c125b8ac1feafb1c3b466842aeb)

Signed-off-by: Michel Dänzer <michel.daen...@amd.com>
---
 src/radeon_glamor.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/radeon_glamor.c b/src/radeon_glamor.c
index 7a6bf53..b66848f 100644
--- a/src/radeon_glamor.c
+++ b/src/radeon_glamor.c
@@ -314,10 +314,9 @@ radeon_glamor_set_pixmap_bo(DrawablePtr drawable, 
PixmapPtr pixmap)
                FreeScratchGC(gc);
        }
 
-       radeon_set_pixmap_private(pixmap, NULL);
-
        /* And redirect the pixmap to the new bo (for 3D). */
        glamor_egl_exchange_buffers(old, pixmap);
+       radeon_set_pixmap_private(pixmap, radeon_get_pixmap_private(old));
        radeon_set_pixmap_private(old, priv);
 
        screen->ModifyPixmapHeader(old,
-- 
2.9.3

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

Reply via email to