r600/sfn: Pass chan and dest_clamp to alu op if no dest register is given

v2: move common code

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37205>
This commit is contained in:
Gert Wollny 2025-09-03 16:02:40 +02:00 committed by Marge Bot
parent 4dd3951323
commit 90b2fbbab4

View file

@ -306,13 +306,15 @@ AssamblerVisitor::emit_alu_op(const AluInstr& ai)
}
alu.dst.write = ai.has_alu_flag(alu_write);
alu.dst.clamp = ai.has_alu_flag(alu_dst_clamp);
alu.dst.rel = dst->addr() ? 1 : 0;
} else if (m_bc->gfx_level == CAYMAN && ai.dest()->sel() > 0) {
alu.dst.sel = ai.dest()->sel() + 1;
}
} else {
alu.dst.chan = ai.dest_chan();
}
alu.dst.clamp = ai.has_alu_flag(alu_dst_clamp);
alu.is_op3 = ai.n_sources() == 3;
EBufferIndexMode kcache_index_mode = bim_none;