Commit Graph
8150 Commits
Author SHA1 Message Date
Anees Iqbal 3cdca62567 identity domains: a loaded or converted pointer is the device address it holds, no root table
rt answers MTLArgumentBuffersTier2 and refused the tier's basic buffer member: a kernel reading
two buffers through an argument buffer's pointer members, and one reading a buffer through a
gpuAddress the CPU wrote into a constant buffer, were both "Unsupported{IdentityDomains} (an
encoder value the function reads as RootTableAddress)". A pointer loaded from memory or made
from an integer is a wide pointer, which the resident-table domain resolves by searching the
root table's resident set; the identity domains push no root table, so the gate refused it.

Under the identity domains a pointer is the device address of the byte it names, so a wide
pointer there is (0, a, 0, 0) for address a, the form of a miss of an empty table: a loaded word
or an inttoptr operand is the pointer itself, with no search, a wide buffer parameter is its
slot's address (SlotGuestBase with the bias added back), its Metal address is `at`, and its
accesses are at host + at = a, unchecked and uncounted (a stored address is used as it is; there
is no resident set to miss). Nothing pushes RootTableAddress or ExecutionStatusAddress for it.
An escaping slot root stays static there, as on Profile F, which has no root entries either: a
slot pointer converted to an integer or stored through a static destination is SlotGuestBase
plus its displacement, and the slot's run-time accesses keep their SlotBounds check.

The same gate lifts the texture behind an argument buffer's pointer member (ab_tier2's
ab_indexed) and a kernel that converts a slot pointer to an integer. A slot pointer stored
through a loaded pointer or into an open pointer cell stays refused, as on Profile F
(Unsupported{Lowering(Access)}). Every branch is under the identity domains: the default
domains' modules are unchanged. SEMANTICS_VERSION 2202: these refusals become modules.

Tests: engine_identity_pointers (ab_sum, ab_address, ab_slot_address and ab_indexed on every
committed profile Device::from_queries derives under the identity domains: no RootTableAddress,
no ExecutionStatusAddress and no descriptor, L3, and on the CPU interpreter with buffers above
4 GiB and offset addresses, the words the addresses name, the slot's Metal address and the
increment, and the slot checked against its bounds); rt's argument_tier device tests sum through
two pointer members, read through a CPU-written gpuAddress, answer a converted slot pointer as
its gpuAddress plus its offsets, and read the textures behind a pointer member, each exactly. The
two translator tests and the device test that asserted these refusals go. Run by the lane's
compile gate (fmt, clippy plain, m2v_gpu and m2v_cpu_icd, workspace Rustdoc, the translator's
and rt's suites on lavapipe); job ids in the landing note.

Docs: rt's README says the condition in one sentence (the stored word must be a buffer's
gpu_address plus an offset inside it, and a buffer not placed at the address its guest asked
for has another gpu_address) and drops the three refusal bullets; docs/API.md sections 1 and 5
and PointerDomain::Identity say what the identity domains lower now. docs/REFUSALS.md
regenerates unchanged.
2026-11-20 08:35:00 -08:00
Anees Iqbal cb643e363b Fixture ab_pointers: buffers a kernel reaches through a device address
Our own MSL, for the translator's identity-domain tests and rt's argument_tier device tests:
ab_sum adds two buffers an argument buffer's two pointer members ([[id(0)]], [[id(1)]]) reach,
ab_address reads a buffer through a gpuAddress written into a constant buffer's bytes, and
ab_slot_address stores a slot pointer converted to an integer and increments the element through
it. The companions are scripts/regen-air-fixtures' output on the M3 (job m3-max-58905, REGEN=0;
Metal 32023.922, SDK 27.2), and TOOLCHAIN records the fixture.

The fixture inventory, the golden hash table and the air_input printouts gain its rows at the next
bless on development.
2026-11-20 08:35:00 -08:00
Anees Iqbal d83fb05624 rt tests: partition-oblivious kernels over grids their workgroups do not divide
The runtime runs a kernel that does not observe its threadgroup partition in workgroups of its
own choosing, not at the guest's threadgroup size: an image-only one in square workgroups or its
tile, any other in the tiles its region carries (encoder::choose). Whether those divide the grid
depends on the dispatch's sizes. The test dispatches our own such kernels
(examples/dispatch_tiles.metal, compiled on the M3 by regen-air-fixtures, job m3-max-59072) with
dispatchThreadgroups at grids that are not multiples of 16 on both axes, one deep and deeper,
inside a texture, past it and at its own size, and checks every texel and element exact: each
thread of the grid ran once at its own position, nothing past the grid was written, and the
kernels took the square and tiled forms.

