mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
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:
parent
72eb0b6c13
commit
3d4a4a68a0
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue