Files
metal2vulkan/crates
Anees Iqbal 6bf7e13e91 RUNTIME_VERSION 2146: a device whose held imports cost every submission keeps at most 64 releasable imports resident
The three commits before this one. On a device whose submission check found a per-import cost
(pointer_imports_tax_submissions: about 0.45 us a submission per held import on the 780M), at most RESIDENT_MOST = 64
releasable imports stay resident; past it the residency thread wakes at once rather than at its 500 ms tick and
releases the least recently read idle imports, paced. New counter WorkCounts::host_imports_released_over_most
(api_signatures row). HOWTO.md and HostMemory::with_dma_buf describe the cap.

Verified (on the branch): lavapipe (m3-max-22599) host_residency, pointer_residency, dma_buf_import_cycles,
host_ram_dma_buf 32/32; Radeon 780M (m3-max-22634) the same modules 31/31, with the new device test
past_the_most_resident_the_least_recently_read_import_is_released (most 2 over three buffers: exactly the least
recently read released, the others read with no re-import, the released one's next blit reads a file write after one
re-import). One release and re-import on the 780M: 37.5 us free + 153.6 us encode, ~0.19 ms. Lint green at the
pre-stack base 7f1e5d7151 (m3-max-22547); development's checks cover the tip.
2026-11-12 13:50:00 -08:00
..