Verified: the lavapipe run named in the lane's report.
2026-11-20 08:13:48 -08:00
Anees Iqbal f1276160f6 fixtures: dispatch_tiles.metal, partition-oblivious kernels for the dispatch tiles tests (source only; its companions follow) 2026-11-20 08:13:48 -08:00
Anees Iqbal 5e43cc7b14 rt tests: the aliased encoder tests read channels through one helper, as_chunks
The device-cfg clippy (m3-max-59034, --cfg m2v_gpu and m2v_cpu_icd) refused chunks_exact with a
constant size twice. One helper reads rows_read's floats as bytes for both tests.

Verified: the gate job named in the lane's report.
2026-11-20 08:12:56 -08:00
Anees Iqbal e2a9f1fa6b rt: textures over the same bytes of a buffer in images of their own alias
Two textures over one Shared buffer, each in an image of its own (a pitch the device's linear
image does not take), are one memory in Metal: encoder 1 writes T2, encoder 2 reads the same
bytes through T3. The Shared copy rules tracked each image alone. T2's write left only T2's
image ahead of its buffer, and T3's first use leaned on the submission's leading copy, so T3 read
the buffer's bytes from before T2's write (the aliasing test's own-image form: 4078 of 4096
bytes wrong on lavapipe, with byte 0 the host's sentinel).

Now a write through one such texture makes stale every other one over bytes that meet its, and
before a command uses such a texture, each other one over bytes it holds whose image is ahead
goes back first; the texture then takes its copy in (stale, or its first use after a copy back of
its buffer). The copies are the existing counted copies, between their own barriers, by cause.
Textures over bytes that do not meet owe each other nothing, so a path with one writer and no
alias takes no copy more. OverCopy carries the texels' byte range in the buffer, which a Managed
texture's entry now takes from it instead of working it out again.

Verified: lavapipe runs of the aliasing test and the no-alias count test, before and after this
commit (jobs named in the lane's report).
2026-11-20 08:12:56 -08:00
Anees Iqbal b89f7d51d5 rt tests: textures over a buffer in images of their own with no alias take no copy more
One texture over a buffer in an image of its own, written by one encoder and read by the next,
takes two copies: the submission's leading copy in and its copy back at the end. A second
texture over bytes of the buffer the first's do not meet, read before and after the first's
write, adds only its own leading copy. The test holds those counts, and the bytes, so a fix for
textures over the same bytes adds no copy where nothing aliases. The aliasing test and this one
share their setup.

Verified: the commit's lavapipe run under --cfg m2v_cpu_icd (job named in the lane's report).
2026-11-20 08:12:56 -08:00
Anees Iqbal 15bec89775 rt test: two textures over one buffer and the buffer itself, across fenced compute encoders
The shape of a wrong image filter's command buffers: encoder 1 writes texture T2 over
buffer B, encoder 2 reads B through another texture T3 over B, and encoder 3 reads B as
a buffer, each waiting for the fence the one before it updated. The test checks B, the
read through T3 and the copy of B byte for byte, once with the textures in place over B
and once in images of their own (a pitch the device's linear image does not take).

Our own kernels: rows_write and rows_read (examples/texel_rows.metal) and copy_words
(harness/workloads.metal).
2026-11-20 08:12:56 -08:00
Anees Iqbal 1b6a802908 Conformance: the rt ledger's bicubic rows on LLVM 23.1.4 lavapipe, the coverage document regenerated
The lane's compile job m3-max-59010 ran on um870, whose lavapipe is llvmpipe (LLVM 23.1.4,
256 bits). Its conformance replay --cpu failed on six unlisted bicubic-texel-classes sites:
mixed, r8unorm, rgba16float, rgba16unorm, rgba8snorm and rgba8unorm, each /sampled. The ledger
held those sites only for LLVM 23.1.1, the venue of msi's lavapipe. The 115 other rows for the
23.1.4 venue were all held.

On 23.1.4 five of the sites give the RTX 3090's answer and rgba8unorm gives 23.1.1's. Each goes
in as a "llvmpipe (LLVM 23.1.4, 256 bits)" row after its twin, with the twin's note, which names
no device.

docs/CONFORMANCE-COVERAGE.md counts and lists the ledger's rows. It is regenerated
(scripts/conformance-coverage/coverage.py) for this commit's rows and the 164 rows of the three
before it, 7457 rows to 7627. The same job's conformance suite failed
the_conformance_coverage_document_is_what_the_sources_derive on those three commits.

Verified: m3-max-59010 listed these six gaps and no row as no longer held. Each gap's answer
equals its twin's.
2026-11-20 08:12:19 -08:00
Anees Iqbal 51080259ec Conformance: the rt ledger's RX 550 rows, the 780M's bicubic answers
The round at 8012fff5a1 ran the conformance replay on the RX 550 (RADV POLARIS12) for the first
time (m3-max-58924). It failed on six unlisted gaps, all bicubic-texel-classes sites (mixed,
r8unorm, rgba16float, rgba16unorm, rgba8snorm, rgba8unorm, each /sampled). Every one has the
same case, expectation, site and answer as the 780M's row, so each goes in as an "RX 550" row
after its twin, with the twin's note, which names no device.

Verified: the replay log listed six unlisted gaps and no row as no longer held; each of the six
answers equals its 780M row's.
2026-11-20 08:12:19 -08:00
Anees Iqbal abcb4630cb Conformance: the rt ledger's NVIDIA rows cover the RTX 2080 and RTX 5080
The round at 8012fff5a1 ran the conformance replay on the three NVIDIA cards. The 3090 held its
274 rows. The 2080 (m3-max-58918) and the 5080 (m3-max-58928) each failed on 274 unlisted gaps,
because those rows named the venue "NVIDIA GeForce RTX 3090".

- 267 of the 274 rows match on all three cards (same case, expectation, site and answer). Their
  venue is now "NVIDIA", which all three venue names contain. The notes stay as written.
- The other 7 (six bicubic-texel-classes sites and pass-bytes-srgb-decode-all-bytes
  case/output/words) match on the 3090 and the 2080 but not on the 5080. The 3090 rows stay, and
  each gains an "RTX 2080" twin.
- The 5080's 7 answers are the ones the 780M rows already hold. They go in as "RTX 5080" rows
  with those notes, which name no device.

Verified: the 2080's 274 unlisted gaps are exactly the 3090's 274 rows, and the 5080's are 267
of them plus the 7 above. The replay logs listed no row as no longer held.
2026-11-20 08:12:19 -08:00
Anees Iqbal 9fa2e5b729 Conformance: the rt ledger's RX 7900 XTX rows, the 780M's twins on the same driver
The round at 8012fff5a1 ran the conformance replay on rt on every GPU. The RX 7900 XTX's
replay (m3-max-58885) failed on 144 gaps the ledger does not list there. Each one has a row on
the 780M (RADV PHOENIX, venue "780M" or "AMD Radeon 780M") with the same case, expectation, site
and answer. None of them is on the RX 550 (RADV POLARIS12), so no venue field that covers both
RDNA3 parts can hold them without also covering the RX 550.

Each new row copies its 780M twin with the venue "RX 7900 XTX" and goes beside it. Its note is
the twin's, as it reads now, with "the 780M" replaced by "the RX 7900 XTX" wherever the twin's
note names the 780M as the device that answered.

Verified: every one of the 144 rows equals, in case, expectation, site and answer, a gap that
m3-max-58885 listed as unlisted, and the replay listed no row as no longer held.
2026-11-20 08:12:19 -08:00
Anees Iqbal 2e1ed78e94 AGENTS.md: docs/API.md's section 9 is the precision-note catalogue
Section 9 now catalogues rt's precision notes (53f3e522e9); the degrade-notice
catalogue it replaced described the deleted runtime's notices. The doc table
and the docs rule name it by what it is now. Docs only.
2026-11-20 08:10:57 -08:00
Anees Iqbal 53f3e522e9 API.md: section 9 is the catalogue of the precision notes rt carries
Section 9 was the deleted runtime's notice catalogue: its message sink, announce_each,
lowering_refuses, DegradeNotice, exactness(), degraded_objects and the METAL2VULKAN_LOG_*, DUMP,
QUEUE_TIMES, PENDING_AUDIT and ENCODER_* diagnostics, none of which rt has.

- The intro now states rt's model as its code has it. Each note is fixed per operation (module,
  pixel format, descriptor or state) and given through six accessors: ComputePipelineState and
  RenderPipelineState::precision_notes, Texture, SamplerState, DepthStencilState and
  RenderPassDescriptor::precision_note. Two constants carry notes too:
  BlitCommandEncoder::GENERATE_MIPMAPS_NOTE and RenderCommandEncoder::DEPTH_BIAS_NOTE. A note
  is never fatal, and rt prints and sends none (its non-test sources hold no eprintln, log or
  sink); the consumer reads them.
