diff --git a/src/nouveau/compiler/nak/opt_instr_sched_common.rs b/src/nouveau/compiler/nak/opt_instr_sched_common.rs index 8ceae801517..d65cbc182c6 100644 --- a/src/nouveau/compiler/nak/opt_instr_sched_common.rs +++ b/src/nouveau/compiler/nak/opt_instr_sched_common.rs @@ -253,7 +253,7 @@ pub fn estimate_block_weight(cfg: &CFG, block_idx: usize) -> u64 { /// Memory instructions were copied from L1 data cache latencies. /// For instructions not mentioned in the paper, I made up numbers. /// This could probably be improved. -pub fn estimate_variable_latency(sm: &dyn ShaderModel, op: &Op) -> u32 { +pub fn estimate_variable_latency(sm: &ShaderModelInfo, op: &Op) -> u32 { if !sm.op_needs_scoreboard(op) { return 0; }