rt: translation_nanos times the read of whether a kernel observes its partition

What: the compute make's kernel_observes_partition call, which decodes the function, now goes
through pipeline::translating, the same as the other calls into the translator.

Why: the previous commit missed it, because its receiver sits on the line before the call. A
check of the translator's compile API (pipeline/compile/api.rs) against the runtime's calls finds
no other untimed call apart from the cache digests (function_compile_key,
compute_pipeline_key, queried_render_descriptor_key), which translation_nanos leaves out by its
doc.

How verified: the lane's compile gate, with the runtime suite on lavapipe.
This commit is contained in:
Anees Iqbal committed 2026-11-20 10:12:13 -08:00
1 parent 33cdabd1fd
commit 9ea53f7acd
1 file changed
+4 -3
+4 -3
View File
@@ -826,9 +826,10 @@ impl Compiled {
} else if core.caches.observed(&variant_key) {
Found::Unlowered
} else {
let observes = (translator)
.kernel_observes_partition(function, &inputs, &budget, entries)
.map_err(Error::Translation);
let observes = translating(&core, || {
translator.kernel_observes_partition(function, &inputs, &budget, entries)
})
.map_err(Error::Translation);
core.note_entries();
if observes? {
cache::keep_observer(&core, &variant_key);