Because each location has 4 possible different values for location_frac
the arrays need to br 4x the size.
Fixes:
d0342e28 ("nir: Add helper to create passthrough GS shader")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22871>
bool handle_flat = nir->info.gs.output_primitive == SHADER_PRIM_LINE_STRIP &&
nir->info.gs.output_primitive != original_our_prim;
- nir_variable *in_vars[VARYING_SLOT_MAX];
- nir_variable *out_vars[VARYING_SLOT_MAX];
+ nir_variable *in_vars[VARYING_SLOT_MAX * 4];
+ nir_variable *out_vars[VARYING_SLOT_MAX * 4];
unsigned num_inputs = 0, num_outputs = 0;
/* Create input/output variables. */