Mesa (10.1): nv50: correctly calculate the number of vertical blocks during transfer map
Ian Romanick
idr at kemper.freedesktop.org
Tue Feb 25 15:59:30 UTC 2014
Module: Mesa
Branch: 10.1
Commit: fc2834f5ad5a8a07aa39f078e02d483897953b4e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=fc2834f5ad5a8a07aa39f078e02d483897953b4e
Author: Emil Velikov <emil.l.velikov at gmail.com>
Date: Mon Feb 24 16:46:19 2014 +0000
nv50: correctly calculate the number of vertical blocks during transfer map
Cc: "10.0 10.1" <mesa-stable at lists.freedesktop.org>
Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
(cherry picked from commit 882070cc81588a133d81e3ef8790d7375f494eff)
---
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);
More information about the mesa-commit
mailing list