nak: make ipa encoding match the order in codegen gv100

78 has interp mode
76 has sample mode

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24998>
This commit is contained in:
Dave Airlie
2023-08-14 14:02:32 +10:00
committed by Marge Bot
parent dadc79d96f
commit 850668c942
+8 -8
View File
@@ -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);