Files
metal2vulkan/crates/metal2vulkan-devtools
Anees Iqbal fa5d051b64 Translator: the two-word 64-bit integer forms deleted; every profile holds 64-bit integers in u64s
What: the arithmetic family's word form of 64-bit integers is deleted: Held::Wide and every
arm on it, lower/arith/wide.rs (its word arithmetic, division, casts and lane moves) with its
tests, ArithStrategy::Wide and ArithPlan's wide and divides, the profile's wide forms
(wide_form_on, wide_demote, widen, widen_const, holds_wide), the two-word switch selector
(SelectorForm::Words), the chunked vector's two-word lanes, the ulong texel's word form
(TexelConv::U64Words loses its flag), the matrix descriptor's word form, and in the access
family the two-word address (pointer.rs's Address enum and its helpers, the handle table's
word entries and HandleIds, psb.rs's word base). The helpers the u64 paths still use move to
arith/ops.rs (low_word, zext_word) and access/psb.rs (Pair, split). Every !int64 refusal goes
with them: Feature::Int64Arithmetic, and Feature::PointerCompare, whose one producer was the
static guest plan's !int64 arm. LeafCaps::int64 is deleted, and the mesh fold no longer asks
for shaderInt64. BinOp::ISubBorrow, which only the word subtraction built, goes with its
interpreter and builder arms (the grammar's Op::ISubBorrow stays in spv.rs).

Why: Device::from_queries refuses a device without bufferDeviceAddress and shaderInt64
(IdentityDomains), and it is the only way to make a profile, so every profile has
shaderInt64 and every arm deleted here was unreachable. This commit's parent is the last that
holds the word form.

Consumer search: reims-vgpu development cadac770c2 plus its steelbrain refs younger than a
day (190 refs): 0 hits each for Int64Arithmetic, PointerCompare, LeafCaps and leaf.int64.

The profile's fingerprint changes on every device (the field leaves the profile's Debug
text), so the golden cells read "profile changed" until the table is re-blessed; no key
stays unchanged, so SEMANTICS_VERSION does not move. The module words do not move: the u64
paths emit the same instructions in the same order (the uvec2 the slot offset builds is the
same type the word form's type helper made).

Tests: chunk.rs keeps the chunked lane-move and fragment-shuffle bound tests, on 64-bit and
32-bit lanes held whole; the selector test drops the word cases; the tests that asserted or
filtered on the int64 field or Int64Arithmetic drop those lines; the dynamic move between
slots runs L3 on every profile.

docs/API.md (the object grid's needs), docs/REFUSALS.md, scripts/refusal-surface/reach.tsv
and tests/api_signatures.tsv are updated; runtime-sources.sha256 is re-pinned.

Verified: job m3-max-84770 at this commit (CPU only; the device steps on
lavapipe): clippy plain, --cfg m2v_gpu and --cfg m2v_cpu_icd EXIT=0;
rustdoc EXIT=0 and private-item docs of five crates with 0 diagnostics;
the translator's suite 2,594 of 2,595 passed, 20 skipped, the one failure
golden_hashes_match_the_table (28,950 cells under a changed profile
fingerprint, 0 changed under an unchanged key); air, runtime, devtools
and harness 872 passed, 4 skipped; validation 1,348 passed, 2 skipped;
conformance 1,053 passed; doctests passed; the conformance replay on
lavapipe EXIT=0 with 0 ledger drift lines; the refusal-surface and
signatures checks EXIT=0. The golden and engine inventory lists at the
parent and at this commit show 0 computed cells moved and no inventory
line.
2026-12-03 11:57:03 -08:00
..