mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 10:30:13 +01:00
ac/nir: add ac_nir_context::main_function
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
2be774b196
commit
48737e1890
1 changed files with 3 additions and 0 deletions
|
|
@ -66,6 +66,7 @@ struct ac_nir_context {
|
|||
struct hash_table *phis;
|
||||
struct hash_table *vars;
|
||||
|
||||
LLVMValueRef main_function;
|
||||
LLVMBasicBlockRef continue_block;
|
||||
LLVMBasicBlockRef break_block;
|
||||
|
||||
|
|
@ -6102,6 +6103,8 @@ void ac_nir_translate(struct ac_llvm_context *ac, struct ac_shader_abi *abi,
|
|||
|
||||
ctx.stage = nir->stage;
|
||||
|
||||
ctx.main_function = LLVMGetBasicBlockParent(LLVMGetInsertBlock(ctx.ac.builder));
|
||||
|
||||
nir_foreach_variable(variable, &nir->outputs)
|
||||
handle_shader_output_decl(&ctx, nir, variable);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue