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>
(cherry picked from commit aae67ab678)
This commit is contained in:
Mel Henning 2025-05-30 20:29:04 -04:00 committed by Eric Engestrom
parent a77ee5440a
commit eacca4b1ec
2 changed files with 2 additions and 4 deletions

View file

@ -1424,7 +1424,7 @@
"description": "nak: Don't swap f2fp sources in legalize",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "e19871bd6ad0651a5b8ea8215eab686ace5d08e1",
"notes": null

View file

@ -1939,9 +1939,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);
}