Files
metal2vulkan/docs
Anees Iqbal 99ec109264 harness: each creation row's first is a fresh object's on a device that has made one of its kind
A creation row's first sample was the first of its kind in a fresh process, so it held the
device's own first use (its first recorder, submission, upload, staging region, stamp pool)
together with the object's. A guest keeps one device for the machine's life, so what a device pays
once never reaches it. The planner ruled that every first row is judged on a new object's first use
on a warm device.

Each creation row now makes a warm-up of its kind first, made and used as the first is and kept
until the first is done, then the timed first on a fresh object:
- Shared and Private buffers: a buffer of the same length, kept, so the first takes memory the
  warm-up did not give back (a new 16 MiB Private block on rt's harness placement); the next take
  still follows the first's release.
- compute states: a state of another authored kernel (lcg_step, bound as signed_zero_products is),
  created and dispatched once, its word checked;
- render states: a state of another fragment function (sampled_fragment) with the row's vertex
  function and attachment.
The warm-up's time is its own record, `<row>/device_first`. The matrix shows it with the ratio of
its medians and never judges it (results.SHOWN_FIRST now names each shown sample with its reason).
time_states takes the first as its caller timed it; its other form had no caller left.

Tests: a host-buffer device shows the buffer row's order (the warm-up alone, the first and the
next beside it, the timed ones alone); the matrix shows a warm-up and judges the first it comes
before; the device test checks every row records its warm-up.
2026-11-18 13:06:31 -08:00
..