nir: Add nir_foreach_shader_in/out_variable helpers
[mesa.git] / src / amd / llvm / ac_nir_to_llvm.c
index 47539cfb56a1248123311c1ada961a1c26bff6ee..94b920f748a42babdbca575336a1e09afc620fd0 100644 (file)
@@ -5354,7 +5354,7 @@ void ac_nir_translate(struct ac_llvm_context *ac, struct ac_shader_abi *abi,
 
        ctx.main_function = LLVMGetBasicBlockParent(LLVMGetInsertBlock(ctx.ac.builder));
 
-       nir_foreach_variable(variable, &nir->outputs)
+       nir_foreach_shader_out_variable(variable, nir)
                ac_handle_shader_output_decl(&ctx.ac, ctx.abi, nir, variable,
                                             ctx.stage);