Commit Graph
8125 Commits
Author SHA1 Message Date
Anees Iqbal 48bb57ee56 Validation: the allocator's per-thread and per-process allocation counts go
thread_allocations and process_allocations had one caller, the old
runtime's lane (runtime_lane's draw_work and frame_costs), which went with
the old runtime. Nothing else reads the two counters, so they go too, and
with them the two increments every allocation of a counting worker paid.

Found by searching the tree's code for every pub item of devtools, harness
and validation that nothing else names, and checking each one's callers
before the deletion.
2026-11-20 07:30:11 -08:00
Anees Iqbal e1fcd28792 Conformance: delete the cost half, the slow-call ledger and the two-leg times
With the old runtime gone nothing produced a cost row, a leg of ours or a
call to the slow-call gate: `conformance times` measures Metal's leg alone,
and the cost half read the old runtime's `WorkCounts`. So:

- cost.rs goes, with the report's cost rows and section, the stability
  check's count readings, `Recording::costs` with `with_costs` and
  `without_costs`, and every test of them.
- slow_calls.rs and known-slow-calls.tsv go. The two things the Metal leg
  still used move to where they are read: the load bracket (`LegLoad`) to
  clocks.rs, and the instrument's before-and-after reading becomes the
  mean `metal_times` hands `times::fold`.
- times.rs keeps one leg: `Leg`, `MARGIN`, the verdicts and classes, the
  paired tables, the one-call triage and the comparison half of `render`
  go, and so do `TimeRecord::leg`, `Measurement::leg` and its calibration.
  `record_times` takes Metal's measurement. `run::Shaders`, which only the
  ours leg and the gate read, goes.
- `times::render` named the Metal leg "our stack on native Metal against
  native Metal" and "ours alone"; it now heads the table with the leg's
  venue, and `--show` prints every case's own figures (it printed nothing
  extra without a second leg).
- The committed recordings drop their `costs` field (1277 files) and the
  ours time record (1319), and every time record its `leg` tag; nothing
  else in them changes (each file was checked to round-trip byte for byte
  through the rewrite before it was cut).

The tests that held a removed item go with it; the stability tests read a
moving site where they read a moving count, and the re-record carry test
holds the times half where it held the cost half.
2026-11-20 07:30:11 -08:00
Anees Iqbal 268b496894 AGENTS.md: a refusal a guest meets is a bug, ranked by how often guests meet it
The scope sentence said a Metal feature no replay stream uses is a typed
refusal until a stream needs it. The owner did not rule that and asked for
it to change: a feature no guest has used, in a replay stream or a live
session, is a typed refusal until one does, and a refusal a guest meets is a
bug, ranked by how often guests meet it.

Docs only; nothing compiles differently.
2026-11-20 07:29:03 -08:00
Anees Iqbal 22810394bf rt: a target's attachment-read usages yield where they narrow its sample counts
Where the device reads attachments, plan() gives a colour target the sampled usage for a draw
that reads it as an attachment of its own pass, and the feedback usage where the device has the
loop. Where the image format query refused the image with those usages, the image was made
without them. But the query intersects the sample counts of each usage, and the sampled usage's
are sampledImageColorSampleCounts or sampledImageIntegerSampleCounts. Vulkan requires one and
four of the first and only one of the second. So a 4-sample integer target, or an 8-sample one
on a device that samples four, came back offered but at fewer samples, and was refused with
Limit::TextureSamples, although the device renders it.

Now the usages the attachment reads add, and the shadow's, yield wherever the query does not
make the image at the texture's sample count, as they yield where it refuses the image. Such a
target is made, and a draw that reads it as an attachment is Gap::Draw, as on a device that
refuses the usages. A sample count a usage Metal asked for narrows (a shaderRead texture that
the device does not sample at its count) stays Limit::TextureSamples. The README's
attachment-read paragraph says so.

Not verified on a device that narrows: lavapipe samples four of every format these tests make,
so no test here fails without this.
2026-11-20 07:28:06 -08:00
Anees Iqbal 6019f7f75b rt: a multisampled texture takes no storage usage, on any device
The Metal Shading Language lets a shader only read a multisampled texture: 'Multisampled
textures only support the read attribute'. The translator declares a texture slot as a storage
image only where Metal's access writes it (write or read_write), so every texture2d_ms and
depth2d_ms slot is a sampled image read by OpImageFetch with a Sample operand. A multisampled
texture's storage view therefore serves no shader.

