Files
metal2vulkan/crates/metal2vulkan-runtime/examples/host_ab
Anees Iqbal a06c5f123c Keep a device's coverage query pools as spares instead of one made and released a pass
The Iris Xe A/B (job 7439) put the coverage queries at about 15% of the GPU time of
snapshot_crossover's private passes, with the same forms as the build before (q scratch against
ctl, and tip against ctl where they took the same form), while the area lane (one command buffer
a frame, waited for) showed 0.2-0.5% and self_reads 2%. The crossover commits four command
buffers back to back, so each pass's pool was released while the next pass ran on the GPU.

A device now keeps up to 16 pools no pass holds (render/coverage.rs SparePools): a pass that
measures a reader takes one, reset on the host, and gives it back as its command buffer
completes; a pass makes one only where none has come back. Released as the device ends.
Counted: WorkCounts::coverage_pools_made; tests::learned_coverage asserts at most two pools over
its seven passes.

(cherry picked from commit f1e328796c8218553c5834e4044a71bdebaf9be5)
2026-11-08 01:41:30 -08:00
..