metal2vulkan-runtime is deleted, so the user-facing docs name metal2vulkan-rt as the runtime:
- README.md: the crate table's runtime row is metal2vulkan-rt (not published yet); two published
crates; the git dependency and both README links name it; the runtime needs a Vulkan 1.3 device
with its README's floor; the sentence on the deleted runtime's repro bundles goes.
- CONTRIBUTING.md: the layout lists metal2vulkan-rt and metal2vulkan-conformance; the gate drops
`-p metal2vulkan-runtime` and gains the conformance suite's line, as AGENTS.md's gate has it;
two published crates for the signatures and the license copies; the refusal check reads the
runtime's refusal enums (the deleted runtime's `Problem` is gone).
- docs/VALIDATION.md: the gate as CONTRIBUTING's; "the new runtime" is the runtime in the matrix
rules and the command replay (the record keys and `harness --runtime new` keep their names).
- docs/HOWTO.md: the sections on the deleted runtime's shader cache, host memory (no-copy
buffers, unmapping, copied host buffers, guest RAM) and exported memory described its API
alone; each is now a pointer to rt's README (The cache directory, Imported blocks, Exported
blocks and Exported surfaces), stating only what that README states. Section 4 loses the
deleted runtime's repro bundles; section 8 loses its pipeline names, its start-up checks, its
suspend-time measurements of its own calls and its exit-handler probe, keeping the driver facts.
- docs/ARCHITECTURE.md and the CI workflow's comment name the runtime as metal2vulkan-rt.
Left for the translator's commit (part 2): FAST-PATHS.md and the DevicePolicy text in README,
CONTRIBUTING and VALIDATION's golden-table paragraph ("The old runtime's translations do not
move"), which follows the matrix's old-path rule.
Verified: the compile job is named in the hand-off.
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 cutover deletes metal2vulkan-runtime, so the conformance suite stops depending on it.
What goes: the old runtime's side (runtime_side.rs, runtime_work.rs, states.rs) and its runs in
run.rs, report.rs and the command; the cost verb, the timing-coverage verb, `times`' leg of ours,
the `--rt`, `--default-policy`, `--leg`, `--call` and `--cold-shaders` flags; the four split
binaries that drove the old runtime directly; coverage.rs; and the old side's ledger,
known-gaps.tsv. The harness half of the cutover landed separately.
What stays: rt_side is the only runtime side, and `conformance replay` runs it (CI's
`replay --cpu` now replays rt on lavapipe). Its ledger, known-gaps-rt.tsv, is the one ledger, with
the rows it held; a call rt_side does not answer yet stays Failure::unavailable on it, as before.
The cases keep every allowance: the old runtime's Degradation kinds become the suite's own codes
(degradation.rs, the same `metal2vulkan-degrade-<kind>` codes), and the old runtime's Metal value
enums the cases state become the suite's own (values.rs). The old side's descriptor helpers that
rt_side and its tests used move to rt_side/fields.rs. Recordings keep their `costs` and our times
as data; `deny_unknown_fields` still reads them.
The coverage generator reads rt_side alone, and docs/CONFORMANCE-COVERAGE.md is regenerated.
The README describes the suite as it now is.
Checked: coverage.py --check and --selftest locally. The compile gate (fmt, clippy plain,
--cfg m2v_gpu, --cfg m2v_cpu_icd and for aarch64-apple-darwin, workspace Rustdoc, the suite on the
host and on lavapipe, and the lavapipe replay) runs on this sha as potluck jobs that the landing
note names.
rt's documentation for x86_64-pc-windows-gnullvm and -msvc failed on unresolved links to
Device::import_dma_buf, which only a Unix host has: the docs of block.rs's Block, BlockInfo,
Error's NoImport, floor's OPTIONAL_EXTENSIONS, ImportHandle::DmaBuf, import_host_memory, the
over-copy metric, the imports gauge and Buffer::new_texture's texture forms linked it. Each now
names the call in plain text with its host ("on Unix", "(Unix)"), which resolves on both
hosts; no link or allow is left behind. d3d11.rs's links to import_d3d11_surface sit in a
Windows-only module, so they are documented on Windows alone.
CI gains the step: rt's Rustdoc, warnings denied, for both Windows targets, from Linux beside
the Windows clippy step.
Verified: see the job in the lane's report (cargo doc -p metal2vulkan-rt --target <both>
--all-features --no-deps with -D warnings, and the Linux doc).
The conformance command did not build for Windows: `src/clocks.rs` read the two CPU clocks with
`libc::clock_gettime` and the load average with `getloadavg`, and `src/host_pages.rs` mapped a
no-copy buffer's pages with `libc::mmap`, none of which `libc` has on Windows. So the Windows host
(a supported metal2vulkan-rt host) could not replay the suite.
On Windows the thread's and the process's CPU clocks are `GetThreadTimes` and `GetProcessTimes`
(kernel plus user, in 100 ns units), and the pages are a committed `VirtualAlloc` released with
`VirtualFree`, the forms metal2vulkan-runtime already uses. Windows keeps no load average, so
`host_load` answers `None` there, which the timing report already reads as "this host answers no
load average" and the per-call gate already judges on what the host does answer. `libc` is now a
unix-only dependency and `windows-sys` a Windows-only one, as in the runtimes.
A new unit test holds both CPU clocks to answering and moving while the thread computes, so a host
form whose call fails or reads a constant is seen. CI's Windows clippy now names the conformance
crate, so the Windows build is held from Linux.
Verified: unverified at this commit; the compile check and the Windows run follow.
The floor now also requires what the translator's shaders and the runtime's
core need of every device:
- shaderInt16, shaderInt8, storageBuffer16BitAccess (Vulkan 1.1 features,
now read and enabled through Features::vulkan11), storageBuffer8BitAccess,
scalarBlockLayout, vulkanMemoryModel and vulkanMemoryModelDeviceScope. The
translator emits 8- and 16-bit access only in storage and physical storage
buffers in practice (uniform views are u32 or uvec4, push fields are 32- or
64-bit), so the uniform and push-constant 8/16-bit features stay out; it
does use device scope.
- timestampComputeAndGraphics, and timestampValidBits of at least 36 on the
first queue family with graphics and compute, which Capabilities names
(queue_family). A device with no such family is Missing::QueueFamily.
- a host-visible, host-coherent, host-cached memory type (Shared storage)
and a device-local, host-visible, host-coherent one (the parameter ring),
each usable by a buffer of BUFFER_USAGE: every Vulkan 1.3 buffer usage plus
device addresses. Vulkan answers buffer memory types only for a created
device, so check() finds a type with each set of flags and carries the
memory properties, and memory_types(device, &capabilities) chooses the
first usable type of each with vkGetDeviceBufferMemoryRequirements.
Missing::MemoryType names the flags.
Each shortfall is named in BelowFloor, with a unit case; the README's Floor
section states every item and tests::floor holds it to the code. The device
test now also creates each device with the floor's features and extensions
and chooses its memory types on it.
CI's lavapipe step (ci.yml and scripts/linux-gate-ci) runs the rt crate's
device tests too. refusal_surface.py reads metal2vulkan-rt and writes the
floor's Missing as section 10 of docs/REFUSALS.md; signatures.py pins
metal2vulkan-rt's public surface in api_signatures.tsv.
Verified: see the lane report (compile job, device legs on every lab GPU,
lavapipe and the Windows UHD 630).
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.
x86_64-pc-windows-gnullvm (the primary Windows target) and x86_64-pc-windows-msvc, with
--all-targets --all-features and warnings denied. Clippy links nothing, so the Linux job
needs only the two targets' standard libraries. AGENTS.md's CI paragraph names the step.
Verified: the same clippy lines ran in potluck jobs on Linux (msi) for both targets.
CI's private intra-doc link step reported 148 for metal2vulkan-runtime on
macOS and 149 on Linux at 3b176b8bd4, against a ceiling of 70, so the step
was red on both runners:
- 119 links whose explicit target is the item their label already
resolves to (`redundant_explicit_links`): 73 from the `degradations!`
macro, one per precision-note kind's `PrecisionNote::<note>` link, and
46 written by hand. The target is dropped; the rendered link is the same.
- 17 links to `RenderCommandEncoder::<method>` for methods that are the
lowering's (`RenderLowering`) since the program's encoder was put in
front of it: assemble, begin_current_draws, begin_inline_split,
finish_replay, flush_inline, gathering, group_turn, inline_begin (2),
inline_split, plan_one, replaying, settle_draw, settle_draws,
snapshot_fallback, snapshot_wanted and watched. Each links
`RenderLowering::<method>`.
- render.rs: `check_tile` (a `ShapeInputs` method) linked
`Self::kept_imageblock_bytes`, and `kept_imageblock_bytes` (a
`RenderLowering` method) linked `Self::pass_sample_length`; each links
the other type's method by its type. The `plain_drawn` field linked its
sibling field `replay_plain` by its bare name; it links `Self::replay_plain`.
- scheduler: `Order::behind` is `Order::is_behind`.
- event_timeline.rs: `Signal::after` is the `after` field of the
`Signal::Kept` variant.
- pipeline/libraries.rs: `GraphicsContent` is linked by its path in the
sibling module (`super::graphics`).
- Items built for tests alone are named without a link, as the translator's
`DIRECT_ARGUMENTS_FROM_AIR` is: `Allocations::limit_to`,
`patched_slot_uses` and `state_locks`.
- exit_guard.rs: the module docs describe both exits, but `end_at_once`
and `AT_ONCE_NOTICE` are built on Linux with the GNU C library alone and
`BOUND` and `MAKING_BOUND` everywhere else, so each runner failed on the
other's; the four are named without a link.
Docs only; no behaviour changes, so no version moves. The runtime-sources
pin moves with these files; the stack re-pins it.
Verified (potluck): the counts before are from `RUSTDOCFLAGS=-Dwarnings
cargo doc -p metal2vulkan-runtime --all-features --no-deps
--document-private-items` on the M3 (macOS 27) and msi-laptop (Linux).
(cherry picked from commit b4d88f87c6d6fa4c1dfc3fa9774b2fc540c6b297)
CI's private intra-doc link step reported 3 for metal2vulkan-air at
3b176b8bd4 (macOS and Linux alike), against a ceiling of 3:
- abi/keys.rs: `Key::parse` linked `KEYS`, the spelling table its test
holds the matches against, which is built for tests alone; it is named
without a link.
- abi/core_image.rs and abi/visible.rs: two `AbiError` links carried an
explicit target the label already resolves to; the target is dropped.
Docs only; no behaviour changes, so no version moves.
Verified (potluck, M3 and msi-laptop): `RUSTDOCFLAGS=-Dwarnings cargo doc
-p metal2vulkan-air --all-features --no-deps --document-private-items`
reported 3 before; the count after this commit is in the next job's log.
(cherry picked from commit dde8a1cd07867b6fa9f71ac6c9cf8a7442f85b11)
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.
One work packet, landed as 2 commits (a206cc110f..951b13189a on archive/development-linear-2026-10-28), in order:
* Mend the private intra-doc links the round's deletions broke, and lower the runtime's ceiling
CI's private intra-doc link step holds each crate to the diagnostics
rustdoc --document-private-items still reports. At 7ec539ceb2 the
translator reported 6 against its ceiling of 0 and the runtime 75 against
73, links to items this round deleted or narrowed:
- the translator: DeviceProfile::edit (built for tests alone), the
bicubic Span (gone; the packed line caller is gone with it),
word_filters and Linear::words (gone with the device sampler), and
StageInFetch::of (in pipeline::stage_io, linked by its path);
- the runtime: an unescaped [0,1] in ycbcr_device's quoted spec text,
LARGE_SURFACE_TEXELS, Device::inform and Needs::AnyOf linked by their
paths, and DIRECT_ARGUMENTS_FROM_AIR (built for device tests alone)
named without a link.
Docs only; no behaviour changes, so no version moves.
Verified: --document-private-items with -Dwarnings reports 0 for the
translator and 70 for the runtime (the ceiling now says 70); the public
rustdoc build of both crates with -D warnings is clean.
* Re-pin the runtime sources at the landing tip
The landed packet changed a runtime-sources input, so the committed digest no
longer described the sources and `the_runtime_sources_are_the_committed_ones`
would fail. Recomputed over the same inputs and committed by land-pkt.sh.
The steps this packet landed as, in order:
- Close the two ragged lines the move comments' rewording left
Content: the tree of `development` at 0d7bc7c25f, unchanged.
The steps this packet landed as, in order:
- Say what the clipped-source move row's texels read, not more
Content: the tree of `development` at f3664abbb5, unchanged.
The steps this packet landed as, in order:
- Run the private intra-doc link step after the API reference
- Record the runtime sources' hash after the private doc-link fixes
Content: the tree of `development` at 2b630acfb4, unchanged.
The steps this packet landed as, in order:
- Adopt the fragment quad's lavapipe divergence, scoped to that venue
- Name the device's own gap where the vocabulary could not, and the notice in a notice-only difference
- Pin the sparse sample-count chain as the device's gap, with lavapipe's measurement
- Recompute the runtime-sources pin after the rebase
Content: the tree of `development` at fb88ec8599, unchanged.
The steps this packet landed as, in order:
- Record both Metal oracles for the two rate-map cases
- Say what the validated oracle holds, including when nobody asked it
- Tie the committed recordings to the cases that rest on them
- A validated stop documents a refusal; it never excuses one
- Expect the refusals we have written down, in both directions
Content: the tree of `development` at 75a2f57331, unchanged.
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.
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
Rolls up everything since 9e0e99a4 into a single commit:
- src/native, src/passes, src/reflect, src/meta: AIR intrinsic lowering,
access-chain and pointer handling, constant/composite dedup, storage
and descriptor-slot fixes, function-constant folding.
- validation/: Metal and MoltenVK oracles, triage, observation contract,
and the case runner.
- validation/corpus and fixtures: new authored cases and re-recorded
candidate observations at the shipping fingerprint.
- tests/: module-level oracles for reflection, NonWritable, gated
varyings/system values/descriptor slots, loop budget, and fallback.
Squash 147 commits (2026-08-20 through 2026-08-31) into one change on top
of the exact-kernel-grid work. Covers native lowering and pointer/layout
construction, AIR intrinsic and funnel-shift coverage, BDA address
preservation across aggregate calls, CFG structurization, function-constant
and visible-function specialization, the 30-second translation ceiling, the
authored-case corpus and linkage validation suite, and refreshed byte-exact
MoltenVK evidence.
The kernel-grid lowering in this tree supersedes the 324-line variant in
the parent commit; that file is reduced to its current 139-line form here.
Resulting tree is identical to 7174c7b. Prior history remains reachable at
tag pre-squash-backup and branch backup/pre-squash-7174c7b.
Claude-Session: https://claude.ai/code/session_01D1u4vU7Mr5QNWrnnRHC8iS
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.