nak/sm20: Fix encoding panic for OpFAdd

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35151>
This commit is contained in:
Lorenzo Rossi
2025-05-25 12:46:15 +02:00
committed by Marge Bot
parent 4942a29314
commit 02805fd900

View File

@@ -575,7 +575,7 @@ impl SM20Op for OpFAdd {
// should fold any modifiers on immediates for us.
assert!(self.srcs[1].src_mod.is_none());
e.encode_form_a_imm32(0xa, &self.dst, &self.srcs[0], imm32);
assert!(self.saturate);
assert!(!self.saturate);
assert!(self.rnd_mode == FRndMode::NearestEven);
} else {
e.encode_form_a(