From 6c7f998f7bda4f4f1286e079412d5d3a5b2eb073 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 13 Sep 2012 20:41:23 +0100 Subject: [PATCH] sna: Fix BLT composite offset Reported-by: Jiri Slaby Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=54868 Signed-off-by: Chris Wilson --- src/sna/sna_blt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sna/sna_blt.c b/src/sna/sna_blt.c index 120d9a50..757447b6 100644 --- a/src/sna/sna_blt.c +++ b/src/sna/sna_blt.c @@ -1990,8 +1990,8 @@ sna_blt_composite__convert(struct sna *sna, } tmp->u.blt.src_pixmap = NULL; - tmp->u.blt.sx = x - dst_x; - tmp->u.blt.sy = y - dst_y; + tmp->u.blt.sx = tmp->src.offset[0]; + tmp->u.blt.sy = tmp->src.offset[1]; DBG(("%s: blt dst offset (%d, %d), source offset (%d, %d), with alpha fixup? %x\n", __FUNCTION__, tmp->dst.x, tmp->dst.y, tmp->u.blt.sx, tmp->u.blt.sy, alpha_fixup));