diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-22 15:50:47 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2012-01-22 16:11:41 +0000 |
commit | a7b24bb4342eefb2b23fa40d7c7216c38f2edc09 (patch) | |
tree | ba790dd36ea118ce62901cd029dc6fe58cb0fc49 | |
parent | 238fc67aa945d5669eccd2a8fe8e98402b9a6223 (diff) |
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>
-rw-r--r-- | src/sna/kgem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/kgem.c b/src/sna/kgem.c index 3b4db905..8b553b9f 100644 --- a/src/sna/kgem.c +++ b/src/sna/kgem.c @@ -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) |