diff options
author | Zou Nan hai <[email protected]> | 2008-01-15 15:19:09 +0800 |
---|---|---|
committer | Zou Nan hai <[email protected]> | 2008-01-15 15:19:09 +0800 |
commit | 3ad9ca8240ffa32a8dfbfffd0cfb1d0384e04a9f (patch) | |
tree | 40c593e52903488bc83ac39def0b395998bdec46 | |
parent | ffa8b18c7cce5041d2006e669fe633156a6b2d05 (diff) |
i965: fix an assert fail in brw_new_batch
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_draw.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c index 63547f386d3..72c6221ef76 100644 --- a/src/mesa/drivers/dri/i965/brw_draw.c +++ b/src/mesa/drivers/dri/i965/brw_draw.c @@ -284,8 +284,10 @@ static GLboolean brw_try_draw_prims( GLcontext *ctx, * an upper bound of how much we might emit in a single * brw_try_draw_prims(). */ - if (intel->batch->ptr - intel->batch->map > intel->batch->size * 3 / 4) - intel_batchbuffer_flush(intel->batch); + if (intel->batch->ptr - intel->batch->map > intel->batch->size * 3 / 4 + /* brw_emit_prim may change the cliprect_mode to LOOP_CLIPRECTS */ + || intel->batch->cliprect_mode != LOOP_CLIPRECTS) + intel_batchbuffer_flush(intel->batch); brw->no_batch_wrap = GL_TRUE; |