sna: Correct the offsets for performing partial downsampling on the GPU

Reported-by: Clemens Eisserer <linuxhippy@gmail.com>
References: https://bugs.freedesktop.org/show_bug.cgi?id=45086
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-01-22 16:10:39 +00:00
parent a7b24bb434
commit 5aa494305e
1 changed files with 1 additions and 1 deletions

View File

@ -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,