[Mesa-dev] [PATCH] nv50: correctly calculate the number of vertical blocks during transfer map

Emil Velikov emil.l.velikov at gmail.com
Mon Feb 24 08:46:47 PST 2014


Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
---
 src/gallium/drivers/nouveau/nv50/nv50_transfer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/nouveau/nv50/nv50_transfer.c b/src/gallium/drivers/nouveau/nv50/nv50_transfer.c
index a990682..f716052 100644
--- a/src/gallium/drivers/nouveau/nv50/nv50_transfer.c
+++ b/src/gallium/drivers/nouveau/nv50/nv50_transfer.c
@@ -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);
-- 
1.9.0



More information about the mesa-dev mailing list