nv50: reimplement draw_arrays_instanced(), do draw_arrays() in terms of it
authorBen Skeggs <bskeggs@redhat.com>
Fri, 5 Mar 2010 00:08:12 +0000 (10:08 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 10 Mar 2010 06:30:00 +0000 (16:30 +1000)
commit621c4609f871d3e84d5f7fd98f11ee9ddf2a1f7c
tree3c4fb2beb724090a0316394f77736e7ff9758e4e
parenta527716e81a81f73c73d3744b4803c27a053ade2
nv50: reimplement draw_arrays_instanced(), do draw_arrays() in terms of it

This makes draw_arrays()/draw_arrays_instanced() do the right thing and
not require the (probably broken anyway) flush_notify() usage.

It also fixes a potential bug in the behaviour of reading InstanceID from
shaders, where 0 should be read for non-instanced drawing, previously it
was possible to read non-0 ids if mixing instanced/non-instanced.
src/gallium/drivers/nv50/nv50_vbo.c