anv: Rework primitive replication enabling
This is prep work for pipeline libraries where we can't look at the fragment shader to compile geometry stages. It's on top of !17601 (merged) so ignore any commits from Lionel.
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
This is prep work for pipeline libraries where we can't look at the fragment shader to compile geometry stages. It's on top of !17601 (merged) so ignore any commits from Lionel.