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 bd653216c08c4afd4b8ee801132d4ae38726034f..4f946ccfcf86f9cf5361e9b656da1af62e9ab60d 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]);