}
void ac_nir_translate(struct ac_llvm_context *ac, struct ac_shader_abi *abi,
- struct nir_shader *nir, struct nir_to_llvm_context *nctx)
+ struct nir_shader *nir)
{
struct ac_nir_context ctx = {};
struct nir_function *func;
nir_foreach_variable(variable, &shaders[i]->outputs)
scan_shader_output_decl(&ctx, variable, shaders[i], shaders[i]->info.stage);
- ac_nir_translate(&ctx.ac, &ctx.abi, shaders[i], &ctx);
+ ac_nir_translate(&ctx.ac, &ctx.abi, shaders[i]);
if (shader_count >= 2) {
LLVMBuildBr(ctx.ac.builder, merge_block);
const struct ac_nir_compiler_options *options,
bool dump_shader);
-struct nir_to_llvm_context;
void ac_nir_translate(struct ac_llvm_context *ac, struct ac_shader_abi *abi,
- struct nir_shader *nir, struct nir_to_llvm_context *nctx);
+ struct nir_shader *nir);
#endif /* AC_NIR_TO_LLVM_H */
assert(nir->info.stage == MESA_SHADER_COMPUTE);
si_declare_compute_memory(ctx);
}
- ac_nir_translate(&ctx->ac, &ctx->abi, nir, NULL);
+ ac_nir_translate(&ctx->ac, &ctx->abi, nir);
return true;
}