From 5aa494305e90eed5df211427741a75380add8e96 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Sun, 22 Jan 2012 16:10:39 +0000 Subject: [PATCH] sna: Correct the offsets for performing partial downsampling on the GPU Reported-by: Clemens Eisserer References: https://bugs.freedesktop.org/show_bug.cgi?id=45086 Signed-off-by: Chris Wilson --- src/sna/sna_render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sna/sna_render.c b/src/sna/sna_render.c index 0796453d..5f79e04c 100644 --- a/src/sna/sna_render.c +++ b/src/sna/sna_render.c @@ -785,7 +785,7 @@ static int sna_render_picture_downsample(struct sna *sna, if (!sna->render.composite(sna, PictOpSrc, tmp_src, NULL, tmp_dst, - box.x1 + b.x1, box.y1 + b.y1, + box.x1/2 + b.x1, box.y1/2 + b.y1, 0, 0, b.x1, b.y1, b.x2 - b.x1, b.y2 - b.y1,