Files
metal2vulkan/crates
Anees Iqbal 760eeb6cca RUNTIME_VERSION 2178: an import several blit-read no-copy buffers lie in stays releasable
The commit before this one. A guest-RAM import that a second no-copy buffer over the same bytes lay in was held for
good, whatever the buffers' reads (read_apart_second_buffer): on reims's Valley walk on the RX 7900 XTX about 1,268 of
1,330 live dma-buf imports, each listed in every kernel submission (RADV lists every imported BO), about 0.57 ms of
each 0.835 ms vkQueueSubmit. Such an import now stays releasable while every read of each buffer in it is a blit's or
none (a holder over the whole view that nothing reads included), released once idle and imported again as the
one-buffer case is. A binding, an argument word, a resident use, a handed-out address, a heap's bytes or a rebound
buffer lying in it, a buffer bound inside its memory, or a range_of share keeps it held as before. The read-apart
gauge is split into host_imports_read_apart_inside, _shared_range, _heap and _rebound; host_imports_joined_releasable
counts the imports the new rule keeps releasable. host_residency's and WorkCounts' docs follow.

Verified (on the branch, debug test binary): 780M RADV (m3-max-23761) host_residency and host_import_counts 15/15, the
new test (a never-read holder plus a blit-read buffer: released, re-imported by a blit, released again, then a kernel
binding one and reading the other's address) included; the same binary with the old exposure fails it ("the second
buffer kept the import for good", held for good 1 against 0). Clippy all features and m2v_gpu, rustdoc (23710); api
signature tests 16, runtime suite 1502, lavapipe host import, residency and alias tests 39 (23713), one test-only
commit before the tip.
2026-11-12 18:52:43 -08:00
..