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>
nir_foreach_shader_out_variable(var, prev_stage) {
assert(!var->data.patch);
+ /* input vars can't be created for those */
+ if (var->data.location == VARYING_SLOT_LAYER ||
+ var->data.location == VARYING_SLOT_VIEW_INDEX)
+ continue;
+
char name[100];
if (var->name)
snprintf(name, sizeof(name), "in_%s", var->name);