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:
1 parent
33cdabd1fd
commit
9ea53f7acd
1 file changed
+4
-3
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user