mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
r600/sfn: Set trans flag for flt_to_int on pre-EG
Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Reviewed-by: Filip Gawin <filip@gawin.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17822>
This commit is contained in:
parent
a2cb85800b
commit
325eaf6479
1 changed files with 5 additions and 1 deletions
|
|
@ -215,7 +215,11 @@ bool VertexExportForFs::emit_varying_pos(const store_loc &store_info, nir_intrin
|
|||
auto src = m_parent->value_factory().src(intr.src[0], 0);
|
||||
auto clamped = m_parent->value_factory().temp_register();
|
||||
m_parent->emit_instruction(new AluInstr(op1_mov, clamped, src, {alu_write, alu_dst_clamp, alu_last_instr}));
|
||||
m_parent->emit_instruction(new AluInstr(op1_flt_to_int, out_value[1], clamped, AluInstr::last_write));
|
||||
auto alu = new AluInstr(op1_flt_to_int, out_value[1], clamped, AluInstr::last_write);
|
||||
if (m_parent->chip_class() < ISA_CC_EVERGREEN)
|
||||
alu->set_alu_flag(alu_is_trans);
|
||||
m_parent->emit_instruction(alu);
|
||||
|
||||
value = out_value;
|
||||
}
|
||||
FALLTHROUGH;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue