freedreno/ir3: handle VTXID_BASE for indirect draws
authorRob Clark <robdclark@gmail.com>
Mon, 18 Dec 2017 20:09:49 +0000 (15:09 -0500)
committerRob Clark <robdclark@gmail.com>
Tue, 19 Dec 2017 20:00:18 +0000 (15:00 -0500)
commit3511a51be07aac4a4f9378db7b5c83347174755d
tree508b805bd67c1b420ff1df647e0186cc0c0c0844
parentd7cb509fd3af578c7b1b8eac57910e38e258e348
freedreno/ir3: handle VTXID_BASE for indirect draws

Need to do some gymnastics to copy the parameter from the indirect
parameters buffer to uniform so shader sees the correct base-vertex-id.

Fixes ./bin/arb_draw_indirect-vertexid on a5xx and probably a4xx too.

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