nak: Remove annotations before calc_instr_deps()

Otherwise the annotations might throw off latency information which
needs exact instruction counts.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31665>
This commit is contained in:
Faith Ekstrand
2024-10-11 11:17:13 -05:00
committed by Marge Bot
parent 9e769a0620
commit 36d9d11882
+3 -2
View File
@@ -426,6 +426,9 @@ pub extern "C" fn nak_compile_shader(
} else {
pass!(s, opt_crs);
}
s.remove_annotations();
pass!(s, calc_instr_deps);
s.gather_info();
@@ -435,8 +438,6 @@ pub extern "C" fn nak_compile_shader(
write!(asm, "{}", s).expect("Failed to dump assembly");
}
s.remove_annotations();
let code = sm.encode_shader(&s);
let bin =
Box::new(ShaderBin::new(sm.as_ref(), &s.info, fs_key, code, &asm));