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:
Chris Wilson 2012-01-22 15:50:47 +00:00
parent 238fc67aa9
commit a7b24bb434
1 changed files with 1 additions and 1 deletions

View File

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