Mesa (master): nv30: use correct helper to get blocks in y direction
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Dec 31 05:49:21 UTC 2018
Module: Mesa
Branch: master
Commit: ad251330e858aeab0cee111488b203e993f76b89
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ad251330e858aeab0cee111488b203e993f76b89
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date: Thu Dec 27 10:27:43 2018 -0500
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 <imirkin at alum.mit.edu>
---
src/gallium/drivers/nouveau/nv30/nv30_miptree.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/nouveau/nv30/nv30_miptree.c b/src/gallium/drivers/nouveau/nv30/nv30_miptree.c
index a75072b7ee..d103ec133b 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;
More information about the mesa-commit
mailing list