Files
metal2vulkan/docs
Anees Iqbal fd7e029718 translator: a kernel whose lockstep pairs the identity domains leave unordered records SimdgroupAccessOrder
Under the identity domains (the runtime's) the translator puts no barrier between two accesses
that different threads of one SIMD-group make to the same bytes between barriers, which an Apple
GPU orders by running the group in lockstep. The Metal Shading Language calls such a pair a data
race, and docs/API.md lists the difference as accepted. Until now that difference was silent. Two
private validation kernels through the runtime on lavapipe (129666ac, 4b74b854) mismatched for
this reason alone. The same translation with the lockstep order put back (probe 61461f3a67, not
landed) matched Metal byte for byte in both (job m3-max-60389).

- PrecisionNote::SimdgroupAccessOrder, a static note that names the Metal behaviour. It is
  recorded for every kernel in which the translator finds such a pair, on every device under the
  identity domains. The resident-table domains order each pair with barriers and record none.
- lower/simd/lockstep.rs: OrderKey::of gives every profile a key. Under the identity domains the
  key orders nothing (unordered): order() runs the pair search alone, stops at the first space
  with a pair, inserts no barrier and sets Lockstep::unordered. select records the note from it.
  ordered_entry loses its None arms. The found entry is kept under its key in StageEntries, as an
  ordered one is.
- Announced as metal2vulkan-degrade-simdgroup-access-order (the conformance Degradation kind).
  docs/API.md's catalogue entry is placed beside the accepted difference, which now names the
  note. The conformance simdgroup_lockstep cases justify their output words by that notice, so
  the runtime's side does not announce it undeclared. Validation derives no tolerance from it
  (Allowance::Unbounded).
- SEMANTICS_VERSION 2212 -> 2213 and ARTIFACT_FORMAT_VERSION 557 -> 558 (the appended codec
  variant); renumbered at landing. api_signatures.tsv regenerated (the variant twice and
  Lockstep.unordered). docs/REFUSALS.md does not move.

Tests: the identity-domains lockstep test now asserts that each row-store kernel records the note
under the identity domains and not under the resident ones. A new pair-free kernel (each thread
its own word) records it under neither. A conformance stub test checks that a changed output
word, with the notice announced, reads announced.
2026-11-20 15:03:41 -08:00
..