Mesa (master): softpipe: fix double-minify in texture layout
Keith Whitwell
keithw at kemper.freedesktop.org
Fri Dec 4 11:49:53 UTC 2009
Module: Mesa
Branch: master
Commit: a4b3bb12d7627a0bb39dd625e7646c9ef9ccd7fb
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a4b3bb12d7627a0bb39dd625e7646c9ef9ccd7fb
Author: Keith Whitwell <keithw at vmware.com>
Date: Fri Dec 4 11:49:42 2009 +0000
softpipe: fix double-minify in texture layout
---
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 bd65321..4f946cc 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]);
More information about the mesa-commit
mailing list