softpipe: fix double-minify in texture layout
authorKeith Whitwell <keithw@vmware.com>
Fri, 4 Dec 2009 11:49:42 +0000 (11:49 +0000)
committerKeith Whitwell <keithw@vmware.com>
Fri, 4 Dec 2009 11:49:42 +0000 (11:49 +0000)
src/gallium/drivers/softpipe/sp_texture.c

index bd65321..4f946cc 100644 (file)
@@ -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]);