nv50,nvc0: set vertex id base to index_bias
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 31 Dec 2014 04:19:47 +0000 (23:19 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 31 Dec 2014 04:30:23 +0000 (23:30 -0500)
commitbe0311c9626eef841f6d245359759cf1e082aebf
tree35180d95102abd447bd5efc2264108a713745443
parent609c3e51f5ca8abb15867537997369e7e8a678e3
nv50,nvc0: set vertex id base to index_bias

Fixes the piglits which check that gl_VertexID includes the base vertex
offset:
  arb_draw_indirect-vertexid elements
  gl-3.2-basevertex-vertexid

Note that this leaves out the original G80, for which this will continue
to fail. It could be fixed by passing a driver constbuf value in, but
that's beyond the scope of this change.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: "10.3 10.4" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/nouveau/nv50/nv50_screen.c
src/gallium/drivers/nouveau/nv50/nv50_vbo.c
src/gallium/drivers/nouveau/nvc0/mme/com9097.mme
src/gallium/drivers/nouveau/nvc0/mme/com9097.mme.h
src/gallium/drivers/nouveau/nvc0/nvc0_vbo.c