summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nouveau
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2014-02-24 16:46:19 +0000
committerEmil Velikov <[email protected]>2014-02-25 12:19:07 +0000
commit882070cc81588a133d81e3ef8790d7375f494eff (patch)
treeae61ce597897e18695de5b92a39e8db89f01baf8 /src/gallium/drivers/nouveau
parent7c3138acb9de06148c0162384e49cc093148a1d6 (diff)
nv50: correctly calculate the number of vertical blocks during transfer map
Cc: "10.0 10.1" <[email protected]> Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nouveau')
-rw-r--r--src/gallium/drivers/nouveau/nv50/nv50_transfer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/nv50/nv50_transfer.c b/src/gallium/drivers/nouveau/nv50/nv50_transfer.c
index a9906829fec..f71605281b6 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);