[PATCH xserver] glamor: Fix temporary pixmap coordinate offsets

Michel Dänzer michel at daenzer.net
Tue Jun 6 10:03:08 UTC 2017


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

Fixes crash with xli. No regressions with xterm, x11perf -copyplane or
the xscreensaver phosphor hack.

Bug: https://bugs.debian.org/857983
Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
---
 glamor/glamor_copy.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/glamor/glamor_copy.c b/glamor/glamor_copy.c
index ff8f44ef1..ed96b2b1e 100644
--- a/glamor/glamor_copy.c
+++ b/glamor/glamor_copy.c
@@ -230,8 +230,8 @@ glamor_copy_cpu_fbo(DrawablePtr src,
             goto bail;
         }
 
-        src_pix->drawable.x = -dst->x;
-        src_pix->drawable.y = -dst->y;
+        src_pix->drawable.x = dst_xoff;
+        src_pix->drawable.y = dst_yoff;
 
         fbGetDrawable(&src_pix->drawable, src_bits, src_stride, src_bpp, src_xoff,
                       src_yoff);
-- 
2.11.0



More information about the xorg-devel mailing list