mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
nak: Don't swap f2fp sources in legalize
The order of these is important.
Fixes: e19871bd6a ("nak: Use F2FP for nir_op_pack_half_2x16_split on SM86+")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12717
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35267>
This commit is contained in:
parent
9b94ec30b6
commit
aae67ab678
1 changed files with 1 additions and 3 deletions
|
|
@ -1915,9 +1915,7 @@ impl SM70Op for OpF2F {
|
|||
impl SM70Op for OpF2FP {
|
||||
fn legalize(&mut self, b: &mut LegalizeBuilder) {
|
||||
let gpr = op_gpr(self);
|
||||
let [src0, src1] = &mut self.srcs;
|
||||
swap_srcs_if_not_reg(src0, src1, gpr);
|
||||
|
||||
let [src0, _src1] = &mut self.srcs;
|
||||
b.copy_alu_src_if_not_reg(src0, gpr, SrcType::ALU);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue