[Mesa-dev] [PATCH 4/4] i965: Change assertion condition from implicit to explicit
chad at chad-versace.us
chad at chad-versace.us
Tue Apr 12 15:33:58 PDT 2011
From: Chad Versace <chad at chad-versace.us>
... because grokking explicit assertions requires fewer neurons.
In brw_misc_state.c:emit_depthbuffer, change
assert(tiling != I915_TILING_X && tiling != I915_TILING_NONE)
to
assert(tiling == I915_TILING_Y)
Signed-off-by: Chad Versace <chad at chad-versace.us>
---
src/mesa/drivers/dri/i965/brw_misc_state.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_misc_state.c b/src/mesa/drivers/dri/i965/brw_misc_state.c
index 74e911b..617712e 100644
--- a/src/mesa/drivers/dri/i965/brw_misc_state.c
+++ b/src/mesa/drivers/dri/i965/brw_misc_state.c
@@ -249,7 +249,7 @@ static void emit_depthbuffer(struct brw_context *brw)
assert(region->tiling != I915_TILING_X);
if (intel->gen >= 6)
- assert(region->tiling != I915_TILING_NONE);
+ assert(region->tiling != I915_TILING_Y);
BEGIN_BATCH(len);
OUT_BATCH(_3DSTATE_DEPTH_BUFFER << 16 | (len - 2));
--
1.7.4.2
More information about the mesa-dev
mailing list