mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-27 14:10:25 +01: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> (cherry picked from commitaae67ab678)
This commit is contained in:
parent
a77ee5440a
commit
eacca4b1ec
2 changed files with 2 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue