From 850668c94285ddf83e27db750d269b3a152272ce Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 14 Aug 2023 14:02:32 +1000 Subject: [PATCH] nak: make ipa encoding match the order in codegen gv100 78 has interp mode 76 has sample mode Part-of: --- src/nouveau/compiler/nak_encode_sm75.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/nouveau/compiler/nak_encode_sm75.rs b/src/nouveau/compiler/nak_encode_sm75.rs index 26a6ecea5bc..9333071f807 100644 --- a/src/nouveau/compiler/nak_encode_sm75.rs +++ b/src/nouveau/compiler/nak_encode_sm75.rs @@ -1437,20 +1437,20 @@ impl SM75Instr { self.set_field( 76..78, - match op.freq { - InterpFreq::Pass => 0_u8, - InterpFreq::Constant => 1_u8, - InterpFreq::State => 2_u8, - }, - ); - self.set_field( - 78..80, match op.loc { InterpLoc::Default => 0_u8, InterpLoc::Centroid => 1_u8, InterpLoc::Offset => 2_u8, }, ); + self.set_field( + 78..80, + match op.freq { + InterpFreq::Pass => 0_u8, + InterpFreq::Constant => 1_u8, + InterpFreq::State => 2_u8, + }, + ); self.set_reg_src(32..40, op.offset);