mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
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:
parent
4dd3951323
commit
90b2fbbab4
1 changed files with 3 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue