mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-23 07:30:30 +01:00
aco/insert_exec: fix continue_or_break on gfx6-7
s_cmp_lg_u64 is gfx8+
Fixes: 115ff5f95b ("aco/insert_exec_mask: don't restore exec in continue_or_break blocks")
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33715>
This commit is contained in:
parent
904760ff8e
commit
c249556bf4
1 changed files with 4 additions and 2 deletions
|
|
@ -645,8 +645,10 @@ add_branch_code(exec_ctx& ctx, Block* block)
|
|||
while (!(ctx.info[idx].exec.back().type & mask_type_loop))
|
||||
ctx.info[idx].exec.pop_back();
|
||||
|
||||
Temp cond = bld.sopc(Builder::s_cmp_lg, bld.def(s1, scc), ctx.info[idx].exec.back().op,
|
||||
Operand::zero(bld.lm.bytes()));
|
||||
Temp cond = bld.sop2(Builder::s_or, bld.def(bld.lm), bld.def(s1, scc),
|
||||
ctx.info[idx].exec.back().op, Operand::zero(bld.lm.bytes()))
|
||||
.def(1)
|
||||
.getTemp();
|
||||
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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue