Files
metal2vulkan/docs
Anees Iqbal 6be762136b Memory: with unified memory the heaps keep one budget of empty blocks
With the UMA placement, a Radeon 780M's Private placements take its
5.53 GiB system heap, whose eighth (707 MiB) kept all but 3 of a video
clip's 16 blocks: each later clip made 4 again (tests::clip_bursts,
m3-max-9454: [4, 4]) and took 237/245 ms to make against 132/126 ms with
the placements device-local (m3-max-9448). With unified memory every heap
is the same memory: the budget is now an eighth of all the heaps, at most
KEPT_EMPTY_BYTES, and the empty blocks of every heap count against it, so
the 780M keeps 2 GiB as one budget where it kept 707 MiB and 1414 MiB
apart (2.1 GiB in all). Devices without unified memory keep a budget per
heap as before.

Tests: tests::memory::unified_memory_keeps_one_budget_for_its_heaps (the
780M's heaps, a discrete card's, one heap). FAST-PATHS: the kept-memory
row's 780M figures, and the UMA row's clip-burst cost.

Verified: not yet run; lavapipe and the 780M follow as potluck jobs.
(cherry picked from commit 9bc836c2e9cac4b43b86380e4c53ee3a02133214)
2026-11-08 13:02:13 -08:00
..