radv: get InstanceID from VGPR1 (or VGPR2 for tess) instead of VGPR3
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 5 Jan 2018 18:18:13 +0000 (19:18 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 8 Jan 2018 20:30:01 +0000 (21:30 +0100)
commit08a5f4412aa505011a9cb80b9e9ed8eb90469613
tree0aa20aa9c16cf783cefa68c9c317c448a6df08c3
parentbe16bbe1d391d43cbccf4da2f1759ba52b016266
radv: get InstanceID from VGPR1 (or VGPR2 for tess) instead of VGPR3

VGPR1 = InstanceID / StepRate0; // StepRate0 can be set to 1

Ported from RadeonSI.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/common/ac_nir_to_llvm.c