nir: Add nir_foreach_shader_in/out_variable helpers
[mesa.git] / src / gallium / drivers / radeonsi / si_shader_llvm_vs.c
index a168cec39d74d68146c4f3eb9ba4cb91a1f574e4..62ec43cd1953537a4a7098010bdf9a968beeffe2 100644 (file)
@@ -235,7 +235,7 @@ void si_llvm_load_vs_inputs(struct si_shader_context *ctx, struct nir_shader *ni
 {
    uint64_t processed_inputs = 0;
 
-   nir_foreach_variable (variable, &nir->inputs) {
+   nir_foreach_shader_in_variable (variable, nir) {
       unsigned attrib_count = glsl_count_attribute_slots(variable->type, true);
       unsigned input_idx = variable->data.driver_location;
       unsigned loc = variable->data.location;