mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-22 06:38:09 +02:00
i965: Fix many of the trivial WebGL demos that broke due to IB optimization.
The index buffer state emit only occurred if there was an IB in place
and we were in either a new batch or a new IB state. But because we
only flagged new IB state if IB state changed from the last IB state
we calculated, we could simply never emit IB state after batchbuffer
wraps if the first draw didn't use the IB and we didn't actually
change the IB.
Fixes piglit glx-multi-context-ib-1.
(cherry picked from commit 818db3848b)
This commit is contained in:
parent
a03974ffb9
commit
5238303790
1 changed files with 1 additions and 0 deletions
|
|
@ -211,6 +211,7 @@ static void brw_new_batch( struct intel_context *intel )
|
|||
intel->batch.need_workaround_flush = true;
|
||||
|
||||
brw->vb.nr_current_buffers = 0;
|
||||
brw->ib.type = -1;
|
||||
|
||||
/* Mark that the current program cache BO has been used by the GPU.
|
||||
* It will be reallocated if we need to put new programs in for the
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue