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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user