rt still gave one made for shader writes (shaderWrite, or Metal's unknown usage) a storage
view, and its image the storage usage, wherever the device stores its format. The image format
query intersects the sample counts of each usage, and the storage usage's are
storageImageSampleCounts: one sample alone without shaderStorageImageMultisample. So on ANV
(Iris) and KosmicKrisp (the Mac), a 4-sample shaderRead | shaderWrite | renderTarget texture
was refused: 'a sample count of 4 is not among the device's (0x1)'.

Now form() gives a multisampled texture no storage view, whatever its usage, on every device:
one form, from Metal's own rule. Its home is shader-read-only where shaders read it, else the
attachment layout, no longer general. unstored() never names a multisampled texture, so a
use_resource write of one makes no Gap::StorageElement. The shape check shares the new
multisampled(). The README's texture section, new_texture and use_resource say so.
2026-11-20 07:28:06 -08:00
Anees Iqbal 5728cef482 rt test: a multisampled texture made for shader writes takes no storage usage
every_device_makes_a_written_multisample_target_with_no_storage_usage makes a 4-sample
RGBA8Unorm Type2DMultisample texture with shaderRead | shaderWrite | renderTarget usage. It
asserts that its image has no storage usage, that it has no storage view, and that it lacks no
storage element. Then it draws the resolve module's white triangle into it, resolves into a
single-sample target, and checks that target's texels. The colour resolve test shares that
check.

Today rt gives such a texture the storage usage wherever the device stores its format. On a
device without shaderStorageImageMultisample (ANV on the Iris, KosmicKrisp on the Mac), the image
format query then offers one sample, and the make is refused with 'a sample count of 4 is not
among the device's (0x1)'. On a device with it (lavapipe), the image takes a storage usage no
Metal shader uses. The test fails until the next commit.
2026-11-20 07:28:06 -08:00
Anees Iqbal b16af5b0ed rt counters: four stage histograms of each command buffer's life
Metrics gains four histograms, each 23 power-of-two buckets of host-time nanoseconds: bucket 0
under 2 us, bucket i from 2^i us to under 2^(i+1) us, bucket 22 from 2^22 us (about 4.19 s) on.

- commit_to_scheduled: the host time at the commit, which the kernel start still holds, to the
  kernel end, its last segment joining a submission. Counted in CbInner::scheduled.
- scheduled_to_gpu_start: kernel end to GPU start, 0 where the GPU start is placed earlier (a
  command buffer that presents is scheduled once its vkQueueSubmit2 returns).
- gpu_run: GPU start to GPU end, the timestamps' own span.
- gpu_end_to_handler: GPU end to the host time its handlers begin on the completion thread.

The last three are counted as each command buffer retires, before its handlers run, for one that
completes with GPU times. They use the times it already reports, with no new query or GPU
timestamp. The handlers' start is one host clock read per retiring command buffer. Each count is
one Relaxed increment.

reims's per-step walk summary reads these on every consumer to see where a frame's command
buffers spend their time, with no probe build.

Tests: every_device_counts_each_command_buffer_once_in_every_stage_histogram (three command
buffers add three counts to each histogram) and a_stage_span_lands_in_its_power_of_two_bucket
(the edges). The README's Counters paragraph and api_signatures.tsv are updated.
2026-11-20 07:27:30 -08:00
Anees Iqbal ca5aa90e09 env_vars: the ten variables only the deleted runtime read go
With metal2vulkan-runtime deleted, ten accessors in crates/metal2vulkan/src/env_vars.rs have no
reader: lane_validation, log_pipelines, log_memory, log_shadows, dump_pipelines, log_passes,
pending_audit, queue_times, encoder_trail and encoder_times. A grep of the tree finds no call of
any of them and no other read of their METAL2VULKAN_* names, in metal2vulkan-rt or anywhere else.
They go with their registry rows, so `metal2vulkan --help` lists only the variables something
reads: METAL2VULKAN_REPRO_DIR and the METAL2VULKAN_<TOOL> family.

METAL2VULKAN_REPRO_DIR's row and accessor doc lose the deleted runtime's half (its bundles of
refused creations, and "unset is off (the runtime's)"); the binary's bundles are unchanged, and the
binary is the variable's one reader.

docs/API.md's paragraph describing the ten variables (section 9, under "How a notice reaches you")
goes; the heap-texture refusal line after it no longer begins "Whatever the variables". The rest of
section 9 still describes the deleted runtime and is the docs step's.

The env_vars module is hidden (not in tests/api_surface.rs or api_signatures.tsv);
scripts/api-signatures/signatures.py --check is 0 on this tree.

Verified: the gate of this commit (fmt, clippy x3, workspace doc, the metal2vulkan crate's tests).
2026-11-20 07:24:20 -08:00
Anees Iqbal 8012fff5a1 rt: a group is held only while the completion thread waits on the GPU
The submit thread holds a queue's groups while IN_FLIGHT of its submissions are not seen
complete. The completion thread marked submissions seen when it observed the GPU, then ran the
round's retirements, completed handlers and listeners, and observed nothing newer until they
ended. So a slow completed handler held every later command buffer's submission behind it.

Done now carries a busy flag. The completion thread sets it (SeqCst) for the whole retire round,
before it pokes the submit thread, and clears it before it waits on the GPU again. While it is
set, the submit thread sends held groups: goes and unheld take busy as seen. A group is held
only while the completion thread waits on the GPU. Handlers still run in order on the completion
thread, so a slow handler delays the later command buffers' retirement, status and handlers, in
that order, though not their submission. The README's grouping and completion paragraphs say
both. Metal's MTLCommandBuffer.h says nothing about handler order across command buffers, so
the README states only what rt does.

Verified: job m3-max-58790 (homelab-um870-1, lavapipe under the validation layer 1.4.363.0).
every_device_submits_while_a_completed_handler_runs FAILED with rt's src at the previous commit
(nextest exit 100, its wait timed out after 60 s) and PASSED at this one (exit 0). The compile
gate at this commit was all 0: fmt; clippy plain, --cfg m2v_gpu and --cfg m2v_cpu_icd; Windows
clippy and rt's Windows Rustdoc (gnullvm, msvc); workspace Rustdoc; the signatures check; rt's
suite on lavapipe (447 passed); metal2vulkan's api_signatures.

Measured with the validation layer off, on a probe branch not for landing: a 60 Hz compositor
loop with two writer command buffers a frame, each with a completed handler that sleeps 5 ms.
In one interleaved, exclusive job on the UHD 630 (m3-max-58733), writer commit to submitted
(p50 / p99 / max) was 191 / 233 / 449 and 206 / 232 / 564 us before the form (probes at
6121dd20a6), and 202 / 229 / 318 and 191 / 218 / 293 us with it (probes at 15c4075b55):
neither arm held there, and the form cost nothing. An earlier run before the form had held
(m3-max-58675: 64 / 1590 / 2259 us). On the Iris Xe: 316 / 535 / 596 us before (m3-max-58677)
and 313 / 511 / 564 us after (m3-max-58720).
2026-11-20 07:15:24 -08:00
Anees Iqbal 5ba6d094bf rt test: a later command buffer is submitted while a completed handler runs
every_device_submits_while_a_completed_handler_runs parks the first command buffer's completed
handler on a barrier, commits IN_FLIGHT + 2 more command buffers, and waits until each of them
has been submitted while the handler is still parked. Then it releases the handler and checks
the last write.

The submit thread holds a queue's groups while IN_FLIGHT of its submissions are not seen
complete. The completion thread marks submissions seen when it observes the GPU. While it runs a
round's retirements and completed handlers it observes nothing newer, so a slow handler holds
every later submission. The test fails until the next commit fixes that.

Verified: job m3-max-58790 (homelab-um870-1, lavapipe under the validation layer 1.4.363.0) ran
this test with rt's src at this commit: FAIL (nextest exit 100; the wait for the later
submissions timed out after 60 s). At the next commit: PASS.
2026-11-20 07:15:24 -08:00
Anees Iqbal 8914d7bcc8 rt: what a state's make is given is made at the make
A compute state's make lowers every variant a dispatch can need: an observing kernel's
partial-threadgroups variant, and the emulated-SIMD-group variant of a kernel whose tier runs only
whole SIMD groups, each through the cache directory (a variant the make found already lowered or
read is not read twice). No dispatch translates any more, so the reaper's lowering queue, its test
park hook, Lowered::Quiesced and the first-use lowering site go. Where the descriptor sets
requiredThreadsPerThreadgroup, an observing kernel's make also makes the pipelines a whole and a
ragged grid run at that size, where the kernel takes no threadgroup memory length from the
encoder. A render state whose descriptor names the line class (inputPrimitiveTopology) makes its
line pipeline at the make, beside the triangle one.

Why: reims's cold walk on the 3090 held one command buffer 1,189 ms in a scene entry, with 13
pipeline makes and 7 translations at first use. The translations hang on nothing a dispatch
gives; the ruling (direction b) is that rt compiles where Metal compiles, at the state's make. A
kernel's pipeline at a threadgroup size only a dispatch gives stays at prepare_dispatch or the
dispatch, and the line class of a descriptor that names no class at its first draw of lines.

Breaking, in rt's public API (published at the cutover): Metrics loses first_use_lowering_waits,
first_use_lowering_wait_nanos, first_use_lowering_wait_max_nanos, made_ahead_lowerings and
made_ahead_lowering_nanos, which nothing counts any more; prepare_dispatch no longer lowers.
api_signatures.tsv is blessed for those five removed lines, and the replay player's metric list
drops them.

Cost: a state's make lowers up to three functions where it lowered one or two, whether or not a
dispatch needs the variants; a line-class state makes two pipelines at its make.

README: the rule that nothing is made ahead of the dispatch that needs it becomes what the make
is given is made at the make; the compute, prepare_dispatch, known-gaps and render sections say
so. The cold first-use figure of the player's pre-pass (1,729 / 613 ms) is removed: it measured
lowerings at first use, which no longer happen there, and needs a new play.

Tests (lavapipe under --cfg m2v_cpu_icd):
- every_device_runs_an_observing_kernel_at_its_own_threadgroup_size: 2 translations at the make,
  none at any dispatch, the first ragged grid's included; 5 first-use waits where there were 6.
- every_device_keeps_a_kernel_that_reads_across_rows_after_a_barrier_at_its_own_size: each grid
  one pipeline, one wait, no translation; a state at requiredThreadsPerThreadgroup 32 x 2 makes 2
  pipelines at its make, and its whole and ragged grids make nothing and wait for nothing.
- every_device_runs_simd_groups_at_metals_width: no translation at a dispatch.
- every_device_makes_a_line_class_state_s_line_pipeline_at_its_make (new): 2 pipelines at the
  make, the first draw of lines 0 pipelines and 0 waits, its row drawn.
- the prepare_dispatch tests count no lowering; the cache-directory test reads 3 lowerings; the
  quiesce and last-drop-waits-for-the-reaper's-lowering tests go with what they tested.
Verified by this sha's compile gate (job ids in the landing note): fmt, clippy plain, --cfg
m2v_gpu and --cfg m2v_cpu_icd, workspace Rustdoc, rt's suite on lavapipe, Windows clippy.
2026-11-20 07:02:55 -08:00
Anees Iqbal c6ff002ede Devtools: the carried-tree check's floor counts validation's sources alone
The check that the carried trees read the checkout through the runner's directory first asserts
that its walk found the trees, as a floor on the number of sources read. The floor, 500, counted
the old runtime's tests too; with that crate deleted the carried trees are validation's src and
tests, 372 files, and the test failed on the floor alone ("372 sources read") on host and lavapipe
(m3-max-58615). The floor is now 300, under today's count with room for files to move.

Verified: m3-max-58615 shows the failure at the old floor; the fix's run is the gate of this commit.
2026-11-20 07:01:01 -08:00
Anees Iqbal 5d725aeec7 Delete metal2vulkan-runtime, with every test and script that read it
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.
2026-11-20 07:01:01 -08:00
Anees Iqbal 779eb522b4 Re-derive the generated documents at the landing tip
They are generated from the whole case set, and the set grew on `development`
while this branch was in flight, so the copy committed here counted a smaller
one.

Verified: regenerating at this tip leaves no change beyond the `Generated at`
stamp.
2026-11-20 06:59:54 -08:00
Anees Iqbal 75db31e904 rt counters: the over-copies split by the cause the texture's making found
A texture over a buffer that no linear image holds is the counted copy, and Metrics counted
those copies only in total (over_copies, over_copy_bytes) and over imports. The open copy bugs
(31.5 MB a frame on the Windows UHD 630, about 102 GB not over imports on the RX 550, 16.1% of a
frame on the Iris) cannot say which kind they are. Each texture now records why it is copied,
as the code decides it, and each copy counts in that cause's Metrics pair as well as in the
totals and the imported pair, which stay as they were:

- check_over, the buffer's memory: host memory's import (host_memory); a dma-buf's one import
  on a device without the foreign queue family (dma_buf); an import over several dma-bufs
  (dma_bufs); an exported block, dedicated to its buffer (dedicated; a D3D11 texture's
  import, dedicated to its image, maps here too though it holds no buffer); an exported
  surface's buffer (surface);
- check_over, then: a spilled Private block (spilled); no linear image of the format, usage
  and size (linear), or for a dma-buf's import none its external query takes (dma_buf); a
  format feature the linear tiling lacks that the usage uses (linear_features);
- the in-place image's make, in its own order: the row pitch or the subresource's start
  (pitch), a render target's advertised subresource past its rows or the buffer
  (render_reach), the place off the image's memory alignment (alignment), and its other memory
  requirements: a dedicated allocation, the memory type, its end (image_memory).

The make reports a misfit as Unmade::Unfit(cause) where it returned the TextureOverBuffer gap,
and Form::Copied carries the cause to the copy (OverCopy::cause). Counters keep one fixed array
of Relaxed atomic pairs; Metrics gains one u64 pair per cause. No Metal counterpart.

Tests: each_cause_counts_in_its_own_pair_alone (device-free: one copy of each cause moves its
pair alone); every_device_counts_each_textures_copies_under_its_cause (device: four RGBA8
textures over a buffer, each read once by a blit: a copied one moves the totals, its cause's
pair and, over an import, the imported pair by its one copy in, every other pair still; on
lavapipe the causes are pitch, alignment, render reach and host memory). lavapipe's linear
tiling has its optimal tiling's features for every color format (Mesa 26.2.4's lvp_formats.c),
so a format or usage cause is not made there.

