aco: allow Builder::Result to be dereferenced

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20251>
This commit is contained in:
Rhys Perry
2023-01-04 14:52:34 +00:00
committed by Marge Bot
parent e386523380
commit c3dd1931d9
10 changed files with 96 additions and 93 deletions
+2 -2
View File
@@ -816,7 +816,7 @@ add_branch_code(exec_ctx& ctx, Block* block)
Builder::Result r = bld.branch(aco_opcode::p_cbranch_z, bld.def(s2), Operand(exec, bld.lm),
block->linear_succs[1], block->linear_succs[0]);
r.instr->branch().selection_control = sel_ctrl;
r->branch().selection_control = sel_ctrl;
return;
}
@@ -832,7 +832,7 @@ add_branch_code(exec_ctx& ctx, Block* block)
Builder::Result r = bld.branch(aco_opcode::p_cbranch_z, bld.def(s2), Operand(exec, bld.lm),
block->linear_succs[1], block->linear_succs[0]);
r.instr->branch().selection_control = sel_ctrl;
r->branch().selection_control = sel_ctrl;
return;
}