- The 87 entries whose code a PrecisionNote variant backs stay. Their text no longer names the
  deleted runtime (compressed-texel-decode, bicubic-filter-arithmetic,
  swizzled-opaque-black-border). Their trigger is rt's where the deleted runtime's stood beside
  it (device-filtered-mipmaps, shared-exponent-kept, compressed-texel-decode). They no longer
  say when a deleted runtime announced the note, and they drop the blit, fill and clear parts
  that only that runtime noted (shared-exponent-kept, device-nan-encoding,
  device-color-conversion, device-pack-conversion). Their driver-fact text is left for the
  translator-switch commit.
- The 165 entries no note backs go: 59 performance, 104 precision and 2 validity kinds of the
  deleted runtime.
- Section 8's last paragraph names metal2vulkan_rt::Error, REFUSALS.md and rt's README. The
  guide's opening line and README's row say precision notes.

tests::fast_paths reads the catalogue only for the codes of its ledger notes, all PrecisionNote
codes, which stay. Section 10 still names some deleted codes; that is a follow-up.
2026-11-20 08:01:21 -08:00
Anees Iqbal bbd9475a19 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 07:59:49 -08:00
Anees Iqbal 6dda5a4617 Conformance coverage: regenerated for the ledger's reasons and the folded justifications
docs/CONFORMANCE-COVERAGE.md quotes known-gaps-rt.tsv's reasons and names each family's
justification kinds. 8fd1a5f35f changed the reasons and 57af29bde9 folded NewRuntimeNotice and
NewRuntimeAccepted into Degradation and AcceptedDifference, so the document is regenerated
(python3 -I scripts/conformance-coverage/coverage.py). Job m3-max-58840 found it stale
(conformance_coverage and the coverage check); every other step of that job was green.
2026-11-20 07:59:12 -08:00
Anees Iqbal 7596ec76db Translator: its comments cite no deleted runtime crate or lane
The translator's comments cited the deleted runtime's files and the deleted validation lanes
(runtime_lane::*) as where a measurement or a mirror test lived, and called rt "the new runtime".
The measurements now stand as measured, and "the new runtime" says "the runtime". The crate
docs' last line names metal2vulkan-rt as the Metal-like runtime built on this API, and
scripts/api-docs no longer says the runtime uses the hidden env_vars and repro modules (nothing
outside the crate does).

