nak: Take &ShaderModelInfo in instr_sched_common

Acked-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Mary Guillemard <mary@mary.zone>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39074>
This commit is contained in:
Mel Henning
2025-12-23 11:42:19 -05:00
committed by Marge Bot
parent 11325f922d
commit 5f2caf6d63

View File

@@ -253,7 +253,7 @@ pub fn estimate_block_weight(cfg: &CFG<BasicBlock>, 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;
}