Mesa (master): i965: Fix assertion for surface tile offset usage on Ironlake.

Eric Anholt anholt at kemper.freedesktop.org
Thu Apr 22 22:38:10 UTC 2010


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

Author: Eric Anholt <eric at anholt.net>
Date:   Thu Apr 22 15:24:26 2010 -0700

i965: Fix assertion for surface tile offset usage on Ironlake.

Fixes assertion failure in fbo-generatemipmap-npot.

---

 src/mesa/drivers/dri/i965/brw_wm_surface_state.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
index 6b9e566..e51a1a0 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
@@ -588,7 +588,7 @@ brw_update_renderbuffer_surface(struct brw_context *brw,
 	    tile_base = ((key.draw_y / 32) * (32 * pitch));
 	    tile_base += (key.draw_x - tile_x) / (128 / key.cpp) * 4096;
 	 }
-	 assert(intel->is_g4x || (tile_x == 0 && tile_y == 0));
+	 assert(brw->has_surface_tile_offset || (tile_x == 0 && tile_y == 0));
 	 assert(tile_x % 4 == 0);
 	 assert(tile_y % 2 == 0);
 	 /* Note that the low bits of these fields are missing, so




More information about the mesa-commit mailing list