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:
Georg Lehmann 2025-02-24 16:54:55 +01:00 committed by Marge Bot
parent 904760ff8e
commit c249556bf4

View file

@ -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) {