summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-12-04 11:49:42 +0000
committerKeith Whitwell <[email protected]>2009-12-04 11:49:42 +0000
commita4b3bb12d7627a0bb39dd625e7646c9ef9ccd7fb (patch)
treeb291ba0a2397b8764f9972b8b86105bb929171c7
parent9dfbd1be446b9c0680a0d55729fb6b3f5938b0c5 (diff)
softpipe: fix double-minify in texture layout
-rw-r--r--src/gallium/drivers/softpipe/sp_texture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/softpipe/sp_texture.c b/src/gallium/drivers/softpipe/sp_texture.c
index bd653216c08..4f946ccfcf8 100644
--- a/src/gallium/drivers/softpipe/sp_texture.c
+++ b/src/gallium/drivers/softpipe/sp_texture.c
@@ -67,7 +67,7 @@ softpipe_texture_layout(struct pipe_screen *screen,
spt->level_offset[level] = buffer_size;
- buffer_size += (pf_get_nblocksy(pt->format, u_minify(height, level)) *
+ buffer_size += (pf_get_nblocksy(pt->format, height) *
((pt->target == PIPE_TEXTURE_CUBE) ? 6 : depth) *
spt->stride[level]);