nak: drop cast of u8 to u8
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38807>
This commit is contained in:
@@ -1010,7 +1010,7 @@ fn calc_delays(f: &mut Function, sm: &ShaderModelInfo) -> u64 {
|
||||
for (ip, i) in b.instrs.iter_mut().enumerate() {
|
||||
let delay = cycles[ip] - cycles.get(ip + 1).copied().unwrap_or(0);
|
||||
let delay: u8 = delay.try_into().expect("Delay overflow");
|
||||
i.deps.delay = delay.max(MIN_INSTR_DELAY) as u8;
|
||||
i.deps.delay = delay.max(MIN_INSTR_DELAY);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user