mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02: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> (cherry picked from commitc249556bf4)
This commit is contained in:
parent
36e1923284
commit
cb09b3f624
2 changed files with 5 additions and 3 deletions
|
|
@ -1934,7 +1934,7 @@
|
|||
"description": "aco/insert_exec: fix continue_or_break on gfx6-7",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "115ff5f95b00e76a28b3f4f1622ccc5e2a64230c",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -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