Files
metal2vulkan/docs
Anees Iqbal 16f750a424 replay: the old runtime's player makes every recorded range at its recorded address
The player's old backend made each object where the runtime had room and relocated every
8-byte word that lay in a live recorded range. A data word whose value happened to lie in one
(two 32-bit indices in a pixel-sized index array) was rewritten into an address of the play,
and a later kernel read through it out of bounds.

Now the old backend makes every object that answered a gpuAddress at that address
(AddressPlacement::At): device buffers of every making form, blocks and heaps, the
descriptor's pinnedGpuAddress aside, so heaps take their answer too. Every other object, and
the player's own staging, readback and host buffers, go Outside ([2^47, 2^48), past every span
a pin can take). A refused pin, or an object made at another address than it recorded, stops
the play with PlayError::Unpinned naming the object; no other placement is tried. The address
map still runs, with each range's base its recorded address, so it moves no word, every
address argument plays as recorded, and relocated_words and the other stream-fixed counts stay
equal across runtimes. The report adds "pinned N of N".

The new runtime's backend is unchanged (Backend::places_at_recorded defaults to false).

Tests (device, old runtime): the pointer-chain test now also asserts its four objects pinned;
a data word in a live range plays as written; a pin inside another's span stops typed.
docs/REPLAY-STREAM.md sections 5 and 10 describe the form and the report line.

Verification: the replay checks (clippy in both cfgs, the replay unit tests, the replay
device tests on lavapipe, rustdoc) run as a potluck job on this commit.
2026-11-18 21:52:44 -08:00
..