The floor requires depthBiasClamp (the first commit of this change). The runtime's
each_missing_feature_is_named gains its case, as its count of cases is held to REQUIRED's. The
regeneration's RUNTIME_FLOOR and runtime-floor.json's m2v_runtime_floor block state it, in the
generator's order (the block the runtime's the_floor_profile_states_exactly_the_floor holds equal
to floor.rs; check_device_profiles: 0 findings over 17 profiles; the JSON line is written as the
regeneration writes it, without refetching its pinned sources). CONFORMANCE-COVERAGE is
regenerated for the ledger row render-state-depth-bias left (7688 rows to 7687).
The runtime-floor contexts' opened chains move with the profile; their bless is the next commit.
Verified: suite m3-max-61635 at 406f39dc90 (msi; the workspace suite and the lavapipe device
tests) failed exactly these three, each_missing_feature_is_named (52 cases against 53),
the_floor_profile_states_exactly_the_floor (depthBiasClamp) and the coverage document; the rerun
follows.
`RenderPassDescriptor::render_target_array_length` is Metal's `renderTargetArrayLength`. A pass
of length N of 2 or more is one rendering of `layerCount` N: every attachment and resolve texture
is a view of its level and N slices from its own `slice` (a 2D array view; a cube's faces are its
slices), and the rendering's load, store and resolve cover every layer, with no per-layer loop.
At 0 and 1 the pass renders the attachment's slice alone, as Metal's does.
A vertex function's `[[render_target_array_index]]` has one form: the variant that writes
`Layer`, in every pass. Each draw pushes the pass's length, max(len, 1)
(`FieldValue::RenderTargetArrayLength` for the translator's `PushField::RenderTargetArrayLength`),
and the function stores 0 for an index at or past it, so at 0 and 1 every index renders the
attachment's slice. The fragment function reads the raw index through the flat varying the
translator carries. The runtime never asks for `VariantKey::dropped_vertex_layer`; a state whose
fact is `RenderTargetArrayLength { layer_dropped: true }` is refused as a draw input. What still
uses `dropped_vertex_layer`: the old binder (`bind/graphics.rs:905`, the variant it asks for at a
shape's length), stage_io's plan (`lower/stage_io/plan.rs:1600` and `:2305`, also the
non-layered amplification), and the validation crate's engine tests
(`candidate/engine/graphics/tests.rs:907`); it stays for cutxlate to delete.
`shaderOutputLayer` joins the floor's required features: every probed device reports it
(vulkaninfo, jobs m3-max-61359 on gem10: the 780M, the RX 550 and lavapipe; 61360 on um790: the
RX 7900 XTX, the RTX 2080, the 780M and lavapipe; 61361 on um870: the 780M, the RTX 3090 and
lavapipe; 61362: KosmicKrisp, Mesa 26.3.1; 61366: the UHD 630's Windows driver, Vulkan
1.3.215). A device without it gets the floor's refusal. The runtime-floor profile and its
generator gain it.
Refused, in the README's layered-rendering gap line: an attachment or resolve texture with fewer
slices from its own than the pass's length (`Refusal::AttachmentPlace`, naming the last slice); a
3D texture's depth planes (`TextureType`, as for every 3D attachment); a length past
`maxFramebufferLayers` (`RenderPassKind::ArrayLength`, new:
VUID-VkRenderingInfo-layerCount-07817); a draw that reads one of a layered pass's attachments
through a texture on a device without the feedback loop (`AttachmentRead`: a shadow holds one
layer); and a vertex function whose index the translator cannot show the same at every vertex of
a primitive, at creation, naming `LayeredRendering` and `geometryShader`: Vulkan requires one
`Layer` per primitive (VUID-VkPipelineShaderStageCreateInfo-stage-02596), the translator's other
form is a geometry stage device creation does not enable, and Metal calls a differing index
undefined. The feedback-loop move's ranges around the rendered layers (`around`) take the
attachment's layer count.
The conformance runtime side passes the length; the case `layered-render-target-array-length`
loses its ledger row. REFUSALS, METAL-COVERAGE and CONFORMANCE-COVERAGE regenerated; the API
table gains the field and the kind.
Test: `tests::layered`, on every device of the cfg's kind: a 2D array's slices 1 to 3 with an
index past the length, a cube's six faces, a pass of length 0 and one of length 1 whose vertex
function writes index 3 (rendering the attachment's slice, the fragment reading 3), every slice
read back; and `rt6_first_vertex`'s per-vertex index refused naming `LayeredRendering`.
The runtime asks for every render variant with VariantKey::new() (render.rs) and never states
FragmentTests, so VariantKey::shader_tests, shader_stencil and window_depth_varying are false on
its path. No variant it makes tests a fragment's depth or stencil against a stand-in of the pass's
attachment. That variant, its stand-ins and their consumer contract are deleted. The consumer
names none of them on its development branch (consumer check below).
The binder: for a fragment function that stores before Vulkan's tests (TestedStorageWrites), a
draw whose depth test writes (FragmentTests::Depth { writes: true }) or whose stencil test acts
(Stencil, or Drop for a function without the early-tests variant) ran the in-shader variant. It is
now refused NotImplemented at the tested attachment, of the feature that stores first
(FramebufferFetch, or Imageblocks for an imageblock alone):
- a function with the early-tests variant: at the depth attachment for Depth, at the stencil
attachment for Stencil;
- a function without it: at the depth attachment, or the stencil one where the pass has no depth,
as Any already was.
A draw whose tests drop but write and count nothing keeps the early-tests variant, and one whose
tests drop nothing runs the pipeline as compiled, as before.
Removed:
- the inputs and keys: VariantKey and LoweringInputs::{shader_tests, shader_stencil,
window_depth_varying}, and their key bytes;
- the lowering: lower/fragment/depth_test.rs (DepthTest, StencilTest, depth_test_form,
stencil_test_form, depth_test_word, stencil_test_word, STAND_IN_FORMAT) and its calls from
fetch's and the imageblock's tests, and the stencil output stage_io stored nowhere under it;
- the window depth varying: IoRole::WindowDepth, VaryingKey::window_depth, the vertex function's
store (stage_io's WindowDepth) and the fragment's input, and its link checks;
- the facts and state: RuntimeFact::ShaderTests and ShaderStencilTest, GraphicsState::shader_tests,
ShaderTestsUse, StandInUse, StandInView, link/shader_tests.rs, and compile::api's stand-in
requirements;
- the bindings: SyntheticBinding::DepthStandIn and StencilStandIn, WriteSource::DepthStandIn and
StencilStandIn, PushField::ShaderTestsState and ShaderStencilState, the binder's push words and
ShaderTestsTemplate, and BindState::{depth_range, depth_clip_mode_clamp, stencil_references},
which only those words read;
- the copies: DepthStencilCopy::DepthFromStandIn, DepthStandInForm, DepthSplitModule and
depth_split_module;
- the notes and kinds: PrecisionNote::ComputedSampleDepth (and its conformance Degradation, C3
deferral and comparison rows, and its catalogue entry in docs/API.md),
Feature::MultisampledShaderDepthTest (and its reach row), DriverDeviation and VkProperty
CenterFragCoordDepth and SampleFragCoordDepth, which nothing else reads;
- DrawReplayRule::ShaderTests, and the mechanism rows of the two facts;
- the runtime's translator_fields row for shader_tests.
Tests:
- engine_fragment: the discarding fetch beside depth expects a depth test that writes refused at
the depth attachment and a stencil test that acts at the stencil attachment. The per-sample
depth test, the memory-writing fetch's Drop draw, a returned depth
(a_fetch_that_returns_its_depth_refuses_a_draw_whose_depth_test_writes, which keeps the compiled
pipeline's checks) and a returned stencil or mask
(a_returned_stencil_or_sample_mask_refuses_a_draw_whose_tests_act) expect the refusal. The
stencil test in the shader goes.
- engine_fragment_imageblock: a tested imageblock writer's depth draw is refused
NotImplemented(Imageblocks) at the depth attachment.
- engine_moved_writers: the writers' wanted tests are the early-tests variant alone; a draw that
ran the function's own tests is refused.
- depth_stencil_copy, owned_divisions, the mechanism table, api_tests, the binder's templates, the
variant key's debug text: their stand-in rows go. The binder's stencil words test goes.
api_surface loses its rows; api_signatures is blessed; docs/REFUSALS.md is regenerated.
SEMANTICS_VERSION 2227, ARTIFACT_FORMAT_VERSION 572, RUNTIME_VERSION 2547 (placeholders; main
renumbers). SEMANTICS: the binder's plans of such draws change, and the key bytes go. ARTIFACT: the
codec loses SyntheticBinding, PushField, RuntimeFact, IoRole, VkProperty and PrecisionNote variants,
GraphicsState's field and three structs. RUNTIME: plans and BindState change. The runtime pin
moves.
Consumer check (consumer-uses.sh, consumer development 0140a12682, 61 refs): 0 hits (code) for
ShaderTestsUse, StandInUse, StandInView, shader_tests, shader_stencil, window_depth_varying,
DepthStandInForm, DepthSplitModule, depth_split_module, DepthFromStandIn,
MultisampledShaderDepthTest, CenterFragCoordDepth, SampleFragCoordDepth, ShaderTestsState,
ShaderStencilState, DepthStandIn, StencilStandIn, WindowDepth, window_depth, stencil_references,
depth_clip_mode_clamp, ShaderStencilTest, DepthTest and ShaderTests; depth_range in link-order
lists only. ComputedSampleDepth: 0 on development; used in crates/reims-vgpu-vulkan/src/answer.rs
on 38 of the consumer's steelbrain/* branches, a crate its development no longer has.
Verified: m3-max-61056 (msi) at this commit's tree: fmt, clippy, Rustdoc, and nextest of
metal2vulkan, -conformance, -validation and -runtime, 5885 of 5886 passed; the one failure is
the_old_render_descriptor_key_keeps_its_value, which moves with SEMANTICS_VERSION (main pins it).
States-only plays on lavapipe of the probe player built at the change on 999b82bfe2
(steelbrain/cutxlate-siplay, m3-max-61016): m3-max-61022 to 61026, 61 runs over the 36 streams,
render 502920 states made and 0 refused, compute 108189 made and 0 refused, the counts of the play
before the change: no state a stream makes meets the new refusal.
The runtime's floor requires VK_EXT_line_rasterization with bresenhamLines (107dba0b33); the
regeneration's RUNTIME_FLOOR block now states both, and runtime-floor.json is regenerated from it
(scripts/regen-device-profiles, --only runtime-floor; check_device_profiles: 0 findings), so the
runtime's the_floor_profile_states_exactly_the_floor holds.
On runtime-floor, a function with more storage textures than the per-stage limit (13 against 4,
kernel_block_read's br_rw) is refused on the formatless floor by the descriptor count, while the
device without the formatless reads asks for the storage format first, before that check is
reached. profile_f_functions_reach_every_buffer_through_a_descriptor accepts that pair.
Verified by suite m3-max-60543 (msi) naming these two among its reds; rerun follows.
What: profiles/below-floor/swiftshader.json, its generator source entry
(scripts/regen-device-profiles, gpuinfo report 38278) and its README row are deleted. The
from_queries refusal test (a_push_window_below_256_bytes_is_below_the_floor) reads
below-floor/vk12-floor alone.
Why: no test compiles on it any more. Its forms (4-lane vertex subgroups, reads with a format
only, robustImageAccess alone) are tested on runtime-floor with those properties stated, and a
below-floor push window is the vk12-floor description's 128 bytes.
Consumer check: no public item of a published crate is deleted.
Verified: cargo fmt. The suites run on this tree with the previous commit's jobs.
What: Device::from_queries refuses a description whose maxPushConstantsSize is below the 256
bytes every stage's push window is lowered for, with a typed Unsupported{PushWindow} naming the
MaxPushConstantsSize limit (crates/metal2vulkan/src/device/derive.rs, the floor checks of
from_queries). The runtime's floor (metal2vulkan-runtime's floor list) requires
maxFragmentOutputAttachments >= 8. All 15 committed device profiles report 8, and so does every
matrix card.
The committed profile set keeps only devices at or above the floor:
- roadmap-2022 and lunarg-desktop-baseline-2023 are deleted;
- vk12-floor and swiftshader move to profiles/below-floor/, inputs of the from_queries refusal
test only;
- runtime-floor, derived from the runtime's floor by scripts/regen-device-profiles and held
equal to it by a test, is the floor every test compiles on.
A test of a below-floor form now runs on runtime-floor without the feature that form stands in
for, labelled "below the runtime's floor" (pipeline::testing::profile_without, PROFILE_F,
device_f, FORMATLESS_FLOOR). The validation tests name runtime-floor, or derive the device they
need from it (no tessellation, no formatless writes, robustImageAccess alone, no device
addresses).
Why: the runtime refuses every device below its floor, so translating for those profiles tested
forms no device the runtime opens can ask for. A push window below 256 bytes cannot hold what
the lowering puts there.
Consumer check: no public item of a published crate is deleted. The one removed constant,
FORMATLESS_FLOOR's old value, is in the crate-private pipeline::testing.
Not in this change, re-blessed on development: the golden hashes table
(tests::golden_hashes) and the public fixture expectations (tests::public_fixtures_engine). The
runtime-sources pin (candidate::engine::artifact) follows from the test run at this tree.
Verified: cargo fmt. The suites, clippy and the CPU-ICD run are potluck jobs on this tree, named
when the branch is handed over.
The enum listed 33 defects of named drivers in commands a runtime records, keyed on the driver's
identity and release (rule 2). The runtime constructs none and reads none: no crate of ours, and
none of reims's, names a variant. With it go Needs::RuntimeDriverDefect,
Unsupported::runtime_driver_defect, validation's UnsupportedReason::DriverDefect ("driver_defect"
keys; the stale census rows that carry one go at the next re-bless), the conformance verdict's
device-gap arm, the error and engine key tests' entries, the API guide's Needs entry and the
refusal surface script's constructor.
Since nothing reads a variant, no ladder rung follows from one: no site becomes a precision note or
a typed gap. The four docs that cited a variant now state what Vulkan or the module does without
it: the depth/stencil copy modules (maintenance8's copies), the generated-commands replay (the
explicit preprocess form, which the runtime does not take), the validation executor's set-layout
query note (MoltenVK's understated answer), the pipeline-cache probe's comments (MoltenVK compiles
a seeded cache's shaders at load), and SeparateMultisampledDepthStencil's refusal (maintenance8
alone).
NativeHalfConversion's bound adds NVIDIA 620.70.06's measurement on the RTX 3090: the pair is
dropped under the 16-bit RTE, DenormPreserve and SignedZeroInfNanPreserve too, every float that is
no half coming back unchanged over all 2^32 inputs. The bound already covered no rounding at all.
REFUSALS.md and api_signatures.tsv regenerated.
Verified: nothing yet; the gate follows.
The golden hash table compiles through Device::from_queries (docs/
VALIDATION.md already says so), not Device::new, so the matrix's
comments and its problem message say that. The gate keeps its behaviour
under its own name: results.golden_table_moved (was old_path_moved),
GOLDEN_FIX (was OLD_PATH_FIX), and the leg's problem "GOLDEN TABLE
MOVED" (was "OLD PATH MOVED"), with VALIDATION.md's line and the test
following. The "new runtime" of results.py's and instructions.tsv's
comments is now the runtime.
Unchanged, because readers depend on them: the exemption phrase
"old-runtime regression fix" (matched in the subjects of commits since
the table's last bless), and the record keys harness-new/,
harness-new-warm/, harness-gpu-new/ and harness-alone/<row>/<pair>/new,
which the harness prints from its --runtime value and which the 60
stored notes under refs/notes/matrix hold: a base's records are compared
key by key, so renamed keys would compare nothing against every stored
base.
DriverWorkaround held 26 variants; Device::from_queries takes only ClippedCoverageNotMetals and
TessellatorNotMetals, on every device, and the batch's earlier commits removed every reader of
the other 24. They go, and the enum's docs now say what it is: a device answer that no Vulkan
query tells apart, noted on every device.
Needs::DriverDefect and Unsupported::driver_defect named a DriverWorkaround measured on a
driver's identity. No site constructs it any more; they go, with their arms in the permanence
match, the validation engine's outcome map and its key test, the conformance verdict's device
gap, the error tests and the refusal surface script.
Docs that named deleted variants are rewritten to what the code does now: the f32 denormals in
an entry that declares the 16-bit float controls are the device's own on every device; the stage
bound is the one bound a kernel's plan is held under; the uniform view is a Uniform block (the
texel form went with ExternalUniformReadsSkipACache); the Intel venues' note no longer claims the
RPL-P's profile takes a workaround.
Verified: nothing yet; the gate follows.
The planner's ruling: no VertexSimdgroupGrouping. lower/simd recorded it for a vertex function's
simdgroup or quad operation where the stage takes no required subgroup size and the profile
carried DriverWorkaround::VertexGroupingNotApples (ANV's 8-vertex interleaved subgroups); no
profile carries that variant since the fact tables went, so it was recorded nowhere. The note,
its reader (regroups_vertices), its codec tag, its conformance degradation and code, its
validation allowance, deferral and bound text, API.md's catalogue entry and the engine_simd and
c3 tests that named it go.
The public surface moves with this commit and the batch's earlier ones: the api_signatures table
(regenerated by signatures.py) drops PrecisionNote::VertexSimdgroupGrouping (the translator's
and the runtime's re-export), Feature::PixelCoverage and Feature::CentroidVarying (link's split
refusal), and DescriptorView::UniformTexel (the views' rung 1); REFUSALS.md (regenerated) drops
the two features, and the reach table their rows.
There is one runtime, so the prose of the harness, validation, devtools,
the translator's lockstep module, .config/nextest.toml and the refusal
surface and conformance coverage generators says "the runtime"
(scratch newrt.py: a word replacement, identifiers such as new_runtime
and NewRuntime untouched). docs/REFUSALS.md and
docs/CONFORMANCE-COVERAGE.md are regenerated from the edited scripts.
Four harness passages said the runtime makes no heap and no texture
over a buffer, and has no Managed mode. The runtime has all three
(Device::new_heap_buffer and heap textures, Buffer::new_texture,
Device::new_managed_buffer); the harness's own backend refuses the two
texture sources. They now say the harness makes neither on the runtime,
and the Managed note names Device::new_managed_buffer. The refusal
strings keep the words the harness's described test matches ("makes no
heap", "makes no texture over a buffer").
Left: three fixture comments (.metal under validation's public
fixtures, whose text keys the golden tables and the committed AIR) and
scripts/matrix, whose keys (harness-new) carry the same naming.
Verified locally: the refusal surface, Metal coverage, conformance
coverage and API signature checks pass.
The planner's ruling. A fragment function that runs its draw's depth test itself at more than one
sample, without returning its depth, needs each sample's depth. The two forms that gave it were
keyed on measured facts (VkProperty::SampleFragCoordDepth on RADV, CenterFragCoordDepth on
MoltenVK) that no query produces, so development already refused it on every device, as
Unsupported(FramebufferFetch, NotImplemented) at the depth attachment, which a play cannot count
apart from framebuffer fetch's own refusals. It is now its own kind.
- error/mod.rs: Feature::MultisampledShaderDepthTest.
- lower/fragment/depth_test.rs: depth_test_form refuses with it; the module docs say why.
- docs/REFUSALS.md regenerated with its reach row (--check passes); api_signatures.tsv blessed
(it also takes the extrapolation commit's removal of DriverWorkaround::PerspectiveReadsExtrapolated).
- Tests: engine_fragment's per-sample depth and stencil-before-depth refusals, and
engine_fragment_imageblock's multisampled tested write, assert the new kind at the depth
attachment.
The forms keyed on the two never-produced properties, and the window-depth varying that feeds the
computed one, go with the other never-produced vocabulary.
The runtime_lane tests went with the old runtime, so every cite of one
was false. Each cite is deleted outright, in the conformance cases and
probes, the engine fixtures README, the translator's precision-note and
profile docs, one engine test comment and the i915 counter's header.
Where a sentence only restated what a deleted lane held or showed (the
"what the port changes" paragraphs, the "stays a lane assertion"
sentences, the lane's own model kept "exactly as" it stated it), the
sentence is deleted; the Metal facts the cases record stay.
Two runtime claims beside the cites were false of the live runtime and
now say what it does: a command queue of 0 command buffers is
Refusal::NoCommandBuffers, and a heap texture's size is the device
image's own requirement, held by its property.
Verified: git grep runtime_lane finds nothing. Not built yet; the gate
for the whole pass follows.
The planner's ruling. interpolant_reads refused a read at a sample or an offset outside the
fragment function's first block, or after a discard in it, only on a driver with
DriverWorkaround::InterpolationNeedsTheWholeQuad, which nothing sets since the driver-fact tables
went: development lowered the shape on every device, RADV included, whose InterpolateAtSample and
InterpolateAtOffset read garbage where the quad's other invocations have left.
- lower/stage_io/plan.rs: the structural test stays as it was (Sample or Offset, past the first
block or after a discard in it) and refuses on every device, as its own kind:
Unsupported::not_implemented(Feature::DivergentInterpolation), so a play counts it apart from
PullModelInterpolation's select, phi and store refusals.
- error/mod.rs: Feature::DivergentInterpolation; PullModelInterpolation's doc points at it.
- device/profile.rs: DriverWorkaround::InterpolationNeedsTheWholeQuad deleted.
- The coverage loop's rung-1 form, beside it: lower/fragment/coverage.rs read the fact nothing
set, so development read a looping function's sample-qualified varyings inside the loop on
every device, where the helper invocations of a partly covered quad have left. The entry now
reads each such varying at every sample a pipeline of the device may have before the loop, on
every device (samples_before_loop, stage_io::read_at_every_sample).
- SEMANTICS_VERSION 2205.
- docs/REFUSALS.md regenerated (scripts/refusal-surface, with the new reach row); --check passes.
- Tests:
- rt's every_device_refuses_interpolation_where_the_quad_may_have_left (lavapipe): a sample
read in a branch, an offset read in a branch and reads after a discard in the first block
are refused, Unsupported(DivergentInterpolation), NotImplemented; the same reads in the first
block, and before a later discard, are made and draw the colour.
- engine_pull_model: pm_offset_after_discard (reads past the first block) is refused on every
committed profile at 1 and 4 samples, before what its reads need is asked.
- engine_coverage_loop: a looping function's sample-qualified varying is read at every sample
by constant index from 0, a power of two of them and at least the pipeline's samples, and at
no computed sample.
The runtime's side announces only the codes of the precision notes its states, textures and
sampler states carry. shared-in-system-memory is not one: it was the deleted runtime's notice
for a Shared buffer on a device without unified memory. Every case that read an answer back
through a Shared buffer declared it, so the declaration held on no run.
What goes:
- the declaration in every case, and the prose and measurements that justified it;
- the allowances methods left returning nothing (the trait's default stands), and the helpers
that only carried the declaration: replay::shared_memory_notice, fresh-contents' copy of it,
mesh_draws::mesh_notice_allowances, buffer-tails' and buffer-textures' allowances,
render-depth-stencil-state's pass_notices, blit-encoder-commands' NOTICES and its notices
field, sparse-mappings' reaches_a_shared_buffer, format-footprints' shared_texture_buffers,
and the entries of sample-positions' and visibility's notice lists;
- the SharedInSystemMemory kind, its ALL entry and its code;
- compressed-moves' prose about notices of the deleted runtime (staged-texture-copy,
shadowed-texture);
- imports that only the removed code used;
- docs/FAST-PATHS.md's sentence on the declaration, and coverage.py's count of the helper.
The prose a removed paragraph shared with other notices is kept for those notices. Tests that
counted a case's declarations count what is left; that includes depth-resolve-pairs,
stencil-resolve-pairs and pass-attachment-pairs, whose counts the previous commit left at the
deleted kinds'. A new test, every_kind_is_a_catalogued_precision_note, holds every kind to an
entry of docs/API.md section 9; it fails on any kind no precision note announces.
Verified: cargo fmt --all. The gate runs once over this range.
The cutover's last mechanical step. The old runtime is deleted, so its name is free: the crate
moves to crates/metal2vulkan-runtime, its package is metal2vulkan-runtime and its library
metal2vulkan_runtime, and every reference in the tree follows (sources, tests, scripts, CI,
generated tables and docs).
It is now a published crate, as AGENTS.md said it would be once it took the name: version 0.2.0
with the other two, the translator pinned exactly (=0.2.0, as the translator pins the AIR front
end), documentation, keywords and categories, and copies of the repository's four license files,
which the published-crates test now holds equal to the root's for three crates. CI packages it
with the others. Prose that said it was unpublished, or counted two published crates, says three.
AGENTS.md: facts only. The crate table row, the published-crates and version sentences, and the
paragraph on the old runtime, whose name the runtime now carries (listed for the owner).
Made by one script run on this tip. Verified by the job
named in the landing note.
The 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.
The cutover deletes the old runtime: crates/metal2vulkan-runtime and its workspace member go.
Nothing in the workspace depends on it any more: the harness and conformance lost their old arms,
and validation dropped its dependency in its own commit.
Adapted in this commit, so no gate reads the deleted tree:
- CI and scripts/linux-gate-ci: the crate's per-feature clippy group, its `-p` in the Windows
clippy and the test step, and its private-doc-links row go. Packaging needs no edit: the
workspace's published crates are now metal2vulkan and metal2vulkan-air.
- The published-crates test lists those two; devtools' carried trees and the five nextest groups
of the old crate's tests go.
- scripts/api-signatures: the crate leaves CRATES, FLOORS and the header, its self-test trees name
rt (read by the same rules), and the table is re-blessed (the old crate's 4555 rows go);
api_signatures.rs pins the three crates left.
- scripts/refusal-surface: the old crate's tree and its sections go (RuntimeGap, AppleOnly,
Problem and the problem enums it forwards to), with their 87 reach rows, the `--delegations`
verb and the test that counted the old Problem's delegations; docs/REFUSALS.md is regenerated.
The basis check now holds rt's refusal enums alone, which it already required.
- scripts/api-cost-coverage goes: it measured only the old crate's surface.
- feature_vocabulary.rs: the old crate's two enable tables go; the Khronos and validation tables
stay held to the vocabulary.
- The conformance coverage generator's by-hand roots read rt instead of the old crate, and
docs/CONFORMANCE-COVERAGE.md is regenerated (MTLResourceOptions' row, which only the old crate
modelled, gives way to rt's MTLCommandBufferError).
- scripts/matrix: the harness times the new runtime alone (`--runtime new`), so the rules that
judged it against the old one go: the new-over-old budget with its floors (floors.tsv,
gpu-floors.tsv), ceilings, card variance and status table (status.tsv), the frozen arm, the
base spread and the timing once more it set off, the re-timed pairs, the five creation rounds
and the old runtime's parked tests and records. A harness row's time is judged as a cross-GPU
outlier, with its alone runs as before, and the frame and burst rows by their stored
instruction counts; the creation rows run once, in their own process. docs/VALIDATION.md's
matrix section says these rules.
Checked locally (python, no build): signatures.py --check and --selftest, refusal_surface.py
--check, --selftest and --missing-basis, coverage.py --check and --selftest, and scripts/matrix's
49 tests pass. The compile gate (fmt, clippy plain, --cfg m2v_gpu and --cfg m2v_cpu_icd, Windows
clippy for gnullvm and msvc, workspace Rustdoc, packaging, the touched crates' suites on the host
and on lavapipe) runs on this sha as potluck jobs that the landing note names.
The cutover deletes metal2vulkan-runtime, so the conformance suite stops depending on it.
What goes: the old runtime's side (runtime_side.rs, runtime_work.rs, states.rs) and its runs in
run.rs, report.rs and the command; the cost verb, the timing-coverage verb, `times`' leg of ours,
the `--rt`, `--default-policy`, `--leg`, `--call` and `--cold-shaders` flags; the four split
binaries that drove the old runtime directly; coverage.rs; and the old side's ledger,
known-gaps.tsv. The harness half of the cutover landed separately.
What stays: rt_side is the only runtime side, and `conformance replay` runs it (CI's
`replay --cpu` now replays rt on lavapipe). Its ledger, known-gaps-rt.tsv, is the one ledger, with
the rows it held; a call rt_side does not answer yet stays Failure::unavailable on it, as before.
The cases keep every allowance: the old runtime's Degradation kinds become the suite's own codes
(degradation.rs, the same `metal2vulkan-degrade-<kind>` codes), and the old runtime's Metal value
enums the cases state become the suite's own (values.rs). The old side's descriptor helpers that
rt_side and its tests used move to rt_side/fields.rs. Recordings keep their `costs` and our times
as data; `deny_unknown_fields` still reads them.
The coverage generator reads rt_side alone, and docs/CONFORMANCE-COVERAGE.md is regenerated.
The README describes the suite as it now is.
Checked: coverage.py --check and --selftest locally. The compile gate (fmt, clippy plain,
--cfg m2v_gpu, --cfg m2v_cpu_icd and for aarch64-apple-darwin, workspace Rustdoc, the suite on the
host and on lavapipe, and the lavapipe replay) runs on this sha as potluck jobs that the landing
note names.
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.
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.
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.
Follow-up to ef5b888c2f: its unit test expected the batched harness job not to tidy, but it is the
node's last planned job, and the once-more timing is decided only after it. The once-more job lays
the tree out again (potluck pushes the carry's mirror again for its dispatch) and tidies as well.
The docstring says so and the test expects it. Verified: scripts/matrix tests in a potluck job.
What: gpu_node times all of a node's GPU legs in ONE job that holds the node alone (--exclusive),
the legs in turn, each still timing its one GPU with nothing else running; the legs whose old
runtime spread past results.BASE_SPREAD are timed once more together in one more such job. retime
does the same for a Linux node's outlier legs (a Windows node's leg stays its own job). A job's
timeout is its leg count times one leg's: size() keeps a run's minutes per leg.
Why: the supervisor measured homelab GPU jobs waiting 8.6 job-hours an hour from 20:15 to 22:30,
29% of it behind exclusive runs (5% before). The matrix round at 1ae9003019 took 10 exclusive runs
of 2-6 min (ms01 3, um870 2, gem10 2, um790 2, the mini 1), and each drained its node first. One
exclusive job per node per round drains each node once.
Verified: scripts/matrix/test_matrix.py in a potluck job (see the landing note).
A lock-budget test on a node that names no M2V_LOCK_EVENT returned early and passed, printing a
LOCKS-UNMEASURED line the matrix's filter dropped with the rest of a passing test's output. The
gem10 and um870 legs passed that way at 1ae9003019 while every leg that counted failed, and the
report could not tell them apart.
Each budget test now names its record (Locks::open takes its key) and prints, where it counts
nothing, 'LOCKS <test>: not counted, the node names no M2V_LOCK_EVENT' and
'M2V-MATRIX uncounted lock_budget/<key>'. The matrix keeps that line as it keeps a record
(KEEP matches 'M2V-MATRIX '), results.parse_suite collects it, leg_entry stores the leg's keys
(results.leg_uncounted), and the leg's verdict line ends in 'not counted: <keys>'. No node
setting changes.
Verified: scripts/matrix's unittest suite, 87 tests, OK locally, with the new
UncountedTests case (a passing test's line through matrix.KEEP, parse_job and verdict_line).
`scripts/matrix/matrix run --help` took --help as an option it ignored and started a full run at
development's tip (stopped by hand after two minutes, before it dispatched anything). main() now
walks its arguments: run takes one SHA, --legs LEG,... and --dry-run; show takes one SHA; anything
else (--help, -h, a misspelt option, a second SHA, --legs without its list) prints the usage and
exits before git or a run is touched.
Test: ArgumentTests in test_matrix.py; the first test calls run_cmd under the old main().
On the new runtime's profile every Workgroup variable that holds a
function's threadgroup memory has a null initializer: the threadgroup
arena (declared threadgroup variables, [[threadgroup(n)]] regions and the
imageblock, memory::arena) and the typed threadgroup objects
(lower::access::local). One form on every device: the Vulkan 1.3 floor
requires shaderZeroInitializeWorkgroupMemory; a profile without it
refuses such a function, Unsupported{ZeroedThreadgroupMemory}.
Device::new's profile is unchanged (ProfileFacts::ROWS keeps
ThreadgroupStart::Unwritten), so the old runtime's SPIR-V is too.
The translator's own Workgroup words get none, as it writes each before
any read: the emulated SIMD-group scratch and vote word, the object
stage's mesh grid, the mesh wrapper's count and staged indices, the
emulated payload and the binder's scan and merge kernels.
The builder refused a null of an array whose length is a specialization
operation (spirv/ir/constant.rs, ConstRule::NullType); an arena with
regions, and the emulated scratch, have such lengths. spirv-val's
IsTypeNullable reads an array's element type alone, so the builder now
takes it. That refusal is what made rt report a probe's emulated variant
as missing (Gap::PartialSimdgroups after Later::lower's Refused).
The profile verifier also refuses a Workgroup initializer other than a
null (VUID-StandaloneSpirv-OpVariable-04734).
docs/API.md states the form with Metal's words on threadgroup memory;
SEMANTICS_VERSION 2192; REFUSALS.md and api_signatures regenerated.
Tests: engine_zeroed_threadgroup (null initializers through from_queries
on four profiles, zeros on the interpreter in both orders and two
threadgroups, the emulated variant's arena zeroed and scratch not,
Device::new uninitialized, the vk12 floor refused),
a_specialization_sized_array_has_a_null, a_workgroup_initializer_is_only_a_null,
the profile facts' fingerprint.
scripts/linux-gate-policy's overlaps() piped printf into `grep -qxF` under `set -euo pipefail`.
bash line-buffers its stdout, so grep can exit at its first match while printf is still writing;
printf then ends with SIGPIPE, pipefail gives the pipeline its status, and a match reads false.
The overlap went unseen and the policy accepted a scratch directory inside the checkout:
linux_gate_policy::a_scratch_directory_may_not_overlap_a_protected_path failed so on a loaded
msi (53490 at b14260ea79) and passed alone (53581). overlaps() now matches the lists with a
`[[ ... == *...* ]]` test. scripts/linux-gate's bsdtar check had the same shape
(`tar --version | grep -q bsdtar`) and is matched the same way.
A new integration test, no_quiet_grep_under_pipefail, reads every script under scripts/ that
sets pipefail and fails on a quiet grep after a single pipe, with a unit test of its detector.
Verified: see the check job named in the landing.
The replay player prints, on the new runtime, the matrix's judged metrics of a play: one
`M2V-MATRIX metric replay-rt/STEM/RANGE/NAME N` record per metric, `N` the play's executed total
(`Report::total`) of submissions, passes, barriers less `texture_clear_barriers`, bytes copied and
pipelines created, and of the new textures zeroed, the clears and the zero-initialized ones as one
count and their bytes as one. The split between a clear and a zero-initialized texture follows
where the pool places it and may differ between two plays of one stream, so the two are judged
summed, and the barrier after an upload's clears is left out of the barriers. A play that did not
finish its range (it stopped, or ended before frame F's present where it plays to F) or whose
backend skipped anything prints none (`judged_records`).
The matrix's rule holds a `replay-` metric equal to the base's, failing a change either way, and
fails a leg that lacks a record its base has: a short play does not pass (`EQUAL_METRICS`). The
counters' docs say the split may differ between two runs of one program; VALIDATION.md and
REPLAY-STREAM.md say what the judge does.
Tests: the judged totals on the fake backend (the net barriers, the summed zeroings, a counter
not reported as 0, no other counter, the range in the key), a short play, a stopped one and a
skipping one printing nothing, and the rule's equality and missing-record cases in
test_results.py. Verified: cargo fmt; `python3 -m unittest discover -s scripts/matrix` (84 tests,
OK). The Rust build, clippy and tests run in the checks dispatched at this commit.
The running-signal case now loosens two sites with Loosening::AnyOf on rt's
run, so the derived counts move: 11 SDK items move from 'no case reaching it
loosens anything' to 'loosens some site', and the tolerances grow from 15 to
17. The generator mapped each Justification constructor to its variant except
new_runtime_accepted, and that is the first one a case module names. It now
maps it to NewRuntimeAccepted.
Verified: the_conformance_coverage_document_is_what_the_sources_derive failed
in m3-max-52651 before this commit. coverage.py --selftest passes.
Round 940f37188b (10 of 11 legs pass; the UHD 630 venue unstable) lists the row among the status
entries within their limits: within its limit on every leg of its card that timed it. gem10's
leg (52484) read 1.004 on the five interleaved samples (rt 6829.1 against old 6802.4 us medians)
and um870's 1.00 (6969.6 against 6987.5). The row's earlier 1.08 (round 391db1e57a) was one
reading.
Round 391db1e57a reported the entry stale: the row was within its limit on every leg of its card
that timed it. Ruled by the planner on 2026-11-19 with the round's other readings.
Verified: matrix-unit.sh.
Ruled by the planner on round 951b93a645:
- 8086:a7a0 alu and long_4cb: the rt README's recorded Gen12 gap under the biased slot word (a
change before an identical loop moves a kernel -18% to +14%, mechanism not shown; neutral arm
m3-max-51663). Medians 1.139 and 1.141 (m3-max-51733).
- 10de:2204 create_64MiB first_take and device_first: the 2080's known gap, the driver's
allocation of host-visible system memory against old's import of its own pages. One line for
both 3090s at the higher card's medians, 2.841 and 1.943 (um870, m3-max-51756); ms01 reads
2.359 and 1.673 (m3-max-51747).
The ruling named 1.14, 2.84 and 1.94. A ceiling under its row's own median fails the row at once,
so each is rounded UP to cover the median, as every earlier ceiling was (1.877 to 1.88): alu
1.14, long_4cb 1.15, first_take 2.85, device_first 1.95. The planner is told.
The Windows rt suite's default room goes from 4 to 8 GiB. In the same round its run on the UHD
630 went over 4 GiB in 34 s (m3-max-51691, exit 137). The retry at twice the room is capped at the
kind's default, so a kill at the default was never retried and the leg reported no suite.
Verified: the matrix unit tests run after landing (matrix-unit.sh).
The planner's rule for these two ceilings (1.20 each): the next round's ratio lowers them, and a
row at or under 1.0 leaves the list. In the round at 951b93a645 (jobs m3-max-51721, m3-max-51731,
gem10's RX 550, RADV POLARIS12, Mesa 26.2.6) the wall ratios are constant_managed 0.956 and
constant_private 0.953, with GPU p50 1972.6 us vs old 2094.4 us and 2013.8 us vs old 2101.8 us.
Both rows are within HARNESS_BUDGET, so the leg judges them without a ceiling.
Verified: the only test that names the RX 550 leg patches HARNESS_CEILINGS to {}; the matrix unit
tests run after landing (matrix-unit.sh).
A facts call running said nothing of which of its fields were compared, so a field the new
runtime's side refuses read as covered beside its call. The coverage document gains a section
that counts each facts type answering field by field (a struct with a crate::case::Field field)
by field: its fields, the ones a side may refuse, the leaf each records at (read from the type's
node), and the new runtime's ledger rows that refuse each at that leaf, of the cases whose module
calls a Side method answering the type. A Field whose node records it at no leaf this can read
stops the generator.
The six pipeline descriptor cases' label rows (pipeline-descriptor-* and compute-descriptor-*,
every venue: the consumer's own, label) go into known-gaps-rt.tsv. Their binaryArchives rows wait
for memory2's every-stream count of binary archives, which their head will cite.
Verified at this commit: coverage.py --check passes on the regenerated document; the build, the
suites and the lavapipe replays run in the lane's check job.
The planner ruled create_64MiB/first_take 2.30 and create_64MiB/device_first 2.14 on 10de:1e87,
from the medians of the alternated run m3-max-51634 (base 7cda47f536 and head 296e110c0f, the
higher of the two): the driver's own allocation of 64 MiB of host-visible system memory takes
about 12.5 ms where the old runtime imports pages it mapped itself in about 5.8 (m3-max-48212),
and it stays the driver's memory because an import as the allocator costs every submission on
every AMD card. row_limit applies HARNESS_BUDGET on top, as for the 1.40 lines. The 3090 has
no line yet: it takes one from its own rows.
A host can give each process a wall-time level of its own. On the RTX 3090 at homelab-um870-1,
sampling_deep_4x16x252 took about 37 or about 80 us a run, one level a process, at equal GPU
time and CPU instructions, and the old runtime drew the levels as well (rounds b0c08e51b5,
7cda47f536 and 6b535f55c9). The outlier's second pass is already a fresh job, so a fresh
process, but two passes both landed high in 6b535f55c9 and failed the leg on a level the code
does not set: m3-max-51629 timed the row in 39 processes over every commit of the range at 36.8
to 40.0 us.
Now the second pass of a leg with a harness row's cross-GPU outlier also runs each such row
(results.alone_rows, at most RETIME_ROWS, the furthest out first) alone in RETIME_PAIRS pairs,
old then new, then new then old, every process on a fresh driver cache and store, its times kept
as harness-alone/<row>/<pair>/<runtime>. time_outliers judges a row out in both passes by the
lowest of the new runtime's samples (both passes and the alone runs) over the lowest the base
recorded of it: still out, it fails, "high in every process"; brought back, it is parked with
every sample, "levels, no verdict", so a high level grown more frequent stays visible. The alone
keys are never judged on their own. GPU-time rows and counts are unchanged; no ceiling moves.
Verified: python3 test_matrix.py and test_results.py (potluck job named in the landing).
The planner's ruling on the twelve old-side RADV rows f1aa961e34 added: the frozen old runtime
takes no new ledger row, so the case's notice-justified bound is scoped to the new runtime and the
old runtime's side keeps what it had, which was no bound.
A new justification, Justification::NewRuntimeNotice (Justification::new_runtime_notice), holds
on metal2vulkan-rt's run as a degrade notice does, where the run announced it; on the old
runtime's run it holds nowhere and faults nothing (Unjustified::OldRuntime, which faults_the_case
excludes beside VenueCompresses), so the site compares as if the case loosened nothing. The venue
says which side ran (Venue::new_runtime: true on the rt side, false on the old runtime's and on
Metal's), and replay hands it to the comparison (Offered::on_new_runtime). compare's check that a
named justification exists treats it as it treats a notice.
The ten BC1 to BC5 decode cases loosen each round's texels by NewRuntimeNotice
(compressed-texel-decode). known-gaps.tsv is the ledger as it was before ae452ee883: the twelve
RADV rows go, and the 89 BC rows that commit's series removed (lavapipe 44, the RTX 5080 Laptop
40, RADV BC4 and BC5 5) and their comment are back, since the old runtime's sites differ again
as they did.
docs/API.md: the catalogue says the cases' bound is the new runtime's alone.
scripts/conformance-coverage: the justification vocabulary reads new_runtime_notice;
docs/CONFORMANCE-COVERAGE.md regenerated.
Test: tests::a_notice_scoped_to_the_new_runtime_leaves_the_old_runtimes_site_its_one_row (the old
runtime's site is its one divergence, unfired for OldRuntime; rt's announced; rt without the
notice faults).
The rows are judged and listed in key order (alu before create_state/first); 50745 failed the
new test on that order alone. Verified in the matrix unit job dispatched with this commit.
The frozen arm's second rule, beside FROZEN_DRIFT (the planner's ruling of 2026-11-19, reading
(a)): a row judged by its host time, and not by re-timed pairs, whose excess over its limit
(ratio over limit, less 1) is smaller than its own old time's move from the base in the round
is VOID, since the old runtime's drift alone could carry it there. GPU-time rows and rows judged
by their re-timed pairs are never voided by it. Neither rule makes a row red; the paired re-time
judges a red row.
harness_budget parks such a row as VOID with its excess and the move; the report's table reads
VOID for it (over_lines, through excess_voids); each leg's lines name the rows each rule voided
(print_leg). docs/VALIDATION.md states the rule.
The venue-wide reading was withdrawn: the frozen arm's largest moves sit on cold creation rows
(create_4KiB/device_first +88% on one leg of 7cda47f536) and would void nearly every host-time
row.
Verified: test_a_host_time_row_past_its_limit_by_less_than_old_s_own_move_is_void, in the
matrix unit job named in the next commit or the landing message.
The round at 7cda47f536 named 14 entries for removal (results.entries_within): every row of each
was within its limit on every leg of its card that timed it. Removed by exact card and row: ten
of memory2's create_* records, three of the planner's 2026-11-18 gaps (a7a0 create_state/first,
and 1e87 and 2204 create_private_16MiB/first_take; 1e87 frame_5cb), and identity's a7a0
sampling_deep_64x64x16. The known gaps they cite stay in the runtime guide; a row that goes over
again reads NEW, as the file's rule says.
Verified: the round's report in ~/.cache matrix log for 7cda47f536 lists exactly these 14.
The GPU legs' tree was laid out without any observations, on the reasoning
that nothing the legs ran read them. Since b28b4975b5 the legs also run the
replay player's stream device tests, and two of them
(a_pointer_written_at_a_recorded_address_reaches_its_node and
a_private_buffer_takes_its_bytes_before_a_dispatch_and_is_compared_after)
take a public case's Metal output from the committed Metal observations. Every
Linux rt leg of the matrix at 7cda47f536 failed both with NeedsMetal { gap:
Missing } (jobs 50451-50454), and nothing else.
The tree now carries corpus/observations/metal (37 MiB of the 1.5 GiB) and
still none of the other backends' observations.
Verified: test_matrix's new
test_the_tree_carries_metal_s_observations_and_no_other_backend_s; the
legs' re-run follows on development.
An open record in status.tsv now names the ratio its row was owned at (the new `owned` column,
filled for the existing entries from the matrix note of b0c08e51b5). The harness budget names a
row past its limit that an open record holds and fails nothing while the ratio it is judged by,
after its re-time, is within 3% of the owned ratio (results.OWNED_WORSE); more than 3% worse, the
row fails its leg again. A known gap's row fails only past a ceiling a ruling gave it
(HARNESS_CEILINGS), as before; one without a ruled ceiling is listed and fails nothing. The
report's table shows the owned ratio and whether the row is within it, and after the table names
every open record and gap whose rows are within their limits on every leg of their card that
timed them, for removal (results.entries_within).
A cross-GPU outlier of a harness row's time on the new runtime no longer fails a leg from one
pass: once every leg is in, the legs with one have their harness timed once more (Run.retime: a
node's legs in turn, the nodes at once, each job holding its node alone), and an outlier fails
only where both passes agree (results.time_outliers with the first pass); one that only one pass
has is parked and named. Outliers of other records fail at once, as before.
Verified: the matrix's unit tests (test_results.py, test_matrix.py), run from scripts/matrix in
a potluck job; new tests cover the owned verdicts (within, worse, re-timed, a first take), the
gaps with and without a ruled ceiling, the removal list, the two-pass outlier rule and the
re-time's jobs.
The GPU legs' archive held metal2vulkan-rt alone, so the replay player's
stream device tests (metal2vulkan-validation's runtime_lane::replay_streams,
17 on the old runtime, and runtime_lane::rt_replay, 24 on the new) ran on
lavapipe only. A break in the player or a runtime's stream path that only a
GPU shows waited for a lane's play of a recorded stream to find it, as the
old arm's pin stop did. The archive now holds the validation crate too, and a
leg runs the runtime's tests and those two modules (DEVICE_TEST_FILTER). The
Windows leg is unchanged until the validation crate is shown to build there.
status.tsv, by the planner's ruling of 2026-11-18:
- 10de:1e87 frame_5cb is a gap row: the runtime guide's known gaps carry it
(crates/metal2vulkan-rt/README.md, NVIDIA's latency per submission).
- 8086:a7a0 frame_5cb and 10de:2204 create_state/first are within their
limits; their closed lanes' names are cleared (a row gets an owner when it
goes over).
- identity's rows wait for their card's native table, the guest-visible test;
"Iris swing unresolved" was stale.
Verified: see the check job named in the landing message (unit tests of the
matrix script, the archive built with both packages under --cfg m2v_gpu, the
filter's selection listed, and the selected tests run on a GPU).
NVIDIA's first take of a new 16 MiB Private buffer. On the 3090 and the 2080 the first take ran
1.10 to 1.34 times old's. A probe on ac1896537f split it. The fill rides in the take's own
submission: one vkQueueSubmit2 with one submit info, the upload leading the command buffer, and
23-26 us on the GPU. The added time is that submit call itself: 603 us on the 3090 and 579 us on the
2080, against a median of 2 to 3 us. The call began 67 us (75 us) into the block-maker's next 16 MiB
Private vkAllocateMemory of 661 us (647 us), which the take had set off by leaving the class under
8 MiB free, and returned 9 us (7 us) after that allocation. Driver 620.70.06, um870's 3090 and
um790's 2080, jobs m3-max-50032 and 50033 (probe 71841cbe6b).
The planner ruled it a known gap, not a fix: the hold is bounded by one allocation per block made,
which is the time the take would spend allocating on its own thread, and the only dodges are a
timer or an idle guess. So:
- the rt README's known gaps of memory blocks say it;
- 10de:1e87's and 10de:2204's create_private_16MiB/first_take take a ceiling of 1.40;
- their status rows read gap.
The capture ring's wait. A probe play of one consumer's stream on the 3090 (m3-max-50027, probe
db1d5c1929 on ac1896537f) timed each of 258 ring-fulls. The ring-full is 63.3 MiB. Its copy took
33.4 ms on the GPU, 1.99 GB/s, of the 33.6 ms the commit waited (medians). The queue behind earlier
work took 0.03 ms, the submission 0.04 ms and the wake 0.13 ms. The card sits in a Thunderbolt 3
enclosure whose link runs at 20 Gb/s (boltctl). The README's known gaps now give the numbers.
Verified: the numbers above, from those jobs' probe lines.
Every harness and matrix instruction row is meant as a release build without the validation
layer (the planner's budget form). By reading, nothing enabled the layer for the harness's
timing jobs: the harness is a release binary, rt's Instance enables no layer, and only the device
suite points the loader at the carried layer. This makes it hold by construction: the harness
jobs export the loader's documented VK_LOADER_LAYERS_DISABLE (loader 1.3.234 and later) naming
VK_LAYER_KHRONOS_validation alone, since Mesa's device-select layer picks the card. The run's
summary says so once.
Verified: the scripts/matrix unittest suite, 70 tests OK, run locally.
On the Ryzen 7 7840HS nodes the cores' mean clock tracked the frame rows' pass time (r = -0.88
over twelve passes of one build on the Radeon 780M, job m3-max-49287), so the host time of a
frame row measures the clock its passes found, and the legs there read VOID or venue unstable on
it. The planner's ruling: on such a node the frame rows of every card it hosts are judged by the
new runtime's instructions per frame, their time kept as a cross-GPU outlier check.
results.CLOCK_FOLLOWS_LOAD lists the CPU by potluck's cpu_model fact, which the leg's note now
keeps (`cpu`). There, harness_budget names a frame row's time and judges nothing on it (the
instructions gate judges it; a latency from idle row by its workload's count), the leg re-times
none of them (RETIME_SELECT's skipre, results.retime_skip), base_spread leaves them out, and
over_rows lists only their counts. time_outliers is unchanged and still judges their time
across GPUs. The verdict line names the rule that judged each row. docs/VALIDATION.md states it.
Verified: PYTHONDONTWRITEBYTECODE=1 python3 -m unittest discover -s scripts/matrix, 70 tests OK
(new: the budget, re-time, spread and over-table reading on and off the listed CPU; the verdict
line's rules; the harness job's skip pattern).
Every harness process prints its device's totals over the device's life
(`M2V-MATRIX metric harness-<runtime>/device/<total>`, since ebfc68ebb7) once its workloads have
run. The first creation round's processes (5849a7f029: one per runtime, their output kept whole)
are harness processes of their own, so each printed `harness-<runtime>/device/stamps_not_available`
a second time beside the other rows' process, and every GPU leg of matrix 749c939440 failed on
"record metric harness-new/device/stamps_not_available: recorded twice". The device's gauges at
drop had the same double and were already kept apart by CREATES_APART, which renamed only gauges.
CREATES_APART now renames every record of the device's life, of any kind, to
`harness-<runtime>/creates/device/...`, so the totals take the same road as the gauges and each
key is recorded once. A base without the renamed keys judges nothing on them.
Verified: the matrix's Python tests (test_results, test_matrix) pass, locally and in the job
named in the landing message; the creation test now feeds a device total through both the other
rows' process and the creation process and asserts each key once; with the gauge-only program it
fails on the same "recorded twice" line the matrix printed.
The planner's rule for timing legs: each prints the BASE arm's own spread across its passes;
past 10% the leg is VOID and is timed once more at another time, and a leg VOID twice is
reported as "venue unstable", never as a red row. In a matrix harness leg the base arm is the
old runtime, and the rows it times more than once in a leg are the re-timed ones: its main run
and each re-timed pair's (RETIME_PAIRS). results.base_spread takes, of each such row, the old
runtime's largest time over its smallest, less 1, on the time the row is judged on (its GPU time
where gpu_judged), and the largest of the rows; a creation row's first samples are cold, spread
by nature and judged cold against cold, so none counts; with no row re-timed it is n/a and voids
nothing.
Past BASE_SPREAD (10%), harness_budget names every problem the leg's times would raise VOID and
parks it, and the problems of its records and counts stand; the over table reads VOID on each of
the leg's times. The matrix (Run.timed_again) times such a leg's harness once more, after the
node's other jobs (the Windows host's right after its own), and judges that timing. The leg's
line names its base spread and what came of a first timing; a leg VOID in both reads `venue
unstable`, verdict UNSTABLE, which the run counts apart and which does not fail it. A node's last
job is now the last one it actually runs, the re-timing included, so the tree and the carry's
mirror are tidied after it.
Verified: the matrix's Python tests, new ones: the spread on time and on GPU time, n/a with no
re-timed row, a cold first sample never counting; a leg past it failing on its records alone and
the same row failing within it; the verdict line's spread, n/a and UNSTABLE; the over table's
VOID; and a node's harness timed once more after its other jobs, once only, its last job the
tidying one. In the job named in the landing message.