diff --git a/src/nouveau/compiler/nak/calc_instr_deps.rs b/src/nouveau/compiler/nak/calc_instr_deps.rs index 570c34e66ef..967b70cef07 100644 --- a/src/nouveau/compiler/nak/calc_instr_deps.rs +++ b/src/nouveau/compiler/nak/calc_instr_deps.rs @@ -801,7 +801,7 @@ impl BlockDelayScheduler<'_> { // current block is complete, so it is effectively executed at cycle // `0 - delay`, adding the latency we get `latency - delay` // Underflow means that the instruction is already done (delay > latency). - latency.checked_sub(delay.into()).unwrap_or(0) + latency.saturating_sub(delay.into()) } }