README (Counters, Textures) and api_signatures.tsv updated.
2026-11-20 06:58:28 -08:00
Anees Iqbal 5f18266780 Validation: the tier table's robust-buffer forms go with the heap test that read them
TierProfile::robust_buffers_uncontained and its robust_buffers field had one reader, the deleted
guard test that argued no venue's verdict differed between the executor's guards and the runtime
path's heaps; with it gone, the test build's dead-code lint fails on them (job m3-max-58637).
2026-11-20 06:28:32 -08:00
Anees Iqbal b5cbdb2b4a Validation: the authored compile census compiles the mesh pipelines no candidate draws
Since the executor lost its runtime path, a run's preparation refuses an object or mesh case by
mesh_render_pipeline before it maps, so the census, which prepares through the same function,
refused the 15 committed object and mesh cases too, and the candidate's mesh mapping and compile
(engine/mesh.rs, PipelineRequest::MeshDraw, variants::compile_mesh_for_shape, Mapped::Mesh) ran
nowhere. The census now prepares through engine::prepare_compile: the run's preparation, except
that mesh_render_pipeline alone does not stop it. So each object or mesh case's mesh render
pipeline compiles on every profile-leg again, as the candidate would build it, and keeps its
compile evidence. A run still refuses such a case device-free (prepare_case, in the parent and
in the device worker).

