nir: Add nir_foreach_shader_in/out_variable helpers
[mesa.git] / src / gallium / drivers / lima / ir / gp / nir.c
index 223db082424618b5e5e83ae733875e8ef01a74d5..fd7acc77773aaf2e2ac240afca66f65ff83ff6d1 100644 (file)
@@ -487,7 +487,7 @@ bool gpir_compile_nir(struct lima_vs_shader_state *prog, struct nir_shader *nir,
    if (!gpir_codegen_prog(comp))
       goto err_out0;
 
-   nir_foreach_variable(var, &nir->outputs) {
+   nir_foreach_shader_out_variable(var, nir) {
       bool varying = true;
       switch (var->data.location) {
       case VARYING_SLOT_POS: