diff options
author | Keith Whitwell <[email protected]> | 2009-12-04 11:49:42 +0000 |
---|---|---|
committer | Keith Whitwell <[email protected]> | 2009-12-04 11:49:42 +0000 |
commit | a4b3bb12d7627a0bb39dd625e7646c9ef9ccd7fb (patch) | |
tree | b291ba0a2397b8764f9972b8b86105bb929171c7 /src/gallium/drivers/softpipe | |
parent | 9dfbd1be446b9c0680a0d55729fb6b3f5938b0c5 (diff) |
softpipe: fix double-minify in texture layout
Diffstat (limited to 'src/gallium/drivers/softpipe')
-rw-r--r-- | src/gallium/drivers/softpipe/sp_texture.c | 2 |
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]); |