[PATCH xf86-video-ati 4/4] DRI2: Fix radeon_dri2_exchange_buffers width/height copy'n'paste error

Michel Dänzer michel at daenzer.net
Wed Sep 14 08:14:47 UTC 2016


From: Qiang Yu <Qiang.Yu at amd.com>

Signed-off-by: Qiang Yu <Qiang.Yu at amd.com>
(Ported from amdgpu commit 73c8dc000ad6b2b53ba3aa7155f5e8f6b55623b7)

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

diff --git a/src/radeon_dri2.c b/src/radeon_dri2.c
index 79501f0..69fd0ea 100644
--- a/src/radeon_dri2.c
+++ b/src/radeon_dri2.c
@@ -775,7 +775,7 @@ radeon_dri2_exchange_buffers(DrawablePtr draw, DRI2BufferPtr front, DRI2BufferPt
 
     region.extents.x1 = region.extents.y1 = 0;
     region.extents.x2 = front_priv->pixmap->drawable.width;
-    region.extents.y2 = front_priv->pixmap->drawable.width;
+    region.extents.y2 = front_priv->pixmap->drawable.height;
     region.data = NULL;
     DamageRegionAppend(&front_priv->pixmap->drawable, &region);
 
-- 
2.9.3



More information about the amd-gfx mailing list