mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
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:
parent
2ac28dd9a9
commit
c1614913d9
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue