From 9070879a79c3400f08a0b136d8472a7625680ca1 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Sun, 6 Mar 2011 00:30:12 +0100 Subject: i915g: streamline derived state updates of the driver pipeline Flushing the batch/hw backend doesn't invalidate the derived state. So kill the unnecessary function calls and add an assert in emit_hardware_state for paranoia. Signed-off-by: Daniel Vetter --- src/gallium/drivers/i915/i915_state_emit.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/drivers/i915/i915_state_emit.c') diff --git a/src/gallium/drivers/i915/i915_state_emit.c b/src/gallium/drivers/i915/i915_state_emit.c index 324a8a3e15..096aa93cf0 100644 --- a/src/gallium/drivers/i915/i915_state_emit.c +++ b/src/gallium/drivers/i915/i915_state_emit.c @@ -405,6 +405,8 @@ i915_emit_hardware_state(struct i915_context *i915 ) unsigned batch_space; uintptr_t save_ptr; + assert(i915->dirty == 0); + if (I915_DBG_ON(DBG_ATOMS)) i915_dump_hardware_dirty(i915, __FUNCTION__); -- cgit v1.2.3