AUTHORED_COMPILE_CENSUS_VERSION 6: the compiles a mesh case's cell is made of changed. The
census table is re-blessed on development.

Test: the_census_compiles_the_mesh_pipelines_no_candidate_draws (integration): the committed
public mesh case and object case are refused by a run's preparation with mesh_render_pipeline
alone, prepared by the census's, list one compile of the case's own pipeline, and compile on the
lavapipe profile in a real compile worker. It fails without the change (the cell is refused).
2026-11-20 06:28:32 -08:00
Anees Iqbal 142ba1c50d Validation: delete the heap placement the deleted runtime path left unreachable
The engine executor's runtime path, deleted with the old runtime, was the only candidate that
placed out-of-bounds targets in a heap of their own. With it gone, every guarded target sits in
an allocation of its own (the executor's context), so what only the heap placement used goes:

- guards::Placement (Allocation and Heap): with_escaped takes no placement;
- EscapeCause (HeapBoundMemory) and ReadCause (HeapBoundRange), with TargetRun's escape_cause
  and read_cause fields, which the executor's context never set (both skipped when None, so no
  stored row changes);
- ReadRule::HeapWords and its read check; TargetRun::read_rule is its mechanism's rule;
- the three guard tests, each about the heap placement (its escape cause, its vertex-fetch
  read cause, and why no venue's verdict differed between the guards and the heaps).

No version moves: the executor's rows and their judging are unchanged.
2026-11-20 06:28:32 -08:00
Anees Iqbal e9d5240b77 rt counters: time each vkQueueSubmit2 call and the submit thread's wait for the queue lock 2026-11-20 06:27:19 -08:00
Anees Iqbal d56faccefb rt docs: the links whose label does not resolve in import.rs keep their target; memory, render_encoder and surface lose their redundant ones
68fb4a1545 dropped the target of five import.rs links whose label names an item that module does not import (m3-max-58629). They keep it; the four redundant targets m3-max-58629 named elsewhere go. Docs only.
2026-11-20 06:22:38 -08:00
Anees Iqbal 12aaf0292e rt docs: import.rs's remaining links whose label already names their target lose the explicit target
The previous commit's list came from a truncated log; m3-max-58622 named six more in import.rs. Docs only.
2026-11-20 06:22:38 -08:00
Anees Iqbal 15bc2e5cfa rt docs: links whose label already names their target lose the explicit target; surface.rs's step macro names the test-only steps module in plain code
rt's private Rustdoc (--document-private-items, -D warnings), whose CI ceiling is 0, failed on 13 redundant explicit link targets in block.rs, export.rs and import.rs and on surface.rs's link to the steps module, which exists only in device-test builds (m3-max-58617 at d19a5d3390). Docs only; checked by the job named in the hand-off.
2026-11-20 06:22:38 -08:00
Anees Iqbal 6049bb1dfb Conformance: the ledger's site check holds the divergent rows
The one ledger is rt's, and its refused rows name where rt's run stopped: a step of the case's
program, such as `case/write-program/renderCommandEncoder` or a label setter's `set-label-0`,
which Metal's transcript need not hold. On development the site check read only the old ledger,
so rt's 102 such rows were never under it; held to it now, the test failed on the first
(m3-max-58510). A divergent row is compared against Metal's value at its site, so the check stays
on those, and every one of rt's divergent rows passes it. The refused rows are held by the replay,
which on lavapipe held exactly the ledger's rows (m3-max-58510, replay --cpu exit 0).

Checked: a local walk of the committed recordings over known-gaps-rt.tsv finds 102 rows whose
site no recording holds, all refused; the compile gate runs on this sha as potluck jobs.
2026-11-20 06:19:03 -08:00
Anees Iqbal ac90becd94 Conformance: the old runtime's side goes; rt's side is the only one, held to one ledger
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.
2026-11-20 06:19:03 -08:00
Anees Iqbal d19a5d3390 rt README: which devices take a texture over a dma-buf in place, and why the others copy
The imported-texture lines now say which of the devices run take each form, as the planner ruled:
- Imported blocks: the in-place form is taken on a device that offers a linear image for a
  dma-buf import without asking a dedicated allocation; of the devices run, lavapipe alone
  (rtimport's probes m3-max-58579, m3-max-58583, m3-max-58587, m3-max-58589).
- Known gaps of memory blocks gains a bullet for a dma-buf's one import:
  - Radeon 780M (RADV): the external image query refuses the dma-buf handle with linear tiling,
    and the DRM-modifier images it offers each ask a dedicated allocation, which
    VUID-vkBindImageMemory-image-01445 (quoted) forbids binding in the buffer's import.
  - Iris Xe (ANV) and RTX 3090 (NVIDIA): no guest dma-buf is imported, since the dma-buf rule
    takes only the fd query's first type where it is host-visible and coherent (import.rs's
    reason, NVIDIA's broken later allocations), and theirs is not; their pages take the
    host-memory import.
  - Each is a known gap, reopened only by a measured copied share above 5% of a frame on that
    card.
- The host-memory bullet names the Iris Xe's and RTX 3090's pages among those it covers, and two
  overlong lines are rewrapped.

Verified: the compile job is named in the hand-off.
2026-11-20 06:15:32 -08:00
Anees Iqbal 46b2dd93e5 Runtime-sources pin: back to the binder's digest, which validation's build script now hashes alone
c714748e14 re-pinned the digest from a replica of the build script that still walked the old runtime's sources; since a3ab27ce63 the build script hashes the listed files and the binder's sources only, which give a5d1cbcf (the value a3ab27ce63 committed). The replica now matches the build script and reproduces a5d1cbcf at this tip.
2026-11-20 06:13:42 -08:00
Anees Iqbal c714748e14 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.
2026-11-20 06:13:14 -08:00
Anees Iqbal a3ab27ce63 Validation: the tests that named the runtime path's answers expect its requirements
Job m3-max-58543 failed four tests the deleted path changed:
- the runtime guard's closure listed env_vars.rs, library/mod.rs and repro.rs as reached but
  not inputs; only the old runtime's sources reached them, so they leave the list (job
  m3-max-58562 named exactly these three);
- the census's and the triage's mesh rows now carry mesh_render_pipeline (3 rows, and the
  effect-free mesh rows carry it alone);
- the mixed-run template test now reads replayed_template_resources where the executor
  refused in prose before.

Verified: the compile gate on this commit; the landing note names its job and codes.
2026-11-20 06:11:06 -08:00
Anees Iqbal bbe17feb08 Validation: keep the fast probe case's rows, which a committed test holds the fast-trig sign-off to
fast_trig_within_apples_bound judges every committed Vulkan and MoltenVK row of the fast
math-library probe case (f6524207...) against Apple's fast-math bound, and needs at least 10 of
them (job m3-max-58543: it failed once the runtime path's rows were removed). All 12 of that
case's rows were the runtime path's (vulkan 10, moltenvk 2). Their words are the device's
arithmetic for the same translated module, which is what the test holds the sign-off to, so
they are kept, in their committed order, until the executor's own context records the case.

Verified: a scan of development's shards (df58c37402) counts 10 and 2 such rows of the case; the
shards hold them again and no other runtime-path row.
2026-11-20 06:11:05 -08:00
Anees Iqbal e7efdaf099 Validation: remove what only the executor's runtime path used
Job m3-max-58508 (clippy, all three configurations) named what nothing uses once the runtime path
is gone: candidate::device_facts::DeviceFacts (the facts the runtime path read through the
runtime device's raw handles) and, on every host but macOS with --cfg m2v_gpu, mesh_cases (whose
other user, the runtime path's mesh tests, is deleted; the Metal executor's mesh_draws tests
compile only there). DeviceFacts goes, and mesh_cases compiles under its user's cfg.

Verified: the compile gate on this commit; the landing note names its job and codes.
2026-11-20 06:11:05 -08:00
Anees Iqbal 8f3daf9be0 Validation: makes_layouts_past_support compares the product's driver id
DeviceDescription's driver_id is the product's vk::DriverId, not ash's, so the copied check
compared mismatched types (job m3-max-58487: E0308 at platform/device.rs:497). It now names
metal2vulkan::vk::DriverId::MOLTENVK, the driver the old runtime's defect table lists for
SetLayoutSupportUnderstated with no clean version.

Verified: the compile gate on this commit; the landing note names its job and codes.
2026-11-20 06:11:05 -08:00
Anees Iqbal 2d66d63b34 Validation README: the engine's candidate draws no object or mesh case
The executor's runtime path drew them and is gone (the previous commit's parent). An object or
mesh case now requires mesh_render_pipeline, which no candidate runs, so the README says that
and drops the runtime's mesh calls it named.

Verified: docs only (the README is not part of the crate's Rustdoc).
2026-11-20 06:11:05 -08:00
Anees Iqbal 8b53ba5357 Validation: remove the stored Vulkan observations the deleted runtime path made
The executor's runtime path is gone, so its rows are evidence of nothing current: every
candidate and refusal row whose environment's executor is engine-runtime-compute or
engine-runtime-render goes from corpus/observations/{vulkan,moltenvk} and
corpus/observations/refusals/{vulkan,moltenvk}. The executor's own context's rows and every
Metal row stay.

Removed: vulkan 21342 rows (285 kept), moltenvk 4408 (4814 kept), refusals vulkan 160 (28
kept), refusals moltenvk 45 (12 kept). No other member of any kept row names those executors.

Verified: a scan of every shard after the removal counts no row with either executor; the
compile gate on this commit's parent covers the code.
2026-11-20 06:11:05 -08:00
Anees Iqbal d7e8149521 Validation: the executor runs every case on its own context, without the old runtime
The old runtime goes at the cutover, so validation stops depending on it. What this removes:
the engine executor's runtime path (candidate/engine/runtime_run, candidate/runtime_case,
runtime_samples, the route between the two) and the code only it used: the runtime's bounded
command-buffer waits, the library loader (air_library) and its scratch test, the imageblock
helper test, and the runtime's degrade notices on a candidate row (observation's
runtime_degrades and announced_degradations, c3's reading of them and its test). Every case
now runs on the executor's own Vulkan context.

What only the runtime path ran becomes an unsupported requirement in the one vocabulary:
- mesh_render_pipeline: an object or mesh case. The executor-contract check raises it from the
  case's reflected stage, so classification and the checker see it. The requirement qualifies on
  Metal: the checker still admits the 15 committed object and mesh cases with no candidate
  (Metal-qualified, Vulkan side unsupported), so their Metal evidence stays.
- replayed_template_resources: a replayed pipeline template that binds more than the context
  replays. The executor raises it as it prepares the case (replay_templates), as it raises
  depth_outside_unit_range, so no committed case is deleted.

Moved into validation, as tooling: the VK_EXT_device_generated_commands entry points the device
replay records (candidate/platform/generated_commands.rs; the commands layout is always made for
explicit preprocessing, which runs right on every driver), the loader's ignored-driver reports
(candidate/platform/ignored_drivers.rs), and makes_layouts_past_support (MoltenVK's driver id).
program_instance_made and the profiles layer's runtime settings go.

The runtime guard no longer hashes the old runtime's sources (build.rs walks the binder alone),
and the product fingerprint no longer walks the old runtime's crate; their tests and the pinned
runtime-sources.sha256 follow. The unused m2v_system_alloc cfg goes with the lanes that set it.

Versions: RUNTIME_VERSION 2540, ENGINE_EXECUTOR_ABI vulkan-engine-v184, the structural-triage
analyzer v83. The census is re-closed on development after the landing.

Verified: the compile gate (fmt, clippy plain and under both device cfgs, workspace Rustdoc,
validation's suite on lavapipe) runs on this commit; the landing note names its job and codes.
2026-11-20 06:11:05 -08:00
Anees Iqbal 4f7a49c36e rt README: the dma-buf acquire's old layout, preinitialized, and why
The acquire of a texture over a dma-buf's import names preinitialized as its old layout: Vulkan's
note on an acquire into a new image over external memory says the transition's layout is the
image's true initial layout and the undefined creation layout a placeholder, and Vulkan implies no
layout for a dma-buf (Table 17 lists Direct3D 11 handles alone). Docs only.
2026-11-20 06:05:09 -08:00
Anees Iqbal 2be570428e rt: a texture over a buffer in a dma-buf's import is in place where the external image query takes it
Every texture over a buffer in an imported block was the counted copy: rt made no image in imported
memory, because an image made for an import's handle (VUID-vkBindImageMemory-memory-02989) must be
made undefined (VUID-VkImageCreateInfo-pNext-01443), and a move out of the undefined layout keeps
no bytes.

Over a dma-buf's one import (import_dma_buf), the texture is now in place, the same form as over a
Shared block of rt's own: the device's linear image, made for the dma-buf
(VkExternalMemoryImageCreateInfo), bound at the texture's place in the import's memory and memory
type. It needs three things. The external image query (vkGetPhysicalDeviceImageFormatProperties2
with VkPhysicalDeviceExternalImageFormatInfo for DMA_BUF; linear tiling, the plan's format, usage
and flags) must answer importable, compatible and not dedicated-only, at the texture's extent. The
image must pass today's layout, alignment, reach and feature checks. The device must enable
VK_EXT_queue_family_foreign. Its move home is the acquire from VK_QUEUE_FAMILY_FOREIGN_EXT,
preinitialized to general, of the image and of the buffer's range under it, in one barrier. Each
such acquire is counted in Metrics::external_acquires.

Why the acquire keeps the bytes: Vulkan's external resource sharing says "To make the contents of
the underlying memory accessible in the destination instance or API, applications must ...
Acquire exclusive ownership in the destination instance or API". Its note says the undefined
creation layout "is a placeholder", as "the layout specified as part of this transition will be
the true initial layout of the image". For linear bytes the host wrote, that layout is
preinitialized. A GENERAL-to-GENERAL acquire would define no transition and would need GENERAL as
the image's current layout (VUID-VkImageMemoryBarrier2-oldLayout-01197). The buffer's range goes
in the same barrier because an acquire of the image alone would leave undefined "the contents of
any portion of another resource which aliases memory that is bound to" it.

Host memory's import (import_host_memory) keeps the counted copy, by handle type: "Importing
memory from a host pointer shares ownership of the memory between the host and the Vulkan
implementation ... as defined in Host Access to Device Memory Objects". No release exists for an
acquire to match, and the host reaches a linear image only in a host-accessible layout, which
01443 rules out at creation. Imports over several dma-bufs (sparse buffer) and exported blocks
keep the copy too. The rt README states the gap by handle type, with the quotes, the hosts it
covers today (the Mac and Windows hosts, and Linux pages not folded into a dma-buf) and the Mac
walk's measured size.

Own::Import now records the import's handle and memory type.

Verified (potluck jobs, priority 5, agent=rtimport):
- Gate at this change (m3-max-58529, um790) and again with the README commit after it
  (m3-max-58548, um790), every step exit 0: fmt --check; clippy -D warnings plain, --cfg m2v_gpu
  and --cfg m2v_cpu_icd (workspace, all targets, all features); clippy for
  x86_64-pc-windows-gnullvm and x86_64-pc-windows-msvc (air, translator, rt, devtools); workspace
  Rustdoc -D warnings; the API signatures check; rt host nextest 140 passed; every rt test on
  lavapipe under the validation layer 1.4.363.0 (any layer message fails a test), 445 passed.
- lavapipe: both new tests (tests/import_overs.rs) take the form in place, 0 copies and 1 acquire
  each. A kernel reads the texture over the dma-buf exact, a kernel then reads the buffer under it
  by its address exact, and both read the CPU's next write exact. A render target over the
  dma-buf, cleared and drawn, leaves the draw's texels in the memfd and every other byte as the CPU
  wrote it. The layer reports nothing on the acquire (PREINITIALIZED to GENERAL from FOREIGN, image
  and buffer range in one barrier).
- Radeon 780M (RADV PHOENIX), m3-max-58547, layer on: 37 import and over tests passed. Both new
  tests take the counted copy there (2 copies, 0 acquires), exact. A probe (scratch, never landed;
  m3-max-58557) read why: RADV answers ERROR_FORMAT_NOT_SUPPORTED to the external image query for
  DMA_BUF with LINEAR tiling, for sampled, attachment and transfer usages.

The lane's own commit of this change ended its message with a placeholder for the jobs; this
commit is that change's tree with the message completed.
2026-11-20 06:05:08 -08:00
Anees Iqbal a9acc24aa0 Coverage map: rows rt and the translator answer through their own calls, per-row sizes, refusals by rt's names
The fast switch to metal2vulkan-rt marked missing every runtime row whose old counterpart rt
does not hold under the same name. rt's and the translator's Rustdoc answer more of them:
- 28 runtime rows are implemented: the 9-argument texture and buffer-to-texture copies and the
  options form with no option, `enqueue`, `commandBufferWithUnretainedReferences` (the same call
  as `commandBuffer`), every `withRange:` setter of both encoders (a loop of the single setter),
  `useResources:count:usage:` and `useHeaps:count:`, both encoders' memory barriers,
  `newBufferWithBytesNoCopy` (Device::import_host_memory and a buffer in its block),
  `MTLCreateSystemDefaultDevice` (Device::new), `MTLCopyAllDevices`
  (Instance::physical_devices), a texture's `storageMode` through its descriptor, and
  `renderPassDescriptor` (RenderPassDescriptor's Default);
- 23 translator rows are implemented: MTLLibrary and MTLFunction by the translator's Library
  and Function (from_metallib, function, functions, library_type, install_name, properties,
  function_constants_dictionary, reflection), and MTLFunctionDescriptor by FunctionDescriptor;
- maxBufferLength and a texture descriptor's resourceOptions are the consumer's;
- 53 missing rows take their own size and note: encoder calls (S for loops of existing calls and
  store action options, M for stride binds and indirect draws, L for vertex amplification),
  render pass fields, a texture buffer's descriptor and alignment, function options;
- refusals are named by rt's types: Gap::IndirectCommandBuffers, Gap::KernelInput and
  Gap::DrawInput for function tables, RenderPipelineKind::VertexAmplification and Tessellation,
  RenderPassKind::TextureType and NoAttachment, Gap::TextureBuffer;
- 629 notes no longer name the old runtime's items (RuntimeGap's variants, FeatureRow's rows,
  its compiled_reflection, function_handle, allocated_size, new_library_with_source and
  BlitOption).
coverage.py's group names follow (buffers, encoder calls, command buffer options, function
options). docs/METAL-COVERAGE.md and docs/CONFORMANCE-COVERAGE.md regenerated: implemented
593, missing 1118, out of scope 424.

Verified: every implemented row resolves by the test's own rules in its crate's sources (a
script run of them: runtime 237, translator 356, none missing); every `Type::name` a note names
is held by rt or the translator (14 checked; the same check over the table before this commit
finds 26 it does not hold). The compile job is named in the hand-off.
2026-11-20 06:02:37 -08:00
Anees Iqbal df58c37402 rt README: what the recorded streams push past the tail, and the M3 recording's refused imageblock states
The Parameters paragraph's tail-placement price gains what a states-only play of all 34
recorded streams on lavapipe measured (jobs m3-max-58471, m3-max-58477, m3-max-58478,
m3-max-58483): no recorded kernel keeps a field in its block (171 kernel stages push past 232
bytes, over 2,805,608 dispatches, with 0 fields in a block), and the room the tail takes moves
fields into a block for 41 fragment stages only (374 fields over 23,690 draws). The
wide_bindings loss is a harness row's, not a recorded guest's.

The explicit-imageblock refusal gains the M3 recording's count: 10 states refused as
Gap::KernelInput, the count of its explicit-imageblock makes, none dispatched (the same plays,
and m3-max-57983 for the count). The states are counted, not named, so the text says no more
than the count. The "(in ten states)" of the 34-stream sentence moves into that sentence.

Verified: the compile job is named in the hand-off.
2026-11-20 05:51:26 -08:00
Anees Iqbal dd31b42ede Identity domains: the two-plane in-place sample's refusal is its slot's, so the split keeps two texts
The two-plane texture's linear sample read in place (Routine::Quad) never reaches the sampler
refusals: under the identity domains its slot's PushField::YCbCrInPlace is refused first, as
"an encoder value the function reads as YCbCrInPlace(SlotRef { .. })" (job m3-max-58481 read
that text where the test asked for the Quad one). The Quad condition and its text were dead, so
they go; the test pins the shape to the text it gets. The rt README names the two bicubic texts.
2026-11-20 05:45:04 -08:00
Anees Iqbal f90a6b1d55 Identity domains: the bicubic refusal splits into three forms, each with its own text
The identity domains refused three different shapes under one text, "a bicubic filter of a
1D texture or at pixel coordinates, or a two-plane texture's linear sample read in place".
Each now has its own condition and text: a bicubic sample at pixel coordinates
(SamplerPlan::bicubic_pixel), a 1D texture's bicubic sample (Routine::Line), and a two-plane
texture's linear sample read in place (Routine::Quad). The identity bicubic test asserts the
pixel and 1D texts on bcu_address and bcu_forms; a new in-place test asserts the third.
2026-11-20 05:45:03 -08:00
Anees Iqbal 953d696ecb rt test: the push window's 24- and 30-buffer kernels push 22 addresses below their tail
0cd2ad765d places each floor push with its tail 24 bytes above its other fields. A kernel whose
bounds go to its block also pushes that block's address, so its window holds the region and 22
buffer addresses below the zero tail word, not 24: the 24-buffer kernel now rings its last 2
addresses with the zero range's address and its 24 bounds (2, 25), and the 30-buffer kernel 8
addresses with its 31 check fields (8, 31). The lavapipe leg of development's checks at
5aacf738f7 (m3-max-58439) failed on the old (0, 23) with (2, 25). The kernels' block and push
counts are unchanged: both rang one block a dispatch before. The test's name, its docs and the
rt README's push-window line now say what the placement gives.

Checked by the compile job named in the hand-off.
2026-11-20 05:43:37 -08:00
Anees Iqbal cf30ed6a80 Validation: remove the items only the deleted runtime lane used
The runtime lane's deletion left items nothing else uses, which the build denies as dead code:
the loader-word re-export for its present tests, the timeline wait of its commit-cost tests,
engine_render's run_mapped helper, the sink's every-message switch and its loader-message
re-exports, and the player's string argument reader (the old backend's).

Verified: compile job m3-max-58414 at 00c2c1bf44 named exactly these items.
2026-11-20 05:42:33 -08:00
Anees Iqbal 8871d40bdf Validation: delete the old runtime's lane, parity harness, player backend and old-only tools
The old runtime goes at the cutover, and validation's old-runtime-only parts go with it:

- runtime_lane/ (the old runtime's device tests) and the Metal predication probe that pinned
  its streams. Its one rt-based module, the replay player's rt device tests, moves to
  replay/rt_replay.rs with its three old-runtime comparisons cut (the census test on both
  runtimes goes; its rt half is its own test) and a pipeline cache directory of its own in the
  scratch root.
- parity/ (Metal programs compared with the old runtime alone) and its Metal records under
  corpus/observations/parity.
- The player's old backend (replay/old_runtime): command-replay always plays on the new runtime,
  and `--runtime` is gone.
- corpus-draw-ab and format-scout (old-runtime-only tools), scripts/making-bench (corpus-draw-ab's
  bench), and the eleven public fixtures only the deleted sources used.
- The nextest overrides of runtime_lane tests, the queue-plan test group and the few-channels
  profile; the matrix's device-test filter now names replay::rt_replay.
- VALIDATION.md, REPLAY-STREAM.md and validation's README lose the lines of what went.

The candidate executor's runtime path, and validation's dependency on metal2vulkan-runtime, go in
the next commit.
2026-11-20 05:42:33 -08:00
Anees Iqbal bdbcdd539d rt: under direct driver loading, an instance extension counts only where a given driver lists it, or the loader implements it
Instance::with_drivers gives the loader the consumer's drivers in its exclusive mode, so no driver a
manifest names is loaded. But the loader's vkEnumerateInstanceExtensionProperties still lists those
manifest drivers' extensions, and enabled() counted an extension as offered where the loader OR a
given driver listed it. On the Mac host, with KosmicKrisp loaded directly and MoltenVK's manifest
installed, a consumer asking for VK_EXT_headless_surface got it enabled because MoltenVK lists it,
and vkCreateInstance failed with VK_ERROR_EXTENSION_NOT_PRESENT: every rt test of reims's Mac leg
failed at the instance (its batch 329b, m3-max-58452).

Now, with drivers given, a consumer's extension counts only where a given driver lists it. The
optional floor extension VK_KHR_portability_enumeration, which the specification says "is
implemented in the loader", still counts on the loader's list. Without drivers nothing changes: the
loader's list is the system drivers'.

Verified: the floor test's new cases (a manifest driver's extension counted without drivers, left
out with drivers that do not list it, portability enumeration kept) beside the existing ones; the
compile job named in the landing.
2026-11-20 05:41:23 -08:00
Anees Iqbal f07c86db30 rt README: its measurements stand as rt's own facts, with no comparison against the old runtime; the tail placement's price
The old runtime is being deleted, so a figure stated against it means nothing to a reader of
rt's README. Each such passage now states rt's own numbers, or goes:
- the Iris Xe particle kernel: 31 instructions a loop and 1.26 times a native Vulkan program's
  time (502.0 against 397.0 µs); the old runtime's 24 instructions and 429.5 µs go;
- NVIDIA's host-visible memory: the import's cost (5.8 ms for 64 MiB, 5.4 ms of it the import) is
  stated as the cost of importing host pages, not as the old runtime's form;
- the submit groups: "as the old runtime's are" and "four, the old runtime's bound" go;
- long_4cb: the last command buffer's 97.2-97.5 ms stands alone;
- frame_5cb on the RTX 2080: about 2.5 submissions a run and 20-25 µs idle at each boundary stay;
  the old runtime's 2.0 submissions, the row's 8% and the replay stream's 1.5 times go;
- the job timeout: the pointer to the old runtime's known gap in docs/FAST-PATHS.md goes;
- isolation: the runtime does not isolate processes; the "measured" clause named both runtimes
  together and goes with the old one, leaving the structural statement;
- the fault: rt refuses a store through a pointer to an unmapped address and took a store 64 TiB
  past a buffer; the old runtime's six-GPU result goes;
- the UHD 630 create_state compile: medians of 6,680 to 6,853 µs, with the workgroup's, the tile
  decode's and the addresses' shares stated against the forms they stand for;
- the UHD 630 tiles: 93.6 and 79.7 µs in tiles, and the 8x8x4 descriptor form's 0.97;
- the RX 550 one-high grid: 2,380.8 µs in the first run; the 1.18 ratios and the matrix ceiling
  go; the Iris Xe's time is the same in every form measured;
- the render-target read: the table and paragraph of the old runtime's passes go;
- the UHD 630 shadow copies: the reads after a barrier and at a loading pass's first draw keep
  their times (4,836.4 and 3,849.6 µs).
Two history words go with them ("the sign-extended offset it replaced", "an earlier probe").

The push window's paragraph gains the tail placement's price, as the planner ruled it, with its
jobs (m3-max-58429, m3-max-58430, m3-max-58431).

Line 3 ("It replaces `metal2vulkan-runtime` and takes its name when it does") is left for the
cutover's doc step, which owns the crate names.

Verified: the compile job is named in the hand-off.
2026-11-20 05:36:21 -08:00
Anees Iqbal 220473aafd Coverage map: the runtime's counterparts are metal2vulkan-rt's, and the test reads rt's sources
The old runtime is being deleted, and the coverage map's 649 runtime rows named its items. Every
runtime row now names metal2vulkan-rt's counterpart or none:
- 180 rows whose counterpart rt holds under the same name keep it;
- 29 take rt's name for it: DeviceProperties fields that are Device methods, the heap placements
  that are Device::new_heap_buffer and Device::new_heap_texture, the lod-clamp and stencil
  setters, the dispatch type taken by CommandBuffer::compute_command_encoder, and a texture's
  getters through Texture::descriptor;
- 73 are out of scope as rt's README gives them to its consumer: labels, MTLHeap and its
  descriptor, MTLBinaryArchive and every descriptor's binaryArchives, a resource's options, a
  texture's parent and shareable getters, a library's and a function's device;
- 367 are missing, each with a group, a size and a note: indirect command buffers (71), function
  tables, handles and dynamic libraries (38), mesh (33) and tile (26) pipelines and their calls,
  encoder calls (59), argument encoders (24), libraries and functions as runtime objects (25),
  and smaller groups. Their sizes are the group's, to be refined.

coverage.py names metal2vulkan-rt as the runtime and gains the new groups;
metal_coverage.rs reads crates/metal2vulkan-rt/src. docs/METAL-COVERAGE.md and
docs/CONFORMANCE-COVERAGE.md regenerated from the table (implemented 542, missing 1171, out of
scope 422).

Verified: every implemented runtime row resolves in rt's sources by the test's own rules (a
script run of them over the tree: 209 of 209); the compile job is named in the hand-off.
2026-11-20 05:28:07 -08:00
Anees Iqbal e3b1cf3f0f rt README: the AMD push over-read's known gap goes, as the tail placement fixed it; the warm cache figures name their pipeline counts
0cd2ad765d places each stage's push with its tail 24 bytes above its other fields, so a load the
driver widens stays inside its upload: the known gap the previous commit wrote is no longer true.
The two warm figures of m3-max-58285 are of two recordings: the second session's 274 render
pipelines through rt's cache against past it, and the tessellation recording's 383 through the
cache alone; each now names its count.

Docs only; checked by the compile job named in the hand-off.
2026-11-20 05:21:03 -08:00
Anees Iqbal e639f89d25 rt README, API.md: the known gaps a user reads before the old runtime goes
What each line states, in the section that owns it:
- Known gaps of pipeline states: on RADV a stage's pushed values that the driver reads from its
  own upload can be read past that upload's end (a 12-word load widened to 16), which faults
  where the upload ends the driver's upload buffer and loses a Radeon 780M or RX 7900 XTX.
  Recorded as open: rt places pushed values with no regard to that widening.
- Known gaps of pipeline states: the pipeline cache's cold price per card (RTX 3090 5.8% and
  6.8% slower, Iris Xe 9.8% faster, Radeon 780M level) and its warm effect.
