projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6451643
)
i965: Fix assertion for surface tile offset usage on Ironlake.
author
Eric Anholt
<eric@anholt.net>
Thu, 22 Apr 2010 22:24:26 +0000
(15:24 -0700)
committer
Eric Anholt
<eric@anholt.net>
Thu, 22 Apr 2010 22:37:33 +0000
(15:37 -0700)
Fixes assertion failure in fbo-generatemipmap-npot.
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
patch
|
blob
|
history
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 6b9e5668862336664fd335018aada20f90177576..e51a1a0e26a8629b435040ee49cf1d5fbadad502 100644
(file)
--- 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