Files
metal2vulkan/docs
Anees Iqbal 432bbb0a60 Replay player: a noted word in a buffer reached only as texels plays as recorded
The player moved every written word whose value lies in a buffer noted
escaped (AddressMap::move_noted), whatever the buffer it was written into.
In rec-m3-max-80463 it moved 3 RG8 mask words of no-copy buffer #1960,
which the program reads only as texels through texture #1962 over it. Each
play wrote its own host address there, so two plays read different texels
(audit lane, m3-max-81898 and m3-max-81914).

Now the move is decided by the stream's structure:
- read_ahead, which already walks the whole stream, notes each buffer's
  life, keyed by the object and its making's position (as recorded_ids
  is):
  - whether a texture is made over it (it receives
    newTextureWithDescriptor:offset:bytesPerRow:, the tiled form or the
    linear form);
  - whether any call names it as an argument, at any depth of lists and
    maps, but a copy between a buffer and a texture (copyFromBuffer:...
    toTexture:..., copyFromTexture:...toBuffer:...), whose bytes are texels.
  A buffer with a texture over it and no such naming is reached only as
  texels.
- At an object's making the play marks it live as such, or unmarks the id.
- place_words takes the write's target (none for set*Bytes data). Into a
  buffer reached only as texels, the words move_noted would move play as
  recorded and are counted as texel_only_words (AddressMap::count_noted,
  which shares move_noted's pass). The census is unchanged.
- Unchanged: a buffer with no texture over it, including one the stream
  never names (the existing noted-word test), set*Bytes data, and any
  buffer bound, encoded, used, copied buffer to buffer or added to a
  residency set.

texel_only_words is a new stream counter: in FIXED, frame and group lines,
and the report's addresses line. Docs: REPLAY-STREAM.md section 5's
noted-word paragraph and section 10's counts and addresses line. The
counter lists the replay tests spell out gain it.
2026-12-02 21:56:36 -08:00
..