Mesa (master): r600g: change the cross over point for 2d->1d

Dave Airlie airlied at kemper.freedesktop.org
Tue Mar 1 23:30:01 UTC 2011


Module: Mesa
Branch: master
Commit: c7d239c43b8fbc502139e1699c7a47fcbece1aa7
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c7d239c43b8fbc502139e1699c7a47fcbece1aa7

Author: Dave Airlie <airlied at redhat.com>
Date:   Wed Mar  2 09:14:01 2011 +1000

r600g: change the cross over point for 2d->1d

this fixes some rendering in the fbo-generatemipmap-formats test on
my rv610.

Signed-off-by: Dave Airlie <airlied at redhat.com>

---

 src/gallium/drivers/r600/r600_texture.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/r600/r600_texture.c b/src/gallium/drivers/r600/r600_texture.c
index ed7cc39..4832921 100644
--- a/src/gallium/drivers/r600/r600_texture.c
+++ b/src/gallium/drivers/r600/r600_texture.c
@@ -226,7 +226,7 @@ static void r600_texture_set_array_mode(struct pipe_screen *screen,
 
 		w = mip_minify(ptex->width0, level);
 		h = mip_minify(ptex->height0, level);
-		if (w < tile_width || h < tile_height)
+		if (w <= tile_width || h <= tile_height)
 			rtex->array_mode[level] = V_0280A0_ARRAY_1D_TILED_THIN1;
 		else
 			rtex->array_mode[level] = array_mode;




More information about the mesa-commit mailing list