diff --git a/src/nouveau/compiler/nak/assign_regs.rs b/src/nouveau/compiler/nak/assign_regs.rs index d265a88e79e..0398b678e92 100644 --- a/src/nouveau/compiler/nak/assign_regs.rs +++ b/src/nouveau/compiler/nak/assign_regs.rs @@ -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)); }