diff options
author | Kenneth Graunke <[email protected]> | 2017-08-30 00:54:40 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2017-09-14 16:17:36 -0700 |
commit | d1245211417c092bd1c12339559caced98d7560f (patch) | |
tree | be1c2a4c2fc7f30c114b6f30411de5e68d34d692 /src/mesa/drivers/dri/i965/intel_batchbuffer.c | |
parent | 939b53d3325e4b53d1dbc4051d4dcb000fa4aba1 (diff) |
i965: Delete a batch size assertion that isn't very useful.
This assertion prevents you from doing intel_batchbuffer_require_space
with a size so huge it won't fit in the batchbuffer. This doesn't seem
like a common mistake, and I've never seen the assert to be useful.
Soon, I hope to have batches grow, at which point this won't make sense.
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/intel_batchbuffer.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_batchbuffer.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.c b/src/mesa/drivers/dri/i965/intel_batchbuffer.c index 515b595bc92..cd118f6c6fc 100644 --- a/src/mesa/drivers/dri/i965/intel_batchbuffer.c +++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.c @@ -238,9 +238,6 @@ intel_batchbuffer_require_space(struct brw_context *brw, GLuint sz, intel_batchbuffer_flush(brw); } -#ifdef DEBUG - assert(sz < BATCH_SZ - BATCH_RESERVED); -#endif if (intel_batchbuffer_space(&brw->batch) < sz) intel_batchbuffer_flush(brw); |