nv50: correctly calculate the number of vertical blocks during transfer map
authorEmil Velikov <emil.l.velikov@gmail.com>
Mon, 24 Feb 2014 16:46:19 +0000 (16:46 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 25 Feb 2014 12:19:07 +0000 (12:19 +0000)
Cc: "10.0 10.1" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nv50/nv50_transfer.c

index a9906829fec2f6de4db5a1bff3e0eecb01ce9bca..f71605281b633c13e14e6579514f797ee8532b41 100644 (file)
@@ -278,7 +278,7 @@ nv50_miptree_transfer_map(struct pipe_context *pctx,
 
    if (util_format_is_plain(res->format)) {
       tx->nblocksx = box->width << mt->ms_x;
-      tx->nblocksy = box->height << mt->ms_x;
+      tx->nblocksy = box->height << mt->ms_y;
    } else {
       tx->nblocksx = util_format_get_nblocksx(res->format, box->width);
       tx->nblocksy = util_format_get_nblocksy(res->format, box->height);