summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2018-12-27 10:27:43 -0500
committerIlia Mirkin <[email protected]>2018-12-30 23:32:21 -0500
commitad251330e858aeab0cee111488b203e993f76b89 (patch)
tree5c615b6bb04b86eb8a5aa203e5072da49330d12a /src
parentb04c1907c8c9f4fd66ce4e069665f4c40e3d40e0 (diff)
nv30: use correct helper to get blocks in y direction
This doesn't matter since all compressed formats supported by this hardware use square blocks, but best to use the correct helper. Signed-off-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/nouveau/nv30/nv30_miptree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/nv30/nv30_miptree.c b/src/gallium/drivers/nouveau/nv30/nv30_miptree.c
index a75072b7eea..d103ec133b5 100644
--- a/src/gallium/drivers/nouveau/nv30/nv30_miptree.c
+++ b/src/gallium/drivers/nouveau/nv30/nv30_miptree.c
@@ -456,7 +456,7 @@ nv30_miptree_create(struct pipe_screen *pscreen,
for (l = 0; l <= pt->last_level; l++) {
struct nv30_miptree_level *lvl = &mt->level[l];
unsigned nbx = util_format_get_nblocksx(pt->format, w);
- unsigned nby = util_format_get_nblocksx(pt->format, h);
+ unsigned nby = util_format_get_nblocksy(pt->format, h);
lvl->offset = size;
lvl->pitch = mt->uniform_pitch;