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:
parent
a7b24bb434
commit
5aa494305e
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in New Issue