mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
i965: fix an assert fail in brw_new_batch
This commit is contained in:
parent
ffa8b18c7c
commit
3ad9ca8240
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue