amd/common: scan if gl_PrimitiveID is used before translating to LLVM
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 20 Dec 2017 19:56:56 +0000 (20:56 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 4 Jan 2018 17:43:09 +0000 (18:43 +0100)
commita4d2782664a215fd90d9c92a3eded3e893501420
tree1a1786782d9f3294dbb7ee638057daf2ba811700
parent3b2cb2f99ae8f82dd172f8486753637ae580d571
amd/common: scan if gl_PrimitiveID is used before translating to LLVM

It makes more sense to move all scan stuff in the same place.
Also, we don't really need to duplicate the uses_primid field
for each stages.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/amd/common/ac_nir_to_llvm.c
src/amd/common/ac_nir_to_llvm.h
src/amd/common/ac_shader_info.c
src/amd/common/ac_shader_info.h
src/amd/vulkan/radv_pipeline.c