crates/metal2vulkan/build.rs only set M2V_SOURCE_DIGEST (named cache::SOURCE_DIGEST in its
comment), and no code reads it: no env!/option_env! of it in the tree, and the consumer's
checkout has 0 hits for M2V_SOURCE_DIGEST and SOURCE_DIGEST (consumer-uses.sh: development
12b87d3d6b and 64 refs). The script, its copy of build_support.rs, the sha2 build-dependency
and validation's test that held the two copies equal (the_build_support_copy_is_the_translators)
go; the manifest says build = false, as the AIR front end's does, so no build script appears
unannounced.
Validation's build_support.rs is now the only copy. Its product fingerprint hashes the
translator's manifest, a build.rs only where one lies beside it (none now), and the module tree;
the definition's tag names the change, so no fingerprint under the old definition equals one
under this. The synthetic-product tests drop the copied file from their tree. The manifests'
comments name validation's fingerprint in place of the translator's.
The cutover's last mechanical step. The old runtime is deleted, so its name is free: the crate
moves to crates/metal2vulkan-runtime, its package is metal2vulkan-runtime and its library
metal2vulkan_runtime, and every reference in the tree follows (sources, tests, scripts, CI,
generated tables and docs).
It is now a published crate, as AGENTS.md said it would be once it took the name: version 0.2.0
with the other two, the translator pinned exactly (=0.2.0, as the translator pins the AIR front
end), documentation, keywords and categories, and copies of the repository's four license files,
which the published-crates test now holds equal to the root's for three crates. CI packages it
with the others. Prose that said it was unpublished, or counted two published crates, says three.
AGENTS.md: facts only. The crate table row, the published-crates and version sentences, and the
paragraph on the old runtime, whose name the runtime now carries (listed for the owner).
Made by one script run on this tip. Verified by the job
named in the landing note.
The cutover deletes the old runtime: crates/metal2vulkan-runtime and its workspace member go.
Nothing in the workspace depends on it any more: the harness and conformance lost their old arms,
and validation dropped its dependency in its own commit.
Adapted in this commit, so no gate reads the deleted tree:
- CI and scripts/linux-gate-ci: the crate's per-feature clippy group, its `-p` in the Windows
clippy and the test step, and its private-doc-links row go. Packaging needs no edit: the
workspace's published crates are now metal2vulkan and metal2vulkan-air.
- The published-crates test lists those two; devtools' carried trees and the five nextest groups
of the old crate's tests go.
- scripts/api-signatures: the crate leaves CRATES, FLOORS and the header, its self-test trees name
rt (read by the same rules), and the table is re-blessed (the old crate's 4555 rows go);
api_signatures.rs pins the three crates left.
- scripts/refusal-surface: the old crate's tree and its sections go (RuntimeGap, AppleOnly,
Problem and the problem enums it forwards to), with their 87 reach rows, the `--delegations`
verb and the test that counted the old Problem's delegations; docs/REFUSALS.md is regenerated.
The basis check now holds rt's refusal enums alone, which it already required.
- scripts/api-cost-coverage goes: it measured only the old crate's surface.
- feature_vocabulary.rs: the old crate's two enable tables go; the Khronos and validation tables
stay held to the vocabulary.
- The conformance coverage generator's by-hand roots read rt instead of the old crate, and
docs/CONFORMANCE-COVERAGE.md is regenerated (MTLResourceOptions' row, which only the old crate
modelled, gives way to rt's MTLCommandBufferError).
- scripts/matrix: the harness times the new runtime alone (`--runtime new`), so the rules that
judged it against the old one go: the new-over-old budget with its floors (floors.tsv,
gpu-floors.tsv), ceilings, card variance and status table (status.tsv), the frozen arm, the
base spread and the timing once more it set off, the re-timed pairs, the five creation rounds
and the old runtime's parked tests and records. A harness row's time is judged as a cross-GPU
outlier, with its alone runs as before, and the frame and burst rows by their stored
instruction counts; the creation rows run once, in their own process. docs/VALIDATION.md's
matrix section says these rules.
Checked locally (python, no build): signatures.py --check and --selftest, refusal_surface.py
--check, --selftest and --missing-basis, coverage.py --check and --selftest, and scripts/matrix's
49 tests pass. The compile gate (fmt, clippy plain, --cfg m2v_gpu and --cfg m2v_cpu_icd, Windows
clippy for gnullvm and msvc, workspace Rustdoc, packaging, the touched crates' suites on the host
and on lavapipe) runs on this sha as potluck jobs that the landing note names.
The planner's condition on the display sidecar: every play states which
display library it ran. The report's display library line now gives the
sidecar's length, its SHA-256, and its git blob id (the SHA-1 of
"blob LENGTH\0" and the bytes). The blob id names the file in the host's tree:
every stream so far holds blob b1aea1f0, 47,426 bytes. The doc also says the
sidecar holds the host's display shaders alone, and that a player makes only
the device's library from source of no arguments from it.
The validation crate takes sha1 0.11 (RustCrypto, MIT OR Apache-2.0; the same
digest family as sha2 0.11) for the blob id.
Test: the integration test expects the 5-byte sidecar's SHA-256 and the blob
id `git hash-object` gives for the same bytes (8d7ffd7e). Verified by the lane
check named in the hand-over.
What: a new, unpublished workspace crate, crates/metal2vulkan-rt, that will replace
metal2vulkan-runtime and take its name at the cutover. It has no public API yet. Its first test,
tests::one_path, reads the crate's product sources (line comments removed) and fails on:
- a vendor, device or driver identity name (vendor_id, deviceID, DriverId, driver_name ...);
- a GPU vendor's ID as a hex literal (0x1002, 0x10de, 0x8086 ...);
- an environment read (env::var, option_env!);
- a struct or enum named as a policy.
Two more tests prove the scan finds each form and passes prose and unrelated numbers.
AGENTS.md takes the owner's new rules, in priority order:
1. correct for documented Metal, with the device's arithmetic and static notes per operation;
2. one path for every device;
3. native-like speed;
4. small.
It also takes:
- the workaround ladder, the never-list and the thresholds;
- the matrix rules: every check fans out one leg per GPU at once, and the replay matrix runs on
development after each merge with deterministic metrics and leak gauges;
- the freeze: the old runtime, DevicePolicy switches, driver-fact tables, device checks and
docs/FAST-PATHS.md get regression fixes only until the cutover deletes them, and nothing new
of those kinds is added;
- the scope rule: below the floor is a typed refusal, and a Metal feature no replay stream uses is
a typed refusal until a stream needs it.
The crate table, the doc table, CI's crate lists and the gate commands in AGENTS.md,
CONTRIBUTING.md and docs/VALIDATION.md name the new crate.
Why: the owner's plan replaces the runtime with one that has no per-device code paths. These are
the rules every lane of that work follows from its first commit.
Verified: cargo fmt. Build, clippy and the crate's tests run on development after this lands.
The runtime's host facilities (pages, clocks, threads, exit handlers) are
libc's on unix. Windows has none of libc's there, so libc becomes a
cfg(unix) dependency and the Windows forms come from windows-sys (MIT OR
Apache-2.0, a GPL-2.0-compatible option), a workspace dependency with the
features the runtime's Windows forms call.
Verified: dependency resolution in the Windows check job that follows.
The owner asked for a nightly toolchain, -Zthreads, kache 2.0 with its incremental cache, and
Rust's incremental compilation on.
- rust-toolchain.toml pins nightly-2026-11-03 (rustc 1.101.0-nightly 1c3a65069), dated so every
machine runs one rustc, clippy and rustfmt. The published crates keep rust-version 1.98, which
this build no longer checks by itself (clippy's incompatible_msrv still flags newer std items).
- .cargo/config.toml passes -Zthreads=0 (a thread per core) through Cargo's profile rustflags,
which add to RUSTFLAGS instead of being replaced by it, so `--cfg m2v_gpu` lanes and CI's
-Dwarnings keep it.
- scripts/rustc-wrapper hands each compile to kache where kache is on PATH outside CI, and to
rustc otherwise; `RUSTC_WRAPPER=` (empty) builds without it.
- CARGO_INCREMENTAL=0 is gone from scripts/device-lane, AGENTS.md and CONTRIBUTING.md.
- CI installs the toolchain the file names; both Dockerfiles take the same nightly.
What the nightly asked of the code:
- Its standard library containers take more trait-solver levels (Box -> BoxRaw, RawVec ->
PhantomData), so proving a RenderCommandEncoder `Send` from a program's crate ran past the
default recursion limit (tests/consumer_auto_traits.rs failed, a future-incompat lint that will
become an error). The encoder now holds its own lowering in `OwnLowering`, whose `Send` impl is
written out over a compile-time proof that `RenderLowering` is `Send`, as `LoweringSlot` already
was. The runtime crate's own proofs need recursion_limit 256.
- New clippy lints: needless_range_loop, single_element_loop, new_instead_of_clear (a false
positive on a moved-from Vec: the part's segments are now taken explicitly),
needless_borrows_for_generic_args, redundant_closure, unnecessary_lazy_evaluations,
manual_range_patterns; AtomicU64::fetch_update is deprecated for try_update (present in 1.98).
- Cargo warns that `homepage` equals `repository`: homepage removed from the manifests.
- nightly rustfmt formats ir_id! invocations one argument per line.
Verified on the M3 Max: `cargo clippy --workspace --all-targets --all-features -- -D warnings`
clean on the nightly; `cargo build -v` shows -Zthreads on every rustc invocation and
scripts/rustc-wrapper in front of each.
The steps this packet landed as, in order:
- Prove the conformance loop with two seed cases, recorded on this M3 Max
- Own the committed-AIR shader path, and three more exhaustive byte cases
- Compare a case's words in named columns, and keep the suite's two venues green
- Bump the runtime version and pin the runtime sources after the binding fix
Content: the tree of `development` at 4b4ecc5628, unchanged.
The steps this packet landed as, in order:
- Read no data back from a making the driver found in its record, which MoltenVK rewrote each time
- Hash with sha2 0.11, which runs SHA-256 on ARMv8's SHA2 instructions
Content: the tree of `development` at 457e874745, unchanged.
Comments, fixture notes and docs lose their design-record numbers, work-package codes and evidence
codes; lines that earlier commits of this series added carry their cleaned text there, so this
commit holds the cleanup of lines that predate the series, the retired vk12-bare profile's corpus
rows (a rationale and two observation rows), and docs/FAST-PATHS.md's measurements stated as they
stand. Thirteen hash-keyed files keep their citations, because their bytes are case or record
identities: eight case-keyed .ll fixtures and five parity sources.
Verified: the CPU suites (4997 of 4997 and 1328 of 1328), clippy, rustdoc and doctests.
Folds in:
- Drop evidence codes, design-record numbers and work-package codes from comments and fixture notes
- Drop the retired vk12-bare profile from the corpus
- Say the fast-path ledger's measurements as they stand, without commits, rounds or host incidents
- Keep the case-keyed .ll fixtures byte for byte
- Keep the parity lanes' fingerprinted sources byte for byte
Rolls up everything since 43c46ac8 into a single commit. Its tree is
identical to the tree of private master at
b3c77f2d2b20a432be10591a2129547c10b1c24b.
- A Cargo workspace of five crates under crates/: metal2vulkan (the
translator and the metal2vulkan command), metal2vulkan-runtime (the
Metal API on Vulkan), metal2vulkan-air (the AIR front end),
metal2vulkan-validation and metal2vulkan-devtools.
- Dual license: GPL-2.0-or-later OR LGPL-3.0-or-later.
- docs/: API, architecture, fast paths, how-to, Metal coverage,
refusals, runtime porting and validation guides.
Private-Commit: b3c77f2d2b20a432be10591a2129547c10b1c24b
There was no slow flag to remove: the release profile was Cargo's default,
and that default turns incremental compilation off. With one crate this
large, that makes every rebuild a full rebuild.
Measured on an idle machine:
one-line source edit, rebuild 24.97s -> 1.67s
cold build 24.02s -> 23.37s
300 corpus modules x4 translated 46.6s -> 46.2s
So the edit-rebuild loop gets ~15x shorter, and neither the cold build nor
translation throughput moves. The throughput figure is repeatable to within
0.5s run to run, so the per-translation budget in AGENTS.md is untouched.
Profiles only apply from the workspace root, so this changes how the repo
builds itself and nothing about how a consumer builds the published crate.
Overhaul the validation workflow around sharded authored cases, dependency-exact observations, incremental indexed corpus audits, bounded parallel translation, and native Metal/Vulkan comparison.\n\nExpand native AIR lowering, reflection, linked-function specialization, resource and stage-interface support, and structural CFG/pointer repair across the harvested macOS 26 corpus. Add exact intrinsic inventory, distributed 16x16x16 matrix lowering, explicit opaque tensor linkage, and regression coverage for the newly supported feature classes.\n\nThe final corpus verification accounts for all 88,819 indexed AIR modules under the current product fingerprint: 65,355 translate and validate directly, 23,464 require exact authored linkage, and zero fail or remain unresolved.