freedreno/ir3: don't offset inloc by 8
authorRob Clark <robdclark@gmail.com>
Wed, 23 Nov 2016 17:21:38 +0000 (12:21 -0500)
committerRob Clark <robdclark@gmail.com>
Wed, 30 Nov 2016 17:25:48 +0000 (12:25 -0500)
commit728e2c4d38b2c03ad1fdc997bef70e646ada9fe4
treea70a1dcba9644c3c8582cd696d4d6a274dd220a6
parent7a591572876afdd4d3e38416f3148cfe99ea5bbf
freedreno/ir3: don't offset inloc by 8

On a3xx/a4xx, the SP_VS_VPC_DST_REG.OUTLOCn is offset by 8, so we used
to add this offset into fs->inputs[n].inloc.  But a5xx drops this extra
offset-by-8.  So instead make inloc zero based and add the offset when
we emit OUTLOCn values (for the gen's that need the offset).

Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a3xx/fd3_program.c
src/gallium/drivers/freedreno/a4xx/fd4_program.c
src/gallium/drivers/freedreno/ir3/ir3_compiler_nir.c
src/gallium/drivers/freedreno/ir3/ir3_shader.h