diff --git a/src/nouveau/compiler/nak/assign_regs.rs b/src/nouveau/compiler/nak/assign_regs.rs index 112c47dcc22..81d70b4f104 100644 --- a/src/nouveau/compiler/nak/assign_regs.rs +++ b/src/nouveau/compiler/nak/assign_regs.rs @@ -1359,13 +1359,6 @@ impl Shader<'_> { self.info.num_gprs = total_gprs.try_into().unwrap(); - // We do a maximum here because nak_from_nir may set num_barriers to 1 - // in the case where there is an OpBar. - self.info.num_barriers = max( - self.info.num_barriers, - max_live[RegFile::Bar].try_into().unwrap(), - ); - let limit = PerRegFile::new_with(|file| { if file == RegFile::GPR { gpr_limit