amd/common: scan if gl_PrimitiveID is used before translating to LLVM