Left for the translator-switch commit, which deletes what they describe: driver_facts.rs,
profile.rs, derive.rs, lockstep.rs's resident-table domains, the old render descriptor key
(compile/api.rs and its pinned test), DriverDeviation's doc in error/mod.rs, function_storage.rs,
and the Device::new notes in engine_private_render_state, engine_simd and engine_arith.

Comments only, plus the crate-root doc line and one script comment.
2026-11-20 07:59:12 -08:00
Anees Iqbal 2e7e1cf73e Validation, harness and fixtures: their comments name no deleted runtime or lane
The replay player's rt backend described its choices as made "as the old runtime" made them, the
harness said "both runtimes", and the owned MSL fixtures named the deleted runtime_lane modules
they were written for. They now say what they do. heap_draws and runtime_examples name the tests
that read them now (rt's copy_over and draw tests; the harness's authored render workloads).

Comments only, plus two strings: the tiled-texture count line the replay prints, and one reason
in the runtime guard's table of non-input files. The .metal edits are comments; the fixtures'
AIR does not change.
2026-11-20 07:59:12 -08:00
Anees Iqbal 61344e6b7a Conformance: the run-kind branch for the deleted runtime goes
The suite scoped some allowances to metal2vulkan-rt's run, so that the old runtime's run, where
they held nowhere, kept its exact rows. The old runtime is deleted, so nothing can produce that
other run, and the branch was dead:

- Unjustified::OldRuntime goes, with its arms in unjustified(), faults_the_case() and Display.
- Justification::NewRuntimeNotice and NewRuntimeAccepted decided "on rt's run, as Degradation or
  AcceptedDifference does". They fold into those two plain forms: their constructors become
  Justification::notice and Justification::accepted at every case (astc_textures,
  compressed_decode, buffer_target_clears, pass_sequence_actions, event_orders, fence_orders,
  format_footprints, heap_metal_sizes, texture_descriptor_pairs, ycbcr_textures).
- Offered::new_runtime and Offered::on_new_runtime go.
- Venue::new_runtime goes. It only repeated which side ran (Metal's false, rt's true), and once
  the scoped justifications fold, nothing reads it. It was never stored: Venue is not serialized,
  and no recording holds the field, so no recording is rewritten and no format or fingerprint
  version moves.

Tests: the one that held the scope itself
(a_notice_scoped_to_the_new_runtime_leaves_the_old_runtimes_site_its_one_row) goes with it.
buffer_target_clears' DontCare test and the running-signal test keep their rt halves and drop the
old-run halves, under names that no longer say "on the new runtime alone".

