sna: Correct image buffer size when uploading a downsampled image
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
238fc67aa9
commit
a7b24bb434
|
|
@ -3224,7 +3224,7 @@ struct kgem_bo *kgem_upload_source_image_halved(struct kgem *kgem,
|
|||
__FUNCTION__, x, y, width, height, stride, bpp));
|
||||
|
||||
bo = kgem_create_buffer_2d(kgem,
|
||||
width, height, bpp,
|
||||
width/2, height/2, bpp,
|
||||
KGEM_BUFFER_WRITE_INPLACE,
|
||||
&dst);
|
||||
if (bo == NULL)
|
||||
|
|
|
|||
Loading…
Reference in New Issue