softpipe/draw: fix vertex id in soft paths.
authorDave Airlie <airlied@redhat.com>
Wed, 27 Mar 2019 04:06:50 +0000 (14:06 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 28 Mar 2019 04:13:08 +0000 (14:13 +1000)
commit9f9d9c948dc665875672b5c2ee034aca18ccaf71
treea8e802cafebbd12f48d97338ea25001c90da67d1
parent893425a607a63a83e8a4c13fd963367c8d174678
softpipe/draw: fix vertex id in soft paths.

This fixes the vertex id fetch in the non-llvm drawing paths.

This vertex id in elt mode comes from the elts not just a linear
value.

Note we don't bad basevertex in the elts case as it's already included
in the elts by the looks of it (at least tests fail if I add it)

Fixes piglit end-primitive tests and some others.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
src/gallium/auxiliary/draw/draw_vs.h
src/gallium/auxiliary/draw/draw_vs_exec.c
src/gallium/auxiliary/draw/draw_vs_llvm.c
src/gallium/auxiliary/draw/draw_vs_variant.c