mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-20 03:00:11 +01:00
nak: drop cast of u8 to u8
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38807>
This commit is contained in:
parent
ddc26666da
commit
9454006956
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue