summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-12-08 23:43:57 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2009-12-08 23:43:57 +0000
commit417ad2712edcbca635eb5eeff0d11cdb16c069ed (patch)
tree9245f865802e69f7571214eb77969958e9d80335
parent47416b1eea09b238a997636d35998d71e0d18161 (diff)
Assert that we only call OUT_BATCH() inside a BATCH
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/i830_batchbuffer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/i830_batchbuffer.h b/src/i830_batchbuffer.h
index 16c33efc..1beba4f8 100644
--- a/src/i830_batchbuffer.h
+++ b/src/i830_batchbuffer.h
@@ -75,7 +75,7 @@ static inline void intel_batch_end_atomic(ScrnInfoPtr scrn)
static inline void intel_batch_emit_dword(intel_screen_private *intel, uint32_t dword)
{
assert(intel->batch_ptr != NULL);
- assert(intel_batch_space(intel) >= 4);
+ assert(intel->batch_emitting);
*(uint32_t *) (intel->batch_ptr + intel->batch_used) = dword;
intel->batch_used += 4;
}