From: Keith Whitwell Date: Fri, 4 Dec 2009 11:49:42 +0000 (+0000) Subject: softpipe: fix double-minify in texture layout X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a4b3bb12d7627a0bb39dd625e7646c9ef9ccd7fb;p=mesa.git softpipe: fix double-minify in texture layout --- 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]);