Files
metal2vulkan/crates
Anees Iqbal 3aec33fe24 translator tests: the old render key's pin over a committed AIR fixture, the same on every host
the_old_render_descriptor_key_keeps_its_value pinned the old runtime's key of a descriptor whose
stages came from stage_io.ll, which the host's llvm-as assembles. The key hashes the AIR bytes
(Library::from_air's content hash), and llvm-as writes other bytes of the same .ll in each LLVM
release: 23.1.5 (gem10, um870, um790), 23.1.4 (ms01) and 23.1.1 (msi) gave three bitcode digests
of stage_io.ll (30091f56, b2f50f5e, 66a891b8; jobs m3-max-46350 to 46354). The golden table
already keys its rows on the fixtures' source text for this reason. So the pinned value
was the value of the host that pinned it: under SEMANTICS_VERSION 2172 msi gives de648091 (the
pin of 328da5cc5e, which passes there at 328da5cc5e, job m3-max-46369) and um790 gave a5ca094a
(m3-max-46272); under 2173 um790 gives 5d351787 (the pin of 243145d7b1, job m3-max-46407) and msi
gave dcc45dbd (m3-max-46286). No input of the key moved between 328da5cc5e and 3cbf244329, and no
old-path output did, hash-level: the golden table (a hash per module) is unchanged between them
and passes at 328da5cc5e (m3-max-46369).

The descriptor's stages now come from the committed fbl_fetch_dual.air (fbd_vertex,
fbd_dual_float), whose bytes are the same on every host, and the test pins those bytes' digest
too, so a regenerated fixture fails with its own message instead of as a key change.

Verified:
- m3-max-46419 at this tree on b0175c0234 (um790, llvm-as 23.1.5): clippy of the translator, all
  targets and features, warnings denied; the test and golden_hashes_match_the_table pass.
- That build's test archive, run with no build on msi (23.1.1, m3-max-46440), ms01 (23.1.4,
  m3-max-46441) and um870 (23.1.5, m3-max-46442): both tests pass on each, so the pinned key is
  the same under the three llvm-as releases.
- Between b0175c0234 and this commit's parent, development changed no translator source, profile
  or engine fixture (the harness workloads fixture and the signature table only).

Other pinned values computed from a tool's output at test time: none found. The golden table keys
on source text and hashes the translator's output; the forwarding test's spirv-as comparison
assembles at a fixed target environment with preserved ids and ignores the generator word; the
other 16-digit and longer literals in the tests are digests of Metal's recorded answers or of
data, not of assembled bytes.
2026-11-18 06:35:58 -08:00
..