nir: don't create invalid inputs in `nir_create_passthrough_gs`
authorantonino <antonino.maniscalco@collabora.com>
Fri, 5 May 2023 09:53:55 +0000 (11:53 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 15 May 2023 11:04:41 +0000 (11:04 +0000)
commit83692bfe3013ace7a98ab59cdcbbae878b9c5758
treef94d728a9d7bcbd9d747a55b93934bcb9402f25c
parent78d59ef4b1f3c8e16163b118c220fc40144db6e0
nir: don't create invalid inputs in `nir_create_passthrough_gs`

The helper was creating input locations for some builtin bariables.

This caused validation errors in zink because those builtins can't be
used as input.

Fixes: d0342e28b32 ("nir: Add helper to create passthrough GS shader")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22871>
src/compiler/nir/nir_passthrough_gs.c