projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffa8b18
)
i965: fix an assert fail in brw_new_batch
author
Zou Nan hai
<nanhai.zou@intel.com>
Tue, 15 Jan 2008 07:19:09 +0000
(15:19 +0800)
committer
Zou Nan hai
<nanhai.zou@intel.com>
Tue, 15 Jan 2008 07:19:09 +0000
(15:19 +0800)
src/mesa/drivers/dri/i965/brw_draw.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_draw.c
b/src/mesa/drivers/dri/i965/brw_draw.c
index 63547f386d36bd978dc57e7cc06e714e032583df..72c6221ef7652b6f8415b29480531c27a97b5c54 100644
(file)
--- 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;