Files
metal2vulkan/crates/metal2vulkan-runtime/examples
Anees Iqbal 6cbae4e537 host_ab percall: a held count a device's path never moves reads zero there, and rows are checked by name up front
On the RTX 5080 the per-call table stopped at texture_256_shared ("rt_vk_images_made_at_call is
held to at most 1, but the group moved no such count, so the row holds nothing"), so
heap_texture_256 and every later row went unmeasured there. HELD's rows are upper bounds measured
on the M3 Max, and hold() also failed any row of a bound above zero whose count the group did not
move, as its guard against a misspelled count. A Shared texture's image is made at the call where
the device copies its texels on the host (texture/host_copy.rs: the M3 Max), and taken from the
images an earlier window's textures parked where it stages its copies on another queue
(texture/staging_copy.rs: NVIDIA's copy engine): that path makes no image, binds none and starts
none on the host, so the count does not move, and the guard read the cheaper path as a
misspelling.

The guard now checks names, not movement: before any group runs, on the side that keeps counts,
check_held() fails a row whose group TIMED does not name or whose count is neither `allocs` nor
`rt_<count>`, `rt_<count>_at_call` or `rt_<count>_at_commit` of a count the side keeps
(Gpu::work_counts lists every one whatever its value). hold() then reads a count the group did
not move as zero, on every device. A row holds the staged path's cost too: texture_256_shared
takes at most one parked image a call (rt_images_recycled_at_call <= 1).

Verified: the 5080 and a 3090 run of `host_ab --side runtime --only percall` (evidence in the
report to the orchestrator); every HELD count name resolves against the runtime side's
work_counts list (47 rows).
2026-11-11 00:43:30 -08:00
..