freedreno/a5xx: use vertex_id_zero_base
authorRob Clark <robdclark@gmail.com>
Mon, 18 Dec 2017 18:34:18 +0000 (13:34 -0500)
committerRob Clark <robdclark@gmail.com>
Tue, 19 Dec 2017 20:00:18 +0000 (15:00 -0500)
commit0536737983981b03fbe8bccd9f3a0f7ae81479b0
tree2247e5f2ba74c1ddd44928be67f449514a2e5cca
parenta1e18e87c775f16f4d66d3bd7de286bfee19fb3a
freedreno/a5xx: use vertex_id_zero_base

Cmdstream traces from blob make it clear that the blob driver dev's
*think* a5xx has a real (non-zero-based) vtxid.  But reality claims
differently.

Fixes ./bin/gl-3.2-basevertex-vertexid and probably others.

This means draw-indirect is going to need some gymnastics to copy
base-vertex into uniform.  (a4xx probably needs that too.)

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a5xx/fd5_program.c
src/gallium/drivers/freedreno/ir3/ir3_nir.c