tu, freedreno: Fix VS primid with tess + GS
If tess is enabled, then VS chains to the HS and we have to use the HS value for the PrimID sysval. This is still true if GS is also enabled, so we need to use the HS instead of the GS if both are enabled. In particular if the HS or DS uses gl_PrimitiveID but the GS doesn't then we still need to setup the register.
This fixes a bunch of dEQP-VK.tessellation.invariance.primitive_set.* cases on a650, although it seems they managed to still pass on a630 with the broken PrimID handling.
Fixes: 8115cde3 ("tu, freedreno/a6xx, ir3: Rewrite tess PrimID handling")