Files
metal2vulkan/docs
Anees Iqbal dc859fee56 Residency: host_imports_resident counts releasable imports alone; host_imports_held_for_good the rest
What: an import a read other than a blit's keeps for good (Residency::held_for_good) leaves the
host_imports_resident gauge and joins a new gauge, host_imports_held_for_good, as it already left
the device's count against its most (Shared::resident). Every move of an import's memory (a
release, an import again, let_go, the drop) now goes through one place, Residency::holds_memory,
which counts it as releasable or as kept for good, by the flag under the state lock, as the most
was counted. WorkCounts docs, host_residency.rs's Counted list and HOWTO.md say so; the API table
and host_ab's list name the new field.

Why: host_imports_resident's doc said 'the imports the device may release', but it went down only
at a release, a let_go or a drop, so it also counted every import kept for good. A guest walk on the
RX 7900 XTX showed about 1,040 'resident' beside a cap of 64 releasable imports, which read as the
cap failing. The two gauges show both numbers without subtracting.

Verified: the dma-buf and pointer residency tests now check the exposure step moves the import from
one gauge to the other, and that a gone import leaves both (job ids in the report).
2026-11-12 16:15:25 -08:00
..