- Known gaps of pipeline states, the identity domains' list: in plain words, a buffer reached
  through a pointer member of an argument buffer or a stored gpuAddress, and a kernel that turns
  a buffer argument's pointer into an integer, each named; the texture behind a pointer member
  named as such.
- Known gaps of render pipeline states: each render content is one whole VkPipeline with no
  shared parts; the heaviest recorded content's cold driver time on two RTX 3090s (1,408 and
  1,335 ms), the dynamic states' share (under 1%), the warm figure, and the render records'
  warm saving on lavapipe.
- Known gaps of render pipeline states: mesh render pipelines have no call in rt and no mesh
  draw; a mesh or object function in a render descriptor's vertex place is the translator's
  refusal.
- Known gaps of queues: a texture or block not shared outside rt, released while an unsent
  upload holds it, keeps its memory until that upload is submitted, and with no later call until
  the device drops.
- Floor: Mesa's driver for Apple GPUs (KosmicKrisp, Mesa 26.3.1) meets the floor on macOS;
  MoltenVK is below it (no nullDescriptor, set 1 refused by its set-layout support query).
- docs/API.md section 5, at PushField::SlotBounds: the bounds check's measured cost (harness GPU
  rows on a 780M, an RTX 3090 and an Iris Xe; replay streams' GPU time a frame; cold pipeline
  makes on two RTX 3090s), and the rt README's check entry points to it.

Why: the old runtime is being deleted; these are the gaps of rt a user meets that the README did
not state, stated as what is true now with the jobs that measured each.

Verified: docs only; the numbers are read from the jobs each line names (the bounds check rows
recomputed from m3-max-56485, -56486, -56546 and -56641). Compile job named in the hand-off.
2026-11-20 05:20:15 -08:00
Anees Iqbal 5aacf738f7 harness: its device tests run the new runtime alone
The authored workloads' test on the old runtime goes. The described
workloads' test runs the new runtime alone: heaped and over stay
refused by name, a refusal is printed, and an answered workload's
outputs are held to the CPU references the test knows.
2026-11-20 05:18:41 -08:00
Anees Iqbal 3f19240087 harness: the old runtime's arm goes; the harness runs the new runtime alone
The cutover deletes the old runtime. The harness's old arm (old.rs, the
--runtime old choice) and its Cargo dependency on metal2vulkan-runtime
go; the harness runs rt's workloads against their CPU references, then
times them. The crate docs and usage name --runtime new alone.

scripts/matrix still names the old runtime's harness rows; the crate
deletion's commit adapts it.
2026-11-20 05:18:41 -08:00