nak: sm50: fadd: ensure src[0] is in a register
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26723>
This commit is contained in:
committed by
Marge Bot
parent
2ac28dd9a9
commit
c1614913d9
@@ -195,6 +195,7 @@ fn legalize_sm50_instr(
|
||||
let [ref mut src0, ref mut src1] = op.srcs;
|
||||
swap_srcs_if_not_reg(src0, src1);
|
||||
copy_alu_src_if_not_reg(b, src1, SrcType::F32);
|
||||
copy_alu_src_if_not_reg(b, src0, SrcType::F32);
|
||||
}
|
||||
Op::FMul(op) => {
|
||||
copy_alu_src_if_not_reg(b, &mut op.srcs[0], SrcType::F32);
|
||||
|
||||
Reference in New Issue
Block a user