OSDN Git Service

i965: Fix many of the trivial WebGL demos that broke due to IB optimization.
authorEric Anholt <eric@anholt.net>
Fri, 22 Jul 2011 17:56:10 +0000 (10:56 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 25 Jul 2011 20:47:18 +0000 (13:47 -0700)
commit818db3848bfaa002d0e7cf6b9b615a31eb82ba25
tree70cf39fe5097294d04a2be3f1fdb0a7b00169f17
parenta0e5affb22da50aeb30262f5ba0912b059d858ea
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.
src/mesa/drivers/dri/i965/brw_vtbl.c