It affects VERTEX_BUFFER_FIRST,COUNT submission, too.
struct nouveau_channel *chan = nv50->screen->base.channel;
unsigned prim;
+ if (nv50->state.index_bias) {
+ BEGIN_RING(chan, RING_3D(VB_ELEMENT_BASE), 1);
+ OUT_RING (chan, 0);
+ nv50->state.index_bias = 0;
+ }
+
prim = nv50_prim_gl(mode);
while (instance_count--) {
struct nouveau_channel *chan = nvc0->screen->base.channel;
unsigned prim;
+ if (nvc0->state.index_bias) {
+ IMMED_RING(chan, RING_3D(VB_ELEMENT_BASE), 0);
+ nvc0->state.index_bias = 0;
+ }
+
prim = nvc0_prim_gl(mode);
while (instance_count--) {