The prose that described the branch changes with it, and the suite's remaining "the new runtime"
says "the runtime".

One effect is on a replay of Metal's own side, which the stability and watch tests stub. There, an
accepted difference these cases name now loosens its site, where before it held nowhere. A notice
whose site differs there is now a bad allowance, as every other notice already is on that side,
since Metal announces none.
2026-11-20 07:59:12 -08:00
Anees Iqbal c03e3300ca Conformance: the cases' and sides' prose cites no deleted crate
The suite's text cited the deleted runtime's files, tests and types as the source of Metal
measurements, and described rt's side as made "as the old runtime's side" made it. The
measurements now stand as what they are (a probe on an M4, measured on an M3 Max), and rt's side
says what it does. known-slow-calls.tsv's function-facts rows drop the deleted crate's memo and
test: whether rt's side derives a function's properties once is unmeasured.

Comments and docs only, plus one known-slow-calls.tsv comment and row text, which the ledger
parser reads by column (the row keeps its four fields). Gated with the branch removal's job.
2026-11-20 07:59:11 -08:00
Anees Iqbal 86557cc333 rt README: why the Iris Xe's no-copy pages stay the counted copy
The import gap's Iris Xe line gains its second reason (planner ruling 11-20): one dma-buf holds
only what udmabuf's stock limit of 1,024 runs allows (about 4 MiB of a guest buffer), and rt binds
several dma-bufs behind one buffer only where the device has a granule, which ANV offers none of
(the README's granule paragraph measures none on the Iris Xe).

Docs only; gated with the conformance commit's job.
2026-11-20 07:58:57 -08:00
Anees Iqbal 430fd25c60 Conformance: carried origins, probes, slugs and the rt ledger name no deleted crate
The old runtime is deleted, so the suite's text stops pointing at it:

- The carried cases' origins (compute_threadgroups, sample_fills, sample_positions,
  texture_buffer_fills, texture_fills, two_plane_copies, handler_waits) state the measurement
  itself, and the 81 recordings that store an origin carry the new strings.
- docs/API.md section 10's four entries that said "the new runtime" say "the runtime"; their
  slugs follow in the cases that name them (buffer_target_clears, pass_sequence_actions,
  event_orders, texture_query) and in the quotes of the lead-ins.
- The probes drop their runtime_lane and metal2vulkan-runtime citations; a probe whose results
  lived only in a deleted lane module names that module and the last commit that held it.
- known-gaps-rt.tsv's reasons drop the comparisons with the old runtime (226 rows) and say
  "a known gap of the runtime". The stage-in rows are as they were.

Prose that describes the suite's own run-kind branch (Unjustified::OldRuntime, the recording's
new_runtime flag) is left with that code.
2026-11-20 07:58:57 -08:00
Anees Iqbal b50bf56b3e rt and the translator's prose name no deleted crate; REFUSALS regenerated
- rt's error.rs: three Basis citations named the deleted runtime's view plan, mipmap plan and
  RenderPassProblem; each keeps its Metal evidence without them. docs/REFUSALS.md regenerated.
- rt's submit.rs: the group bounds' docs drop "the old runtime's bound".
- rt's alpha-test module doc cites its 413 probed rows without the deleted lane's test name.
- rt's Cargo.toml comment and README line 3: unpublished until it takes the name
  metal2vulkan-runtime.
- The translator: repro.rs and the cli test say a runtime writes repro bundles through
  `metal2vulkan::repro`; build.rs names a runtime's shader cache; api_surface.rs says
  `api_signatures` pins metal2vulkan-air and metal2vulkan-rt (its table is unchanged: no public
  item moved).

Verified: the compile job is named in the hand-off.
2026-11-20 07:58:57 -08:00
Anees Iqbal 4d3daeace8 Docs: the runtime is metal2vulkan-rt; HOWTO's sections on the deleted runtime give way to rt's README
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.
2026-11-20 07:58:56 -08:00
Anees Iqbal 3620f4dc6b AGENTS.md: the crate and doc tables name seven crates and no deleted runtime
The old runtime crate is deleted (5d725aeec7), so the facts change: seven
crates, two published crates sharing one version, rt described as the
runtime (unpublished until it takes the name metal2vulkan-runtime), the
harness as the runtime's, no row for the deleted crate or its README, the
gate line without -p metal2vulkan-runtime, and FAST-PATHS.md as the
translator's switches alone. The owner's rule sentences that name the old
runtime are untouched; they are listed for him.

Docs only; nothing compiles differently.
2026-11-20 07:46:41 -08:00
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