nir: Add nir_foreach_shader_in/out_variable helpers
[mesa.git] / src / amd / vulkan / radv_shader_info.c
index eca46c811578c44fa102fced0c278fd26190832c..8f2b6a1f5b1f2cfb1f8b3e6378aa6c19ae1735ae 100644 (file)
@@ -679,14 +679,14 @@ radv_nir_shader_info_pass(const struct nir_shader *nir,
                info->loads_dynamic_offsets = true;
        }
 
-       nir_foreach_variable(variable, &nir->inputs)
+       nir_foreach_shader_in_variable(variable, nir)
                gather_info_input_decl(nir, variable, info, key);
 
        nir_foreach_block(block, func->impl) {
                gather_info_block(nir, block, info);
        }
 
-       nir_foreach_variable(variable, &nir->outputs)
+       nir_foreach_shader_out_variable(variable, nir)
                gather_info_output_decl(nir, variable, info, key);
 
        if (nir->info.stage == MESA_SHADER_VERTEX ||