summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQiang Yu <Qiang.Yu@amd.com>2016-09-14 17:19:29 +0900
committerMichel Dänzer <michel@daenzer.net>2016-09-14 17:26:35 +0900
commit3edf690d391b290066a3f39eb24695b8c8a0aaab (patch)
tree0fb485aac55deb82598f5d9ff627b10f96a2e306
parent0b3bde7f9e42577b6720cb290d03fab3b05614b4 (diff)
DRI2: Fix amdgpu_dri2_exchange_buffers width/height copy'n'paste error
Signed-off-by: Qiang Yu <Qiang.Yu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> (Cherry picked from commit 73c8dc000ad6b2b53ba3aa7155f5e8f6b55623b7)
-rw-r--r--src/amdgpu_dri2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amdgpu_dri2.c b/src/amdgpu_dri2.c
index 4a39ef8..74d969b 100644
--- a/src/amdgpu_dri2.c
+++ b/src/amdgpu_dri2.c
@@ -657,7 +657,7 @@ amdgpu_dri2_exchange_buffers(DrawablePtr draw, DRI2BufferPtr front,
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);