diff options
author | Eric Anholt <[email protected]> | 2009-11-18 03:21:17 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2009-11-19 11:47:21 +0100 |
commit | a376e5c48237be0300bce6702ed947086d3ee23f (patch) | |
tree | 8c624c4061e8ba71ff3f5fff1aedb5f2c7293d52 /src/mesa/drivers/dri/intel | |
parent | edd449fb9714ec1aa2d6c0cf95623f460594e685 (diff) |
intel: Consistently use no_batch_wrap in intel_context struct.
Diffstat (limited to 'src/mesa/drivers/dri/intel')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_batchbuffer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_batchbuffer.c b/src/mesa/drivers/dri/intel/intel_batchbuffer.c index ca6e2fa5b11..12c5a30d6b8 100644 --- a/src/mesa/drivers/dri/intel/intel_batchbuffer.c +++ b/src/mesa/drivers/dri/intel/intel_batchbuffer.c @@ -244,6 +244,9 @@ _intel_batchbuffer_flush(struct intel_batchbuffer *batch, const char *file, if (intel->vtbl.finish_batch) intel->vtbl.finish_batch(intel); + /* Check that we didn't just wrap our batchbuffer at a bad time. */ + assert(!intel->no_batch_wrap); + batch->reserved_space = BATCH_RESERVED; /* TODO: Just pass the relocation list and dma buffer up to the |