draw/vs: partly fix basevertex/vertex id
authorDave Airlie <airlied@redhat.com>
Mon, 25 Mar 2019 05:38:18 +0000 (15:38 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 26 Mar 2019 21:52:28 +0000 (07:52 +1000)
commit7f7c9425a870af2bcb8b4c3149810bd1b32b8ddc
tree3141096d13ada70bcd7de52dbcf39b3c60b3ffc9
parente16ac33f374bb23e4f2e9a2cb87261e0939ab0c7
draw/vs: partly fix basevertex/vertex id

This gets the basevertex from the draw depending on whether
it's an indexed or non-indexed draw.

We still fail a transform feedback test for vertex id, as
the vertex id actually an index id, and isn't getting translated
properly to a vertex id, suggestions on how/where to fix that welcome.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/auxiliary/draw/draw_vs_exec.c