nak: Non-constant offsets are allowed on patch loads

Fixes: 37a38f6744 ("nak/sm50: Add support for OpAL2P")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30402>
This commit is contained in:
Faith Ekstrand 2024-07-27 15:52:19 -05:00 committed by Marge Bot
parent 72eb0b6c13
commit 3d4a4a68a0

View file

@ -2619,8 +2619,9 @@ impl SM50Op for OpALd {
e.set_dst(self.dst);
if self.access.phys {
assert!(!self.access.patch);
assert!(self.offset.src_ref.as_reg().is_some());
} else {
} else if !self.access.patch {
assert!(self.offset.is_zero());
}
e.set_reg_src(8..16, self.offset);