nak/ra: Never move uniform regs in non-uniform blocks

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29591>
This commit is contained in:
Faith Ekstrand
2024-06-07 21:08:09 -05:00
committed by Marge Bot
parent 11670be661
commit 130392e7ab
+7
View File
@@ -1144,6 +1144,13 @@ impl AssignRegsBlock {
annotation: "generated by assign_regs".into(),
}));
}
if !b.uniform {
for dst in pcopy.dsts_as_slice() {
if let Dst::Reg(reg) = dst {
assert!(!reg.is_uniform());
}
}
}
instrs.push(Instr::new_boxed(pcopy));
}