mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 09:00:10 +01:00
aco/insert_exec_mask: don't restore exec in continue_or_break blocks
Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33527>
This commit is contained in:
parent
7f7c1d463a
commit
115ff5f95b
1 changed files with 4 additions and 7 deletions
|
|
@ -642,15 +642,12 @@ add_branch_code(exec_ctx& ctx, Block* block)
|
|||
assert(block->instructions.back()->opcode == aco_opcode::p_branch);
|
||||
block->instructions.pop_back();
|
||||
|
||||
bool need_parallelcopy = false;
|
||||
while (!(ctx.info[idx].exec.back().type & mask_type_loop)) {
|
||||
while (!(ctx.info[idx].exec.back().type & mask_type_loop))
|
||||
ctx.info[idx].exec.pop_back();
|
||||
need_parallelcopy = true;
|
||||
}
|
||||
|
||||
if (need_parallelcopy)
|
||||
bld.copy(Definition(exec, bld.lm), ctx.info[idx].exec.back().op);
|
||||
bld.branch(aco_opcode::p_cbranch_nz, Operand(exec, bld.lm), block->linear_succs[1],
|
||||
Temp cond = bld.sopc(Builder::s_cmp_lg, bld.def(s1, scc), ctx.info[idx].exec.back().op,
|
||||
Operand::zero(bld.lm.bytes()));
|
||||
bld.branch(aco_opcode::p_cbranch_nz, Operand(cond, scc), block->linear_succs[1],
|
||||
block->linear_succs[0]);
|
||||
} else if (block->kind & block_kind_uniform) {
|
||||
Pseudo_branch_instruction& branch = block->instructions.back()->branch();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue