The steps this packet landed as, in order:
- Commit the command buffer behind the refused one while the lowering is held
- Say plainly which answer the freed-memory test reads
- Record what the compute creation prediction cannot know
- State what a lane's layer-dependent claims hold, from what the instance enabled
Content: the tree of `development` at 84b37f339b, unchanged.
The steps this packet landed as, in order:
- Name run_on_device in words where a doc link would reach a private item
Content: the tree of `development` at b23991eba0, unchanged.
The steps this packet landed as, in order:
- Guard the recorded timings against reaching a verdict or a digest
Content: the tree of `development` at f800b768e9, unchanged.
One commit of the 247 on development-fast (720ef1ce9a..9f46fdf80d), squashed at the user's request.
Translator:
- Tessellation on a device without tessellationShader: Metal's tessellator emitted as SPIR-V, a
one-workgroup scan placing each patch's triangles in Metal's order, and the post-tessellation
function as a plain vertex stage (EmulatedTessellationDraws; SEMANTICS 1739, ARTIFACT_FORMAT 419).
- [[primitive_id]] on a device without geometry or tessellation shaders, as a flat varying the
vertex function writes; indexed lists, lines and points drawn de-indexed (RuntimeGap::PrimitiveIdIndices).
- Fragment functions of more colors than the device draws at once, compiled in color groups
(PrecisionNote::ColorAttachmentGroups).
- Object functions' threadgroup memory from the render encoder; a kernel's mesh draws from an
indirect command buffer; mesh payload sizing.
- The Vulkan 1.2 floor profile (vk12-floor) and the gates it needs; Metal 27.0.1 answers as the M3 Max.
- Overflow tests in the runtime-built modules by the product's high word (NVIDIA's compiler fails
the division form), guarded crate-wide by tests::owned_divisions.
Runtime:
- Color-group passes replayed per group over twin depth/stencil; snapshot and copy-back cost cuts.
- Command buffers finish on the queue waiter that saw them; the waiter holds no device handle, so
a program's drop after its wait is the device's last.
- Every object an encoder was handed held until its command buffer completes; deallocator order
and announcements.
- Driver defects recorded and announced: ANV counts a visibility sample once per color output
(visibility-count-per-color); MoltenVK fails pending work when memory that held a device-address
buffer is freed, so freed memory waits for the work in flight (host-deallocator-delayed).
- RenderCommandEncoder::set_object_threadgroup_memory_length; Visibility::counting().
Validation: mesh tooling (object, mesh and ICB-mesh cases on both executors), the authoring
census closed, the queue storm judged in Metal's unit, load-robust exits and indirect-census
bounds, and the golden hashes, printouts, fixture inventory and authored compile census blessed.
Docs: FAST-PATHS.md trimmed to a ledger of what is true now; API.md's catalogue and accepted
differences, REFUSALS.md and METAL-COVERAGE.md current.
Verified on development-fast before the squash: the full suites on the RTX 5080, RTX 3090,
RX 7900 XTX, Radeon 780M, Iris Xe, lavapipe and the M3 (MoltenVK and the Metal oracle), lint in
every configuration, rustdoc, doc tests, packaging and public case qualification; the timing and
teardown lanes x5 on every venue; the authoring-capability census 16656/16656 with 0 unresolved,
the vk12-floor translation census at 6139 translated with the slowest row 794 ms and peak 126 MiB.
The tree is development-fast's at 9f46fdf80d.
What and why, per failure (all release, --cfg m2v_gpu):
AMD RADV, Ubuntu Mesa 26.0.8 (RX 7900 XTX, Radeon 780M):
- generated_executions faulted the GPU (amdgpu gfxhub page fault, ring
reset): RADV before 26.2 skips re-emitting a compute pipeline it thinks
is bound, so the second execution's implicit preprocess ran our kernel.
New RuntimeDriverDefect::ImplicitPreprocessAfterExecutionSet (RADV at
every identity but the measured clean 780M at 26.2.4): the runtime
preprocesses every execution of a range explicitly, then a barrier, then
runs them preprocessed. RUNTIME_VERSION 1183.
- The validation executor's generated-commands replay had the same fault;
it now preprocesses apart on the same defect (runtime's
generated_commands::preprocess_apart, now public).
- float_denormals under fast math: the test checked a / b, smoothstep and
(a / b) * c bit for bit, but without VK_KHR_shader_fma (26.0.8) the fast
reciprocal is the device's OpFDiv(1, y), within 2.5 ulp. Those words are
now checked at Metal's edges there, in full elsewhere.
NVIDIA 615.71.09 (RTX 3090, RTX 5080 Laptop):
- render_commands_and_render_states_run_as_the_executor_compiles_them: the
executor used Vulkan device addresses as Metal addresses, and NVIDIA's lie
below 2^32, where a record's address names no buffer. An addressed
allocation's guest address is now its device address read signed (RADV's
are sign-extended) plus 2^47 + 2^32, one translation for every allocation.
- the_runtime_probe_measures_the_test_device_consistently: two driver
answers Vulkan does not allow (3090: a buffer read after a linear-image
copy over the same memory in one submission reads stale bytes; both: an
explicit linear pitch the driver does not lay out is moved, not refused)
are listed with their evidence in the test; the runtime records neither.
- exits (5 tests): vkDestroyDevice takes ~55 ms alone and up to 2 s beside
other processes' GPU work on the 3090, so the exit-timing tests run alone
(.config/nextest.toml); the 1.5 s limit is unchanged.
- pipeline_records (5080): the test assumed the driver finds a pipeline only
in byte-identical records, but NVIDIA's bytes vary per compile and the two
formats share entry keys. It now copies a compute pipeline's record over
the render state's records, which no driver can hit.
- compile_worker (5080, under load): a worker faster than the 1 ms sampler
left no peak RSS. Each worker now reports its own peak (VmHWM on Linux,
ru_maxrss on macOS) and the parent takes the larger.
- tests::completion (both, under load): slow rounds were the GPU starting
late behind another process's ~200 ms busy kernel, or NVIDIA's
vkQueueSubmit returning up to 64 ms late; the completion was seen within
1 ms of the moment it could be. A command buffer is now judged from the
later of its GPU end and its submission's return where the device
calibrates timestamps (from the commit elsewhere, as before).
- first_use::new_resources_wait_for_no_gpu_work (both, under load): the
busy kernel's rate came from one wall-clock run, which collapsed under
load (3 of 28 calibrations), so the busy work lasted milliseconds. The
rate is now the fastest of every run at every size by GPU time, for all
four lanes that share it (gpu_times::read_kinds predicts the notice a GPU
time read emits, for the neutrals test).
Apple M3 Max, MoltenVK 1.4.1:
- heap_textures allows the shadowed-texture route for depth on drivers that
lay heap depth textures apart.
- The argument-buffer intersection-table test states Metal's own metadata.
- The indirect lane classifies the deferred pipeline-making failure as
compile-failed alike and keeps only the failed pipeline's error; Apple's
33-bit closed-form compiler crash is a known gap in docs/FAST-PATHS.md.
Docs: CONTRIBUTING.md and docs/VALIDATION.md say the golden tables and the
compile census are re-blessed on development.
ENGINE_EXECUTOR_ABI is vulkan-engine-v181 (the RADV replay and the Metal
addresses change what the executor submits): every recorded candidate row
and the authored compile census go stale and need re-recording
(scripts/rerecord-venue per venue, rerecord-commit, corpus-status --c3,
corpus-triage --audit authored-compile --bless).
Still open: M3 frees_in_flight, XTX bfloat clears, 780M half NaN blur and
the 5080's one 2 s rebind_bytes_no_copy did not reproduce; the wall-clock
busy calibrations of framebuffer_fetch/storage_forms.rs and queue_storms
remain.
Verified:
- um780 full suites at the AMD fixes (before the executor and NVIDIA
commits): XTX 3535/3535, 780M 3535/3535, no amdgpu kernel lines.
- Each fix's focused tests before and after on its GPUs (in the agents'
commits: e.g. generated/indirect 178/178 on XTX and 780M at 26.0.8 and
26.2.4; candidate 229/229 on 3090, 780M and Iris Xe; the worker peak 0
of 1440 under 24-way load on the 5080).
- The combined tip: fmt, clippy (with and without --cfg m2v_gpu) and
rustdoc on ms01; clippy of the validation crate on macOS; a focused run
on the 3090 was stopped at 333 of 334 passed, none failed. No full suite
ran on the combined tip.
- The completion and first_use fixes: 3090 load set 1 of 4 runs failed
before, 4 of 4 passed after (completion) and 12 runs with no first_use
failure (84 calibrations, 10.19M-11.24M loads); 5080 6 of 6 and 12 of
12. fmt and clippy (no cfg, m2v_gpu, m2v_cpu_icd) on ms01.
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.
The hard end-to-end ceiling per translation attempt is now 20 seconds,
in the corpus-triage worker guard that enforces it and in the AGENTS.md
and docs/VALIDATION.md statements of the contract. The 500-MiB memory
budget is unchanged.
Verified: corpus-triage unit tests (15) pass; fmt clean.
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.
Add structural lowering fixes for function constants, byte aggregates, texture arrays, sampling, and SIMD operations. Harden corpus oracle planning and quarantine unsafe or non-comparable rows without GPU resubmission. Reject reused SPIR-V merge ownership and fast-fallback oversized systematic CFG failures so broken AIR returns promptly instead of emitting invalid bytes after lengthy retries.
Expand structural image, buffer, control-flow, and passthrough lowering, including driver-safe relooper limits and regression coverage.\n\nExpose buffer extent, type, and refined access in reflection v4 for downstream consumers.\n\nHarden corpus oracle planning and loop safety, quarantine non-semantic rows, and refresh the affected translation and execution ledgers.\n\nVerified with cargo fmt --all, workspace clippy with warnings denied, and serial product and validation test suites.
Replace the old drift/harvest scripts and generated corpus-test path with
Rust validation binaries that use JSONL ledgers as the durable corpus and
execution record.
- Move translate banking from validation/corpus/drift-ledger.jsonl to
validation/corpus/metal2vulkan-ledger.jsonl, and seed tracked Metal and
MoltenVK execution ledgers with hash-identified rows and output_b64
payloads.
- Add corpus-harvest, corpus-mint, corpus-remint, corpus-why, corpus-triage,
and corpus-run-{metal,vulkan,moltenvk} binaries for shard harvesting,
additive/remint translate banking, single-case fallback inspection,
status triage, and backend execution.
- Rework corpus runners to infer execution plans from shard-backed AIR at run
time, merge per-run deltas into sorted ledgers, support focused reruns, and
keep Metal oracle coverage available for translate FALLBACK rows while SPIR-V
backends remain gated on translate status=ok.
- Bound control-parameter seeding and add loop-budget instrumentation,
quarantine handling, subprocess timeouts, Ctrl-C worker cleanup, slow-case
logging, panic backtraces, and MoltenVK/Homebrew Vulkan discovery for safer
offline execution.
- Consolidate validation helpers for AIR stage/entry parsing, corpus source and
shard resolution, hashing, JSONL I/O, texture shape policy, translate-ledger
rows, runner status rows, and triage summaries.
- Remove obsolete Python drift/harvest scripts, generated corpus stubs,
broken/tolerances sidecars, TOOLCHAIN.lock, and unused validation harness
modules from the repo surface.
- Update validation, corpus, A/B, architecture, contributing, and agent docs,
plus gitignore rules, to describe the shard-backed ledger workflow and its
expected generated artifacts.