49eebb4d7f1f980bca907abdd6936050bb3a57cd
117
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
dc03c9e1b5 |
Validation: delete the own context's indirect-command-buffer and pipeline-state arms
What: since
|
||
|
|
01ed696846 |
Validation: requirement rows for indirect command buffers and pipeline states
What: five new ToolingRequirement variants for what the runtime does not build of an indirect command buffer, and for a pipeline state an argument buffer holds. Each one stops only the engine candidate (Limit::Runtime), so the Metal oracle still runs and qualifies these cases. executor_contract::case_requirements raises them from the case literals: - indirect_compute_commands: a command buffer of compute commands. - indirect_draw_types: a render command buffer whose descriptor allows draws other than indexed ones alone (non-indexed, patch, indexed patch or mesh draws). - indirect_command_inheritance: a render command buffer that does not inherit the pipeline state, or that inherits buffers. - host_encoded_indirect_commands: commands the host encodes into a command buffer. - argument_buffer_pipeline_state: a pipeline state in an argument buffer (the runtime's pipeline states have no gpuResourceID). The runtime builds kernel-encoded indexed draws that inherit the pipeline state and bind their own buffers (Device::new_indirect_command_buffer). A case in exactly that form raises none of these. Object and mesh cases already stop the candidate by mesh_render_pipeline (executor_contract::mesh), so no new row is needed for them. IndirectCommandBuffer (an authoring requirement about unobserved contents) means something else and is not reused. ENGINE_EXECUTOR_ABI goes to vulkan-engine-v207, because these cases' recorded rows came from the executor's own context. executor_contract is a classifier input, so triage recomputes the census. In the authored compile census, these cases' cells become their requirement refusals; the census is re-blessed on development. Routed: none. No committed case is in the runtime's form: - indexed-draws-a-kernel-and-the-host-encode has host-encoded commands (and point draws, which the translator refuses to encode). - a-vertex-function-whose-only-effect-is-an-indexed-draw-runs-it inherits buffers. The 27 committed cases with a command buffer or a pipeline state, by requirement (a case can raise several): - indirect_compute_commands: 12 - indirect_draw_types: 12 - host_encoded_indirect_commands: 10 - indirect_command_inheritance: 7 - argument_buffer_pipeline_state: 4 Tests: - requirement.rs: the new variants are in ALL, stop only the candidate, and are the runtime's limit. - engine_case_families_follow_the_case_literals: the runtime's form raises nothing, and each other form raises exactly its own requirement. - committed_command_buffer_and_pipeline_state_cases_refuse_by_their_requirements (new): eight committed cases refuse at preparation, with no device, by exactly their requirements. It replaces five tests of the own context's replay and pipeline-state mapping, which these cases no longer reach. - the_census_refuses_command_buffer_cases_by_their_requirements (new integration test): it replaces the census test of replay variants. - The case-literal tests and the argument-buffer-member tests now assert the refusal, or drop the command buffer and pipeline state they used to map. docs/VALIDATION.md names the five requirements. Verified: gate m3-max-63557 (homelab-um870-1) at c38044230b, the tree of this commit: fmt, clippy (all features, --cfg m2v_gpu, --cfg m2v_cpu_icd), Rustdoc and doctests of metal2vulkan-validation passed, and its nextest suite passed (1337 tests). Earlier runs on the same branch (m3-max-63495, m3-max-63532) found the tests fixed above. |
||
|
|
1d79c26b7a |
Validation: a render case's argument buffers draw through the runtime
What: runs_render_through_runtime no longer keeps a vertex or fragment case whose function takes
an argument buffer of buffers, textures or samplers on the executor's own context, and it routes a
case that observes an argument-buffer buffer or texture. runtime_render makes each stage's
argument-buffer members the way a kernel's run makes them (platform/runtime.rs):
- each member buffer is a Shared buffer of its bytes;
- each member texture and sampler comes from runtime_textures, with the usage the function
declares of its field (RuntimeDraw.member_usages, engine::runtime_member_usages);
- each owner holds every member's gpuAddress or gpuResourceID at its field
(argument_buffers::owner_bytes);
- the render encoder uses each member buffer and texture for reading and writing
(use_resource).
An argument-buffer buffer output reads back through RenderFinals.argument_buffer_buffers, and an
argument-buffer texture output reads back through runtime_textures::read_back. An argument
buffer's pipeline state or indirect command buffer still keeps the case on the own context.
ENGINE_EXECUTOR_ABI goes to vulkan-engine-v205, because these cases' recorded rows came from the
own context.
What moves: 5 committed fragment cases.
- Public (4): sixteen-overlapping-triangles-update-a-raster-ordered-argument-buffer-member,
sparse-sample-of-an-argument-buffer-texture-returns-its-value-where-resident,
sparse-sample-of-an-argument-buffer-texture-states-it-resident,
sample-in-a-fragment-through-a-sampler-held-beside-its-texture-in-an-argument-buffer.
- Private (1): sample-the-slice-a-runtime-index-picks-from-an-argument-buffer-texture-array.
The other 23 render cases with argument buffers carry visible_function_table (22) or
texture_buffer (1) and run on Metal alone.
Verified on lavapipe, each case through corpus-vulkan against the committed Apple M3 Max macOS
27.0.1 row. Before: own context at
|
||
|
|
e6e70666ed |
Validation: delete the own-context arms of the nine refused families
What: since the refusal rows ( |
||
|
|
cf87db0fb7 |
Validation: a fragment case of no attachment draws through the runtime
What: runs_render_through_runtime no longer keeps a fragment case with no color target and no
depth/stencil attachment on the executor's own context. runtime_render draws it in the oracle's
pass of no attachment (metal::platform): renderTargetWidth and renderTargetHeight 1, and
defaultRasterSampleCount the case's raster samples. The runtime builds such a pass as one
dynamic rendering of no attachment, its area and samples from those three fields. The routing
function's stale comment ("the runtime makes no pass without one") goes, along with the matching
VALIDATION.md sentence. ENGINE_EXECUTOR_ABI goes to vulkan-engine-v203, because these cases'
recorded rows came from the own context.
Executor code removed: multisampled::attachmentless_support and its call in the own context's
Targets::make, the framebufferNoAttachmentsSampleCounts check of a multisampled pass without
attachments. Nothing else reaches it now. The translator already refuses such a pipeline itself
(pipeline/graphics.rs sample_count_properties: RasterSampleCount needs
FramebufferNoAttachmentsSampleCount(N)), and the own context compiles before it makes targets,
so a --profiles-layer run still refuses typed.
What moves: 16 committed cases.
- Public (15): coverage-loop-records-each-sample-at-2x and -at-4x,
coverage-loop-sample-varying-at-2x, coverage-loop-union-of-runs-at-2x and -at-4x,
fragment-device-and-constant-pointer-integer-differences, msl-4-1-fragment-seq-cst-atomics,
coverage-and-pixel-center-read-by-each-run-at-4x, coverage-beside-a-sample-varying-at-2x and
-at-4x, coverage-beside-the-pixel-center-ored-over-its-runs-at-4x,
coverage-read-by-each-run-of-a-memory-writer-at-2x and -at-4x,
coverage-read-by-each-sample-run-at-2x and -at-4x.
- Private (1): void-fragment-no-writes.
- The 17th attachment-less fragment case, gaussian-splat-blended-over-an-authored-imageblock,
has an explicit imageblock and stays on the own context.
Verified on lavapipe (msi, no GPU), each case through corpus-vulkan against the committed
Apple M3 Max macOS 27.0.1 row, before at
|
||
|
|
cb6d9e8b1b |
Validation: a cube array texture runs through the runtime
What: engine::runtime_texture no longer keeps a cube array texture off the runtime, so a kernel
or render case binding one runs through metal2vulkan-runtime's public API like any other routed
case. runtime_textures already makes cube arrays as the oracle does: arrayLength counts cubes, and
each face slice is written with replaceRegion. A texture buffer still keeps its case on the
executor's own context. ENGINE_EXECUTOR_ABI goes to vulkan-engine-v202, because these cases'
recorded rows came from the own context.
Why: the runtime makes cube-array images and views (imageCubeArray is in its floor), so the
executor kept them on its own context only by its own choice.
What moves: 13 committed cases.
- Public (12): explicit-cube-gradient-combination-table,
explicit-cube-gradient-component-combination-by-ratio,
explicit-cube-gradient-component-combination-fine,
explicit-cube-gradient-turning-points-and-threshold,
explicit-cube-gradient-minification-threshold-per-face-and-axis,
gradient-samples-and-comparisons-of-3d-cube-and-depth-textures,
lod-queries-of-2d-array-3d-cube-and-depth-textures,
anisotropic-cube-gradients-along-face-columns, anisotropic-cube-gradients-along-face-rows,
sample-and-query-an-argument-buffer-cube-and-count-a-cube-array,
depth-cube-and-cube-array-reads-at-32-and-16-bit-coordinates, cube-depth-and-comparison-gathers.
- Private (1): sample-the-second-probe-of-a-cube-array-whose-slices-disagree.
- The two other cases with a cube array also bind a texture buffer and stay on the own context:
size-queries-of-multisampled-buffer-and-depth-cube-textures and its -at-four-samples.
The own context's cube-array code stays: the CubeArray arm beside Cube that makes an image
cube-compatible (plan_resources). A --profiles-layer run still reaches it, because a restricted
run keeps every case on the own context, and so do the two texture-buffer cases.
Verified on lavapipe (msi, no GPU), each case through corpus-vulkan against the committed
Apple M3 Max macOS 27.0.1 row, before at
|
||
|
|
d1266e5a5a |
Validation: nine families the runtime does not build are refusal rows naming their requirement
The family map's first commit (the planner's GO): every committed case either runs through the runtime or is a refusal row naming its requirement. Nine families of the cases the executor still ran on its own context have no runtime call, or a runtime refusal at creation on every device. Each is now a ToolingRequirement of Limit::Runtime that stops only the engine's candidate and keeps its cases Metal-qualified. Each is raised from the case's literals in executor_contract::case_requirements, by the template of SeparateDepthStencil and RenderFunctionTable, so no census row carries one: - kernel_function_table (303 cases): no setVisibleFunctionTable:atBufferIndex:; the make is Gap::KernelInput of Slot, held by rt's device test kernel_input::a_visible_function_table_kernel_is_refused_as_a_slot; - kernel_imageblock (51, every tile-pass case among them): no setImageblockWidth:height:; the make is Gap::KernelInput of RuntimeFact ImageblockSize (rt's an_explicit_imageblock_kernel_is_refused_as_its_named_runtime_fact); no tile function is built; - texture_buffer (28): new_texture refuses one (Gap::TextureBuffer), held both ways by engine_compute::a_texture_buffer_is_refused_where_a_2d_texture_is_made; - fragment_imageblock (21): refused at creation on every device (Imageblocks, NotImplemented); - sparse_texture (15): the texture descriptor has no sparse form; - rasterization_rate_map (12: 8 render-pass maps, 4 kernel cases whose buffers hold map data): rt makes no rate map and its pass takes none; - kernel_acceleration_structure (10): rt makes no acceleration structure and binds neither it nor an intersection-function table; - kernel_stage_input (9): Gap::KernelInput of StageIn (rt's a_stage_in_kernel_is_refused_as_stage_in); - dynamic_vertex_stride (1): setVertexBuffer:offset:attributeStride:atIndex: is not built. The nine raise on 450 committed cases with no overlap. No case is deleted. ToolingRequirement::qualifies_on_metal is now exactly Limit::Runtime (it listed the same eight). The compile census (authored-compile.tsv) is due a bless here: every cell of the 450 cases moves to its requirement. All read `compiled` today except 6 texture_buffer cases already `ulong_texture_atomic` (now `ulong_texture_atomic,texture_buffer`) and 6 kernel_acceleration_structure cells that read RayTracing device_capability_missing. 4 ICB cases replay a template of these families, which compute_case/render_case now refuse before the replay check: their `replayed_template_resources` becomes the template's family: a-kernel-encodes-the-stage-in-regions-of-its-dispatches and host-encoded-stage-in-regions-and-attribute-strides-of-executed-commands (kernel_stage_input), a-kernel-encodes-the-imageblock-sizes-of-its-dispatches (kernel_imageblock), host-encoded-vertex-attribute-strides-of-executed-draws (dynamic_vertex_stride). The authoring-capabilities census is untouched: Limit::Runtime rows close without a candidate, and executor_contract.rs is a classifier input, so cached triage recomputes. Tests that mapped these families through the own context now meet the refusal. They are rewritten to assert it: the requirement and case-literal tests, the_case_maps_onto_the_binder_or_names_the_gap, references_link_and_function_tables_are_typed_gaps, the sparse and rate-map case tests, and the public argument-buffer case, which now selects the cases with no requirement. Or they are removed with the mapping they held: stage inputs, acceleration structures, the tile pass, fragment imageblock cells, the public stage-input, ray, tile and fragment-imageblock cases, the kernel table's integration case, and the dynamic-stride device test. The device-worker test's case is now single-thread-store-constant: its acceleration-structure case is refused before the digest check it holds. The own-context arms these families used are deleted in the next commit. Owed answer: of the cases that route today, 0 render into one combined depth-stencil texture using both aspects. The case files hold only Depth32Float textures, the 5 both-aspect attachments carry separate_depth_stencil, and the route takes one aspect. Verified: probe at |
||
|
|
d54a1a5568 |
Validation: the MoltenVK backend, its C3 venue and the old engine's baseline are deleted
The validation executor's Vulkan side runs on Linux through native ICDs and the runtime. No lane records MoltenVK rows any more, and no MoltenVK venue is wanted. This commit deletes the MoltenVK backend from the store up. Before the deletion, git grep at |
||
|
|
79d95a2887 |
Validation: the robustness-off leg and its slots are deleted
The ruling Q3: the validation executor runs each case in one context, which enables every robustness feature its device states. Its second leg (every robustness feature off, the ID@engine+robustness-off slots) measured an encoding that metal2vulkan-runtime never runs, since the runtime's floor fixes the robustness it enables. The tier table keeps both of its compiles: they are translator coverage of what the runtime ships, so coverage::Leg stays as the tier table's type alone. Deleted: - the executor's leg: corpus-vulkan's and corpus-moltenvk's --robustness-off, the device worker's leg, engine_slot's leg (an engine slot is ID@engine or ID@engine@P; an ID@engine+robustness-off is no engine slot), the enable lists' leg (engine_list enables what the description states), and the leg in a row's environment and census (ExecutedCensus.leg, environment.robustness.leg) with its validation; - the batch's legs: corpus-vulkan-batch takes no --leg. Its passes are Pass::Engine and Pass::Metal, so a done-list line names "engine" where it named "stated", and a log is CASE.engine.txt. Its report lines carry no leg= field, and batch-slowest names pass=engine; - the authored compile census's robustness-off profiles: a profile is its committed stem (ProfileStem, which was ProfileLeg); a label with a "+" names no profile. corpus/authored-compile.tsv loses its 9 +robustness-off columns mechanically. Every other cell stays, and the reader takes the new layout in this commit. The rows are re-blessed at the next named pin. the_committed_expectations_parse holds the file to what a bless renders. No test is expected to read red until the bless, since no kept cell changed (unaudited until development's census runs); - C3's legs: a venue lists no legs and has one slot (c3-venues.json drops its legs fields). c3-reviewed.json drops the 12 observations recorded in robustness-off slots; - the committed rows of the +robustness-off slots: 193 rows and refusals out of corpus/observations, which empties and removes 44 shards. "leg":"stated" is stripped from the remaining rows' census and environment; - scripts/qualify-public-cases' second run per case, and scripts/rerecord-venue's --leg; docs/VALIDATION.md's robustness legs. corpus-triage's usage, corpus-status' --c3 help and the census's file comment say "profile" where they said "profile-leg". Verified: cargo fmt. The compile gate follows as a potluck job. |
||
|
|
b0e351ffbc |
Validation: multisampled passes and textures run through the runtime
Family H of the executor's move onto metal2vulkan-runtime: a render case of more samples (raster_sample_count), and any case binding a multisampled texture, now runs on the runtime's public API, filled and read back as executor_contract::multisample states for both executors. Metal uploads and copies no multisampled texture, and neither does the runtime. So runtime_multisample fills each slice with one draw of the owned sample_fill fixture (fixtures/public/engine/sample_fill.metal, compiled by scripts/regen-air-fixtures), whose fragment runs once per sample (sample_id) and writes that sample's texel from a buffer: a color texel through an unsigned-integer view of its texel size (the texture made with PixelFormatView usage), so its bits cross unconverted, a Depth32Float one as depth(any) under an always-passing depth test that writes (a depth outside [0, 1] refused as depth_outside_unit_range, as runtime_depth refuses it). A multisampled stencil aspect holds one value in every sample (uniform_stencil), which the case's pass clears it to. After the draw a dispatch of the fixture's sample_read kernels reads every sample, one threadgroup each, as whole words in the attachment layout (unpack_words), unresolved, as the oracle's sample_readback does. runtime_textures makes a multisampled texture Private (Metal keeps none Shared), for rendering and, if color, for views of another format, and fills it by those draws. runtime_render makes each attachment of a multisampled pass a Private Type2DMultisample texture of the pass's samples, with a texture index for its read's view, and reads every sample back for the comparison. engine::runtime_texture no longer keeps a multisampled texture off the runtime, and runs_render_through_runtime takes any sample count. An attachment of both aspects still carries separate_depth_stencil. What moves: of the committed cases, 49 multisampled passes (all public; 2 with both aspects keep the requirement) and 8 cases with a multisampled input texture (7 public kernel cases, 1 private fragment case). ENGINE_EXECUTOR_ABI to vulkan-engine-v197. The new owned fixture adds rows to the golden tables, re-blessed on development. Tests: engine/tests.rs routes a multisampled pass, multisampled depth and stencil attachments and a kernel's multisampled texture through the runtime; engine_render.rs's each_sample_of_a_multisampled_target_holds_its_own_invocation draws sample_rate_mask_in into 4 samples and checks each sample's index, on Linux through the runtime too, bytes equal to the executor's own; engine_textures.rs's depth_and_multisampled_textures_read_their_authored_texels runs through the runtime on Linux. Built and run in the lane's compile job (ids sent with the sha); not yet built when committed. |
||
|
|
6593e998d1 |
Validation: tessellation cases draw their patches through the runtime
Family I of the executor's move onto metal2vulkan-runtime. A post-tessellation vertex case's patch draw, which the Metal oracle encodes as setTessellationFactorBuffer: at executor_contract:: tessellation's offset and instance stride and drawPatches: with no patch index buffer, now draws through the runtime's public API the same way: the factors a Shared buffer bound by set_tessellation_factor_buffer at FACTOR_OFFSET and FACTOR_INSTANCE_STRIDE, then draw_patches with the case's control points, patch start, patch count, instance count and base instance and no index buffer. engine::runs_render_through_runtime takes an Assembly::Patches case whose draw is DrawCall::Patches with neither a patch index buffer nor a control-point index buffer (the runtime's patch index buffer is Gap::Draw of PatchIndexBuffer); the authored TessellationDraw spells neither, so every committed tessellation case meets the structure. runtime_render's drawn() encodes the patch draw; a patch draw that reached it with an index buffer fails the run, never draws other patches. What moves: the 25 committed tessellation cases (23 public, 2 private), one of them with attribute-buffer out-of-bounds targets of control-point form, whose facts runtime_bounds::drawn reads as before. ENGINE_EXECUTOR_ABI to vulkan-engine-v196: these rows' executor changes. Tests: engine/tests.rs a_plain_draw_and_only_one_runs_through_the_runtime routes a patch draw without an index buffer and keeps one through a patch index buffer, and a patch draw of a primitive assembly, on the executor's own context; engine_render.rs's a_back_culled_patch_and_its_mirror_leave_exactly_one_drawn draws each of its patch draws through the runtime on Linux and compares the executor's own bytes. Built and run in the lane's compile job (ids sent with the sha); not yet built when committed. |
||
|
|
6af76cf309 |
Validation: separate depth and stencil attachments are the runtime's limit
A fragment case whose depth/stencil attachment holds both aspects is
drawn by the Metal oracle into Metal's separate Depth32Float and
Stencil8 textures, attached to one pass: plain Metal on every Mac. The
runtime does not build that form yet. It renders into no separate depth
and stencil textures in one pass (Gap::RenderPass of DepthStencilViews,
and its pipeline state Gap::RenderPipeline of DepthStencilFormats), both
among the known gaps its README states. The planner's ruling: record
these rows as the runtime's limit with that typed gap, by the
function-table mechanism; the doc comment states the gap as unbuilt in
the runtime, not as Metal's.
ToolingRequirement::SeparateDepthStencil ("separate_depth_stencil"):
Limit::Runtime, it stops the engine's candidate and keeps its cases
Metal-qualified (qualifies_on_metal). The case checker raises it from
the case's literals (executor_contract::case_requirements: a vertex or
fragment case's depth/stencil attachment with both initial aspects),
never from a source's structure, so no census row carries it.
executor_contract.rs is a classifier input, so every cached triage
recomputes. If the runtime builds the form, the requirement goes in the
same commit.
What lost execution: of the committed cases, 5 fragment cases hold
both aspects: the 3 of family G (one sample, observing stencil) and 2
multisampled ones (family H), all of which ran on the old executor
until now.
Tests: requirement.rs's
a_separate_depth_stencil_attachment_stops_only_the_candidate and both
requirement lists; executor_contract's case test (a fragment case's
attachment of one aspect raises nothing, of both raises it alone).
Verified: cargo fmt; the compile gate follows as a potluck job.
|
||
|
|
cca476549f |
Validation: a draw's depth/stencil attachment of one aspect runs through the runtime
Family G. A render case with a depth/stencil attachment stayed on the executor's own context. A vertex or fragment case whose attachment has one sample and one aspect now draws through the runtime (engine::runs_render_through_runtime), observing a buffer, a texture, a color target, the attachment's aspect or nothing; a fragment case with the attachment and no color target renders, as the attachment is the pass's. The attachment is made as the oracle makes it (Metal's separate Depth32Float and Stencil8, Shared, of RenderTarget usage): - a Depth32Float is filled by a draw of its depths (runtime_depth), as a 32-bit float depth texture is, since the runtime takes no upload of one (Gap::FloatDepthUpload); a depth outside [0, 1] stays DepthOutsideUnitRange; - a Stencil8 is written from its bytes with replace_region. The pass loads and stores it; the draw's depth-stencil state, stencil references and pipeline depth and stencil formats were already the oracle's. The final aspect is read back with get_bytes into the run's RenderFinals, from which the depth or stencil output is selected. An attachment of both aspects is the oracle's two textures, which the runtime renders into in no one pass (Gap::RenderPass of DepthStencilViews; its pipeline Gap::RenderPipeline of DepthStencilFormats): such a case, and one of more samples (family H), stays on the executor's own context. Rows: of the committed cases, 21 fragment cases are family G's (one sample, the rest of E/F's structure): 16 stencil-only observing stencil, 2 depth-only (one observing depth, one, private, a color target), and 3 of both aspects observing stencil, which stay where they were. Expected: the 18 one-aspect cases run through the runtime; the family G proof reads them. ENGINE_EXECUTOR_ABI to vulkan-engine-v195. Tests: a_plain_draw_and_only_one_runs_through_the_runtime (a depth or a stencil attachment, observed or not, routes; one of both aspects or of 4 samples does not); the device test a_fragment_case_writes_its_depth_and_stencil_attachment draws each aspect alone through the runtime on Linux (depth 0.5 over 1.0, stencil 7 over 0xab). Verified: cargo fmt; the compile gate and the family G proof follow as potluck jobs. |
||
|
|
9a28de4736 |
Validation: an indexed draw past its index buffer is the runtime's limit
The runtime refuses an indexed draw whose indices leave its index buffer
as Refusal::IndexBufferOffset, as Metal's validation stops the draw
(render_encoder's draw path checks offset + count * size against the
buffer's length; the runtime's README states the refusal among those
Metal's validation makes). A case that declares a draw's index buffer an
out-of-bounds target is such a draw, so no run through the runtime draws
it. The planner's ruling: record these rows as the runtime's limit with
that typed refusal, by the function-table precedent.
ToolingRequirement::IndexBufferPastEnd ("index_buffer_past_end"):
Limit::Runtime, it stops the engine's candidate and keeps its cases
Metal-qualified (qualifies_on_metal). The case checker raises it from the
case's literals (executor_contract::case_requirements: an out-of-bounds
target of OutOfBoundsResource::IndexBuffer), never from a source's
structure, so no census row carries it. executor_contract.rs is a
classifier input, so every cached triage recomputes.
What lost execution: of the committed cases, the 2 public index-buffer
cases d900a10225 and da4185d2a2, which ran on the old executor's padded
copy until now. The old executor's padded index copy is now reached by
no committed case; it goes with the old executor's tables.
Tests: requirement.rs's an_index_buffer_past_its_end_stops_only_the_candidate
and both requirement lists; executor_contract's case test (a vertex
case's index-buffer target raises it alone, an attribute-buffer target
raises nothing).
Verified: cargo fmt; the compile gate follows as a potluck job.
|
||
|
|
4e465d811a |
Validation: a draw's attribute-buffer out-of-bounds target runs through the runtime
A render case with an out-of-bounds target stayed on the executor's own
context. A vertex or fragment case whose every out-of-bounds target is
an attribute buffer now draws through the runtime
(engine::runs_render_through_runtime), and its facts are read before the
state is made (runtime_bounds::drawn): the translator's compile of the
state's descriptor on the runtime device's own translator
(Device::compile_render_pipeline, whose stage inputs are the ones the
runtime lowers each stage under, render_pipeline_key of the variant key
its state takes), read by engine::draw_out_of_bounds_run, which now takes
the translator Device for its policy.
The runtime's floor enables no buffer robustness: its README states that
a vertex fetch outside its buffer returns what the device gives. So
fixed-function vertex input on a profile without buffer robustness is
contained as vertex-input:unchecked (Check::Unchecked; it was an Err,
"which contains nothing"), and the case is refused before the make as
not_supported{uncontained:unchecked vertex_input}. A contained target of
such a draw would need guards around its vertex buffers, which the draw
does not place, so it is refused as executor_not_implemented; no routed
case reaches that.
Rows: of the 4 render out-of-bounds cases, 01b45f7c10 (a vertex
attribute fetched past its vertex buffer) is expected to move from the
old executor to not_supported{uncontained:unchecked vertex_input}. The 2
index-buffer cases (d900a10225, da4185d2a2) stay on the executor's own
context: the runtime refuses indices past the buffer
(Refusal::IndexBufferOffset), as Metal's validation does, which the
facts do not state yet. The control-point case a95f41be73 is a
tessellation draw, which stays there too. On the old executor, the
robustness-off leg's fixed-function attribute target is now the same
refusal instead of a failure.
ENGINE_EXECUTOR_ABI to vulkan-engine-v194.
Tests: a_draws_targets_are_contained_by_their_fetch (every committed
profile contains the fixed-function attribute, unchecked exactly where it
checks buffers in the shader, which a committed profile does);
a_plain_draw_and_only_one_runs_through_the_runtime (an attribute target
routes, an index-buffer target does not).
Verified: cargo fmt; the compile gate and the family D proof follow as
potluck jobs.
|
||
|
|
00e254ac29 |
validation: an out-of-bounds target is contained as its module's domains decide
containment read a module's facts as if every device took the resident
table and the handle table. The runtime's device takes the identity
domains (DevicePolicy), so a kernel case through the runtime whose target
is a buffer an argument buffer points to, or an argument buffer's texture
array, failed: the module has no resident roots and no handle table.
ModuleFacts now carries the policy of the device the module was compiled
for (Device::policy: the runtime's translator, the executor's own device,
and DevicePolicy::default() for the committed tier profiles, which are
made with it).
- Under the identity pointer domain a pointer loaded from memory is the
address it holds, used as given: the runtime's README states that an
access through a pointer loaded from memory is not checked. Such a
target is contained as device-address with the new Check::Unchecked,
and out_of_bounds_run refuses every case with an unchecked target
before the make, as NotSupported::Uncontained with the new `unchecked`
forms (serde default):
not_supported{uncontained:unchecked loaded_pointer}.
- Under the identity handle domain an argument buffer's texture-array
index is the resource id's index masked onto the descriptor arrays
(the new Medium::ResourceId, resource-id:shader), whose elements no
live texture owns are null descriptors: its read rule is
ResidentTexels, as the handle table's.
ENGINE_EXECUTOR_ABI to vulkan-engine-v193.
Rows: the family D proof at
|
||
|
|
34c8f0e67c |
Validation: a kernel out-of-bounds case runs through the runtime, its facts every lowered variant's
A kernel case with out-of-bounds targets now routes through the runtime like any other kernel
case of its structure (engine::runs_through_runtime no longer excludes one). Before the state is
made, platform::runtime_bounds lowers each KernelVariant of the case's kernel on the runtime
device's own translator (rt::Device::translator), under LoweringInputs::kernel_variant of the
inputs kernel_inputs_read gives the descriptor's: the inputs the state lowers each of its modules
under, which the runtime's own test pins. A variant the translator refuses is one no dispatch runs.
Each lowered module's facts (its slots, fetches, resident roots, handle table and strategy
census) give the run's out-of-bounds facts through engine::out_of_bounds_run, as the executor's
own context reads its module's. Where two variants give different facts, which module a dispatch
runs would decide the case, so it is refused before anything is made:
NotSupported::Uncontained now carries the variant that differs (None for the device's robust
forms, as before), "not_supported{uncontained:variant PartialThreadgroups}".
Each guarded target (a buffer, or an argument buffer's) is a buffer at the runtime's placement
alignment inside a Shared block of its own, between guards of its declared reach (at least
MIN_GUARD), every guard byte GUARD_FILL, read back through a buffer over the whole block after
the dispatch: GuardCount::escaped, and past_end 0 (the buffer is all its bound memory). The
row's census records the facts with the counts.
Texture-buffer cases stay on the executor's own context (the runtime makes no texture buffer),
and so do the render out-of-bounds cases (vertex fetches); stage inputs do not route.
Tests: the routing test asserts an out-of-bounds kernel case routes; the device test
a_device_buffer_accessed_past_its_end_is_contained_through_the_runtime runs the public
ob1_storage_buffer case through the runtime (loads past the source read zero, stores past the
output do nothing, no guard byte changes, each target DeviceAddress / Shader). ENGINE_EXECUTOR_ABI
vulkan-engine-v192. docs/VALIDATION.md says how the facts are read.
Verified: cargo fmt; the compile gate and lavapipe suites, then the family's proof, follow as
potluck jobs.
|
||
|
|
1687f8fc38 |
Validation: a 32-bit float depth texture is filled by a draw through the runtime, and a depth outside [0, 1] is the runtime's limit
The runtime takes no upload of a 32-bit float depth (Gap::FloatDepthUpload, which its own texture and blit tests hold both ways). Kernel and render cases that bind a Depth32Float texture stayed on the executor's own context. Now they run through the runtime: the run fills each such texture by a draw, as a guest fills one. The fill: - The owned fixture depth_fill.metal is regenerated with scripts/regen-air-fixtures on the M3 (m3-max-61107). It holds a fullscreen vertex function and a fragment function that writes depth(any) from a buffer of texels by pixel. - platform::runtime_depth draws one pass per level and slice into the texture's depth attachment, under an always-passing depth test that writes. The texture is made with RenderTarget usage beside its declared usage. DepthOutsideUnitRange becomes the runtime's limit (Limit::Runtime) and qualifies on Metal, as ruled. A draw writes depths clamped to the viewport's [0, 1], so no runtime call puts a NaN, a negative value or a value above 1 where Metal's texel holds it. The case checker now raises the requirement from the case's literals on every device (executor_contract::case_requirements, via depth_range::depth_range_requirement). The literals checked are each Depth32Float texture, each texture-array element, each argument buffer's texture, and the depth attachment's initial depth. The old executor's device-gated check (plan_resources::require_depth_range, which read VK_EXT_depth_range_unrestricted) and its two call sites are deleted. The fill refuses such a depth too, typed, so it never clamps one silently. No source fact carries the requirement, so the source census is unchanged. Of the committed public cases, 7 kernel cases close as runtime-refused (4ac0d4322d, 5d9f284f87, 70064cea52, f04e9b48c8, 59b3a9a43e, 6955da3062, b3d8e09b92). Their Metal rows stay as committed. ENGINE_EXECUTOR_ABI goes to v191. Tests: - Unit: the requirement from each literal kind, and its limit, stops and evidence gap. - The Runtime and qualifies_on_metal lists. - Routing: a Depth32Float texture now routes. - Device: a_float_depth_texture_is_filled_by_a_draw_and_reads_back_as_authored. Both runs read eight depths of a 4x2 texture back exactly, and through the runtime a depth of 2.0 is refused as depth_outside_unit_range. - The device test of the old gate is deleted with the gate. |
||
|
|
8528603a73 |
Validation: a vertex or fragment case of one sample draws through the runtime
A render case of one sample now draws through metal2vulkan-runtime's public API on Linux, in the stated leg and with no profile restriction, as a consumer draws it. That covers its own stage's buffers, bound textures and samplers, function constants and linked functions, and its generated companion. It also covers vertex buffers at static strides, Shared 2D color targets loaded and stored by the pass, the oracle's depth-stencil state, cull mode and winding, and one direct or indexed draw of primitives. The case observes a buffer, a texture, a color target or nothing. A rasterization-disabled vertex case renders into the oracle's 1x1 R8Unorm attachment, which its pipeline declares at index 0, as the oracle's does. engine::runs_render_through_runtime decides the route from the case's structure alone, naming every RenderCase and StageResources field. These keep a case on the executor's own context: - a depth/stencil attachment; - more samples; - layered rendering; - a dynamic vertex stride; - an argument-buffer member, object or command buffer; - a function table; - tessellation; - an imageblock; - a rate map; - an out-of-bounds target; - a fragment pass with no color target (the runtime makes no pass without an attachment, Gap::RenderPass). The kernel route's attempt, validation log, device, ceilings, sampler numbering, buffers, submission and row are now shared helpers in platform::runtime. runtime_textures makes one function's textures and samplers at the run's next indices, so both stages of a draw take disjoint ones. ENGINE_EXECUTOR_ABI goes to v190: render rows of the routed shape now record the runtime's answer. Tests: - a unit test pins the routing both ways; - three device tests (the passthrough fragment, the observed vertex at its varying and its position, and the rasterization-disabled vertex store) run the runtime arm on Linux against the same expected bytes. |
||
|
|
dc21cd66c7 |
Colour groups go: no render variant draws a group of a pipeline's color attachments
A device draws to at most the lesser of its maxColorAttachments and maxFragmentOutputAttachments color attachments at once. A pipeline with more (or one at an index at or past that count) was compiled as color groups: a variant per group (VariantKey::color_group) whose fragment function wrote the group's colors at locations 0.., with the group's attachments alone in its graphics state, and the runtime drew each group in a pass of its own. The runtime's floor requires 8 of both limits (floor.rs), Metal's count, so no device it runs on takes a group, and it asks for every render variant with VariantKey::new(); nothing in it reads GraphicsState::color_group. The groups, their inputs and their note are deleted. Such a pipeline is now refused where it was already refused without a group: InterfaceComponents at MaxColorAttachments (link) or at MaxFragmentOutputAttachments (the fragment's outputs). Removed: - pipeline/compile/color_group.rs (group, descriptor, entry, refusal) and the compile layer's use of it: FragmentPass::color_group, InputsFrom::color_group, grouped_entry, and the grouped descriptor in compile_render_pipeline_keys and render_pipeline; - the inputs and keys: ColorGroup (with of, width_on, colors, groups, location), VariantKey::color_group, LoweringInputs::color_group and its key bytes, the pipeline key's " color_group N" field (variant_fields); - link: RenderLinkInputs::color_group, LinkInputs::render_variant's group parameter, and link's group check (a fragment stage of another group, and the per-group refusals); - the state: GraphicsState::color_group and StageIo::color_group; - the invariance: the stage plan's invariant_fragment_outputs and its Invariant decorations of FragDepth, SampleMask and FragStencilRefEXT; the module builder now decorates Position and ClipDistance alone, the outputs nothing else made invariant; - PrecisionNote::ColorAttachmentGroups, its conformance Degradation, its comparison allowance and its catalogue entry in docs/API.md; - validation: the census's color_groups and color_limit, which translated a fragment function of more colors than the profile draws as one module a group, and with them PendingL3::groups, PendingModule and the L3 stage's later modules: an attempt is one module again. ENGINE_CENSUS_VERSION 8; - the runtime's translator_fields row for color_group. Tests: - engine_color_groups goes, and engine_primitive_ids' color_groups_share_the_vertex_function_s_id. - validation's a_fragment_function_of_more_colors_than_the_floor_translates_in_color_groups becomes a_fragment_function_of_more_colors_than_the_device_draws_is_refused: on a four-color profile cg_five, cg_seven, cg_sparse and cg_counts keep their limit refusal; on lavapipe each translates. - the builder's invariance test: FragDepth is refused like PointSize. - api_tests, api_surface and the variant key's debug text lose their rows. The color_groups and color_groups_fetch fixtures stay (engine_dead_reads, pass_attachment_pairs and the fixture tables read them). docs/API.md's paragraph on groups now states the two limit refusals; docs/VALIDATION.md's census row loses its sentence. api_signatures is blessed; docs/REFUSALS.md is regenerated. SEMANTICS_VERSION 2228, ARTIFACT_FORMAT_VERSION 573 (placeholders; main renumbers). SEMANTICS: a pipeline that took groups is refused, and the note goes. ARTIFACT: the codec loses ColorGroup, StageIo's and GraphicsState's fields and a PrecisionNote variant. RUNTIME_VERSION stays: the binder never read a group, and the runtime pin does not move. Consumer check (consumer-uses.sh, consumer development 0140a12682, 60 refs): 0 hits (code) for ColorGroup, color_group, width_on, render_variant and color_groups. ColorAttachmentGroups: 0 on development; used in crates/reims-vgpu-vulkan/src/answer.rs on 37 of the consumer's steelbrain/* branches, a crate its development no longer has. Verified: m3-max-61080 (msi) at the tree before the import fix: nextest of metal2vulkan, -conformance, -validation and -runtime, 5878 of 5879 passed; the one failure is the_old_render_descriptor_key_keeps_its_value, which moves with SEMANTICS_VERSION (main pins it at a named pin). Its clippy step found validation's InternalError import unused; m3-max-61112 (um790) at this commit's tree: fmt, clippy and Rustdoc green. States-only plays on lavapipe of the probe player built at the change (steelbrain/cutxlate-cgplay, m3-max-61082): m3-max-61087 to 61091, 61 runs over the 36 streams, render 502920 states made and 0 refused, compute 108189 made and 0 refused, the counts of the plays before the change. |
||
|
|
5b653bc1d4 |
Validation: a kernel case's argument buffers of buffers, textures and samplers run through the runtime
What: runs_through_runtime now routes a kernel case whose argument buffers hold buffers, textures
the runtime makes (`runtime_texture`) or samplers, observing a buffer, a texture, an
argument-buffer buffer or texture, or nothing. A pipeline state, a command buffer or a
rasterization-rate map in an argument buffer still keeps the case on the executor's own context.
How, as the Metal oracle does (metal::platform::argument_buffers):
- Each argument-buffer buffer is a Shared buffer of its bytes.
- Each argument-buffer texture is made as a bound one, with the usage its AIR member declares
(runtime_member_usages), at an index of the run's texture grant after the bound textures.
- Each argument-buffer sampler is its argument_sampler_descriptor at an index of the sampler
grant below the bound samplers.
- The owner's bytes hold each member's gpu_address or gpu_resource_id().to_bits() at its field
(engine::argument_buffers::owner_bytes), written before the owner is made, as a program writes
them.
- The encoder uses each member buffer and texture for reading and writing (use_resource).
- An argument-buffer buffer output reads the member's final bytes; an argument-buffer texture
output is read back as a bound texture's.
ENGINE_EXECUTOR_ABI is now vulkan-engine-v189. docs/VALIDATION.md's "Through the runtime" names
argument buffers.
Tests:
- The routing test routes a case of all three member kinds under both member outputs, and keeps
a texture-buffer member off the runtime.
- Three device tests run on the executor's own context and, on Linux, through the runtime:
- selected_member_texture: two argument-buffer textures chosen per thread;
- argument_sampler_sample: an argument-buffer sampler sampling its member texture;
- ob2_loaded_pointer, in bounds: an argument-buffer buffer loaded into `out` and stored
through, observed in the member.
Verified: in the lane's report (the compile gate and the family's proof, its 20 committed cases
on lavapipe against committed Metal, before and after).
|
||
|
|
47d782f3a5 |
Fix forward of 14dca89bf9: lint, a float depth stays on the executor's context, a format the device lacks is not_enabled
What: the compile gate m3-max-60907 at 14dca89bf9 failed clippy twice and Rustdoc twice:
- `usage = usage | ...` becomes `usage |= ...`;
- `dispatched` takes its dispatch and threadgroup size as one argument;
- the public docs of `runs_through_runtime` and `RuntimeKernel` named private items as links.
The family's public proof (m3-max-60908, 218 cases on lavapipe against committed Metal, before
and after) showed 17 rows failing through the runtime:
- 15 bind a Depth32Float texture, whose bytes the runtime takes no upload of
(Gap::FloatDepthUpload). The executor cannot fill one, and a guest fills one by drawing.
`runtime_texture` now keeps such a texture on the executor's own context, where these rows
ran before.
- 2 bind R8Unorm_sRGB, which lavapipe's format query lacks. The runtime refuses it as
Gap::TextureFormat; before, the executor's own context recorded not_supported{not_enabled}.
`runtime_error` now maps that gap to NotSupported::NotEnabled with the gap's text. Every
other runtime gap still fails the row.
ENGINE_EXECUTOR_ABI is now vulkan-engine-v188. docs/VALIDATION.md's "Through the runtime" now
names textures and samplers, what keeps a case off the runtime, and the not_enabled mapping.
Tests: the routing test adds a Depth32Float texture, which is not routed. A new unit test
covers runtime_error's two mappings.
Verified: in the lane's report (compile gate and the focused rerun of the 17 rows).
|
||
|
|
fd924dd9c8 |
Census: a requirement the runtime refuses is the runtime's limit, closed without a candidate run
The authoring-capability census stayed open on 66 rows, every one a
requirement whose shape metal2vulkan-runtime refuses: seq_cst_fence (14),
texture_buffer_member (6) and mesh_render_pipeline (46). Each was a tooling
gap (Limit::Tooling), which keeps a row unresolved, though no tooling the
executor could build would run them: the product refuses them.
The ruling is a third limit beside Limit::Metal. Limit::Runtime is the limit
of a requirement whose shape the runtime answers with a typed refusal, or for
which it has no call and the consumer refuses it itself. Its rows are closed
without a candidate run and counted apart: runtime_refused beside
metal_refused, in the summary line and in each executor's stops line. They
stay unresolved only where a tooling gap of their own keeps them open. What
the runtime runs and the executor cannot drive stays Limit::Tooling. This
replaces the first lane's "no new Limit" ruling.
- seq_cst_fence: the runtime refuses the pipeline at its make as
Unsupported{IdentityDomains}. Both ways on lavapipe: the existing
a_seq_cst_fence_is_refused_through_the_runtime_as_its_requirement_says,
and the new a_fence_of_another_order_is_made_through_the_runtime (the same
two stores around an acq_rel fence, made and run, its words checked).
One-off over the census's 14 rows (m3-max-60840, a probe that never
lands): each row's own make through the runtime on lavapipe, with no
input, is the named refusal, not_implemented IdentityDomains, 14 of 14.
- texture_buffer_member: two device tests, each both ways.
a_texture_buffer_is_refused_where_a_2d_texture_is_made: new_texture
refuses a texture buffer as Gap::TextureBuffer and makes a 2D texture of
the same format.
a_texture_buffer_member_is_refused_at_the_make_where_a_2d_member_is_made:
the make of a kernel reading an argument buffer's texture buffer is
refused as Unsupported{IdentityDomains}, and the same read of a 2D member
is made.
- mesh_render_pipeline: the runtime has no mesh call, and the consumer
refuses mesh itself (the runtime README's known gap). Without a call there
is no device test; that README sentence is the guard. The requirement's doc
says the limit flips when a guest's mesh pipeline is built.
- The new owned fixture rlm_runtime_limits (regenerated with
scripts/regen-air-fixtures on the M3, m3-max-60866) holds the acq_rel
fence and the two member reads. A triage test checks the classifier
takes each shape and not its pair.
- The platform's runtime device opening is factored out (opened), so the
device tests can make a texture or a pipeline alone under the validation
layer (on_runtime_device, make_kernel; both test-only).
- The analyzer version is now structural-triage-v85. docs/VALIDATION.md
states the closure. AGENTS.md's census bullet stays true as written.
Verified: the compile gate and the census, both named in the lane's report.
|
||
|
|
b90e0565da |
The floor: from_queries refuses a push window below 256 bytes, the runtime's floor requires 8 fragment outputs, and runtime-floor replaces the profiles below it
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.
|
||
|
|
ba63cf58ca |
Policy arms: the enables tests import DevicePolicy themselves (clippy 59962); docs name what is bounded
The enables module no longer names DevicePolicy, so its tests import it. API.md and VALIDATION.md say the default domains' bounds, and an unbounded threadgroup access, instead of containment and isolation. api_signatures.tsv is regenerated (signatures.py --bless); REFUSALS.md is unchanged. Verified: clippy follows as a potluck job. |
||
|
|
6750bb3c74 |
validation: run plain kernel cases through the runtime's public API
The engine candidate's Vulkan executor runs a kernel case of buffers (device buffer arrays included), threadgroup memory, function constants and linked functions, dispatched by threads or threadgroups and observing a buffer, through metal2vulkan-runtime as a consumer runs it (engine::runs_through_runtime decides it from the case's structure; platform::execute_runtime runs it): Instance, the loader's first device of the kind, Device with the default options, the library and function from the row's AIR with the case's constants and linked functions, one compute pipeline state, one Shared buffer per binding as the oracle makes it (a bound buffer padded to its declared size), one compute encoder, one dispatch, the bounded wait and the readback. Only on the native backend, in the stated leg and without a profile restriction; every other case keeps the executor's own context until its family's landing. The device worker enables VK_LAYER_KHRONOS_validation for the run through the loader's and the layer's variables (core and synchronization validation, every message, one log per process); a device with no active validation tool fails the run, and so does any logged message. The pipeline state's make is held to 500 MiB of peak live allocations (worker::alloc::bounded: an allocation past it ends the process with exit 87 and a stderr line) and 20 s; the driver's creation to the case's bound; every pipeline is made before the submission (prepare_dispatch). The row keeps what the runtime answers: the state's precision notes and the runtime fingerprint (engine::runtime_fingerprint: the product, SEMANTICS_VERSION and the runtime crate's sources, METAL2VULKAN_RUNTIME_CRATE_FINGERPRINT from build.rs). spv_sha256, the status, the census module's subgroup shape, containment and artifact are absent (Option, serde default); the index's staleness accepts the runtime fingerprint as this build's. ReductionOrder: the comparison keeps the note's per-operation allowance. The census strategies of a runtime row are the simdgroup float sums and products the case's AIR calls (check::interface::float_reductions, from the entry's module and each linked module), under the names the translator's strategy census gives them, so ComparisonClass::derive bounds the same operations with the same reorder table as before; a note no such operation explains (a simdgroup matrix's) stays unbounded, as before. ENGINE_EXECUTOR_ABI v185: rows of these cases record another environment and census. |
||
|
|
88a5a8d641 |
matrix: the golden table and the runtime without the old-runtime wording
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. |
||
|
|
233fae4b20 |
Docs: the translator's Device comes from Device::from_queries
The translator's Device has one constructor, Device::from_queries; the Device::new its docs named is gone. Each mention in the translator's comments and in docs/VALIDATION.md now names from_queries. Three passages contrasted the two constructors over a `half` color output: under Device::new a device enabling storageInputOutput16 received it as a 16-bit `half` (StageIo::half_outputs). The stage plan declares no output 16-bit (lower/stage_io/plan.rs: `let half = false`), so every device receives the output widened to `float`, as docs/API.md section 9 already says. The stage_io docs and the two blend precision notes in pipeline/artifact.rs say so, and the M3 Max measurements of the 16-bit form, which no device now takes, are gone from those notes. VALIDATION.md's golden-table paragraph named the old runtime's path; it now says the table compiles through Device::from_queries. Comments and docs only; rewrapped paragraphs move only line breaks. |
||
|
|
c120b74608 |
replay player: a noted buffer's address in written bytes moves with the buffer
What: once the stream notes a buffer escaped (m2v.bufferEscaped), the player no longer stops at a written word whose value lies in that buffer's recorded range (PlayError::NotedWord, now deleted). It moves the word with AddressMap::move_noted to AddressMap::relocated(value), the address the play gave the innermost live range the value lies in plus the same offset, the same move an address argument gets. This happens after the census counts and before the bytes reach the backend, on all five write paths: - set*Bytes data; - a copied buffer's contents; - m2v.write; - the m2v.copyFromGuestRam pieces; - the m2v.privateBytes bytes before a dispatch. A new stream count, noted_words, counts the words moved. The census counts are still taken from the bytes as the stream holds them. Why: the runtime backend makes objects where it has room, so a pointer the program wrote into memory held the recorded address and pointed at nothing in the play. The stop ended every replay of a stream whose buffers escape (one of reims's plays stopped at frame 216). Every live range has the address the backend made its object at; a make without one already stops at the make. So every noted word can be placed, and the stop has no case left. A pointer into memory no live range holds cannot be told from data and plays as recorded, as before. This runs on every backend and device; nothing is keyed by identity. Docs: REPLAY-STREAM.md section 5 (written words and the escape note) and section 10 (the stream counts and the addresses line), VALIDATION.md, and command-replay's addresses line, which gains noted_words. Tests: - Unit (mock backend), a_word_into_a_buffer_noted_escaped_moves_with_it. After the note, a word in an m2v.write and a word in setBytes data each move to the mock's base plus their offset, and are counted as noted. The same word written before the note, and a word into a buffer with no note, play as written. - lavapipe, a_noted_buffer_s_address_in_written_bytes_moves_and_a_kernel_follows_it. A block at a recorded address holds a data buffer noted escaped (kind 0) and a buffer whose written word is the data buffer's recorded address plus 16. The fixture kernel ab_address (out[i] = held.p[i]) follows the moved word, and out holds the data words from the fifth on, exactly. - Negative: the two tests on development's tip without the move. The play stops with NotedWord. How verified: the lane's compile gate with the validation suite on lavapipe, and the negative job. |
||
|
|
9a1c8fe6dc |
metal2vulkan-rt takes the runtime's name: metal2vulkan-runtime, published
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. |
||
|
|
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.
|
||
|
|
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. |
||
|
|
8871d40bdf |
Validation: delete the old runtime's lane, parity harness, player backend and old-only tools
The old runtime goes at the cutover, and validation's old-runtime-only parts go with it: - runtime_lane/ (the old runtime's device tests) and the Metal predication probe that pinned its streams. Its one rt-based module, the replay player's rt device tests, moves to replay/rt_replay.rs with its three old-runtime comparisons cut (the census test on both runtimes goes; its rt half is its own test) and a pipeline cache directory of its own in the scratch root. - parity/ (Metal programs compared with the old runtime alone) and its Metal records under corpus/observations/parity. - The player's old backend (replay/old_runtime): command-replay always plays on the new runtime, and `--runtime` is gone. - corpus-draw-ab and format-scout (old-runtime-only tools), scripts/making-bench (corpus-draw-ab's bench), and the eleven public fixtures only the deleted sources used. - The nextest overrides of runtime_lane tests, the queue-plan test group and the few-channels profile; the matrix's device-test filter now names replay::rt_replay. - VALIDATION.md, REPLAY-STREAM.md and validation's README lose the lines of what went. The candidate executor's runtime path, and validation's dependency on metal2vulkan-runtime, go in the next commit. |
||
|
|
1de18aa609 |
Tests: the stream device tests of the old runtime's queue plan run at most four at a time
What: .config/nextest.toml's default profile puts the validation crate's
runtime_lane::replay_streams tests, and the three runtime_lane::rt_replay tests that play
on the old runtime too (a_private_shown_texture_is_checked_through_a_copy,
a_tiled_texture_takes_its_buffer_s_bytes_and_levels_at_first_use,
the_address_census_is_the_same_on_both_runtimes), in a test group, queue-plan, of
max-threads 4. These are the tests of the GPU legs' filter (DEVICE_TEST_FILTER in
scripts/matrix/matrix) that open a lane device of the old runtime's queue plan (at_plan).
docs/VALIDATION.md's paragraph on a GPU of few channels says so. The few-channels profile
stays: the lane's other at_plan tests lie outside the group, so a whole lane run on such a
GPU still takes it.
Why: the RTX 2080's GPU leg (NVIDIA 620.70.06) failed 3 runs of 3 at
|
||
|
|
6e010b843f |
rt lock budget: a test that counts nothing says so, and the matrix shows its leg as not counted
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
|
||
|
|
6de7e37ba5 |
replay judge: a finished rt play prints its judged totals, held equal to the base
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. |
||
|
|
2fe8ac55c1 |
matrix: a host-time row past its limit by less than old's own move is VOID for the round
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 |
matrix: an owned row fails only 3% past its owned ratio; a one-pass outlier is timed again
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
|
||
|
|
b28b4975b5 |
matrix: the GPU legs run the replay player's stream device tests; status rows lose closed owners
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). |
||
|
|
d2834389c7 |
replay: written words play as recorded on both runtimes; a census counts the address-looking ones
The player rewrote every 8-byte word of written bytes whose value lay in a live recorded range. On a stream recorded before the escape note a word's value cannot tell an address from data, and on u4 that rewrote two 32-bit indices of an index array into an address of the play, which a kernel later read through out of bounds (the rewrite-off control played u4 whole with no fault). Now no written word moves on its value, on either runtime: - The address map's word pass is a census that writes nothing (AddressMap::census). It counts address_looking_words (aligned 8-byte words in a live range) and misaligned_address_words in the same bytes as before: writes, copied contents, guest-RAM copies and Private bytes before a dispatch into objects that answered a gpuAddress, and set*Bytes data. Both are stream-fixed, equal on both runtimes. - What moves are typed address arguments (tag 8), through the map: relocated_words now counts only those that moved, so it is zero on the old runtime, whose ranges are at their recorded addresses. - unrelocated_writes is deleted: no written word is relocated anywhere, so it meant nothing. - A Private range's bytes after a dispatch are compared as recorded. - The report's relocation line becomes "addresses address_looking_words=N misaligned_address_words=N address_arguments=N relocated_words=N differing_ids=N: written words play as recorded; the stream predates the escape note". Tests: - unit: written words play as recorded and are counted; a typed address argument moves with its object (and one in no range stays); guest-RAM copies and copied contents play as recorded; the census counts by alignment. - device, rt: a data word in a live range plays as written (sha check); the census is the same on the old and new runtimes (and the old pinned both objects). - The rt granule test read the runtime's addresses through relocated words; it now checks the places line's slack (each place spans its length rounded up to its recorded granule). docs/REPLAY-STREAM.md sections 5 and 10 and docs/VALIDATION.md say the new form. The escape note (m2v.bufferEscaped) and the stop on a word into a noted buffer follow in their own commit. Verification: the replay checks (clippy in three configurations, replay unit tests, the replay device tests on lavapipe, rustdoc) run as a potluck job on this commit. |
||
|
|
4cb685e075 |
matrix: frame rows on a node whose CPU clock follows the load are judged by instructions per frame
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). |
||
|
|
e04254de14 |
matrix: a timing leg names its old runtime's own spread, and is timed again past 10%
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. |
||
|
|
7e33975f58 |
matrix: NVIDIA's first take of 64 MiB is judged on the new runtime's own part
The planner's ruling on create_64MiB/first_take on NVIDIA's legs: the gate changes, not the
ceilings. From the next round on the row is judged on the new runtime's own part, its first take
less the time inside the driver's calls the same process recorded, against the old runtime's whole
first take, each the median of the five creation processes; the driver's part and the whole ratio
are shown beside it, with the gap's name. An own part past the row's limit (1.03 times its floor,
the parity every row gets) fails the leg as a regression of its own.
The driver's part is `first_allocation_total`, the new runtime's `vkAllocateMemory` time on the
harness's thread in the same take, kept from every process already (FIRST_KEEP). rt counts no
`vkMapMemory` time, so the map stays in the own part, the stricter reading. On
|
||
|
|
5849a7f029 |
matrix: each runtime's creation rows run in a process of their own, cold against cold
The planner's rule: a cold first sample is compared cold against cold. The creation rows ran in five processes that each timed both runtimes, the new runtime first, so the driver's process-wide setup fell on the new runtime's first pipeline and the old runtime's first samples came after it, warm. Measured on the Iris Xe (job 48650, ms01 alone, both runtimes from the harness at cb25e3a83e, five processes each): the old runtime's create_state/first was 5265.8 us behind the new runtime in one process and 16732.8 us in a process of its own (0.315x); device_first 0.167x, first_call 0.099x. The one-process ratio new/old 1.302 at first was a cold-against-warm ratio; cold against cold it is 0.410. Of the two forms the planner allowed, each runtime's own fresh process is the cheaper: the harness does not change, and the extra five processes a leg runs take about a second each (create_state's processes on the Iris ran in under one second). The other form, one unrelated pipeline before either runtime in a shared process, would need harness code and leaves the first samples process-warm, not cold. So each of the five rounds now runs `--runtime new` and `--runtime old` in processes of their own, each on a fresh driver cache and store, the order alternating from round to round (new first in rounds 1, 3 and 5); the first round's two outputs are kept whole, the later rounds' first samples as before. The records, their names and the budget's medians do not change. Verified: the matrix's Python tests in the job named in the landing message (the harness-runs test now pins the processes and their order). |
||
|
|
6605f18ddf |
harness, matrix: the frames' commit-to-complete row is gone after its one round
The planner's frame ruling showed the frames' old figure, their last command buffer's
commit-to-complete time (`<row>/commit_to_complete`), beside the new throughput row for one round,
unjudged, then deleted. The round at
|
||
|
|
ca92b2aa9e |
harness: a compute state row's first dispatches 64x1x1, the streams' commonest size; one thread beside it
The create_state row's first dispatched one thread (1x1x1), a size of few dispatches: 3.9% of the compute dispatches in the discrete replay recordings (from 3 to 5 kernels) and at most 0.5% in the unified ones, by identity's census of every stream's threadsPerThreadgroup. A runtime that compiles its pipeline for the dispatch's size (the old runtime) compiled the first at 1x1x1, where a program's first dispatch runs at its own size. The first now dispatches one threadgroup of FIRST_THREADGROUP, 64x1x1: the commonest size over the five streams of record, 24.1% of their compute dispatches (41.7% of the unified recordings', 7.1% of the discrete ones', where 128x1x1 leads with 39.3%; 128x1x1 is 23.3% overall). Each thread's 16 bytes are checked. Today's form stays beside it, shown and never judged: another content's first (the kernel with other constants) dispatched as one thread, create_state/first_one_thread (CreateReport::one_thread_first_us; results.SHOWN_FIRST). The name has no digits so the matrix's FIRST_KEEP keeps it from every creation process, which a results test holds. The warm-up stays at one thread. docs/VALIDATION.md and the crate doc say it; the authored device test asserts the compute row has the one-thread first. |
||
|
|
f1f846e636 |
rt docs: the consumer's own drivers in the guide, the validation ladder and the surface table
`Instance::with_drivers` and `Error::NoDirectDriverLoading` are public: the runtime's guide says what the call does, what it refuses and what it leaves to the consumer (loading the library and keeping it loaded); docs/VALIDATION.md says how a job runs the device tests through it (`M2V_DIRECT_DRIVER`) and what shows the path ran; the signature table takes the two records (scripts/api-signatures/signatures.py --bless). docs/REFUSALS.md regenerated unchanged: the variant refuses nothing Metal accepts, it says the host's loader lacks an extension. Verified: the generators' output; the build and the tests in the jobs named in the landing message. |
||
|
|
d3bfe3815d |
harness, matrix: a frame row is its throughput, and its latency from idle a row of its own
The planner's metric for the frame rows. A frame row's time was its runs' last command buffer's commit-to-complete time with two runs in flight, which mixes the time a frame adds with how long it waits behind the one before. Now `frame` and `frame_5cb` (Plan::frames) carry two figures, each the steady time (best window of ten) of the harness's own completed-handler times: - THROUGHPUT, the row of record (matrix_time): two runs in flight, from one run's last completed handler to the next's. The pairs around the waits that read the gauges after runs 100 and 200 (GAUGE_RUNS) are left out, as an untimed run sits between them. - LATENCY FROM IDLE, the row `<row>_from_idle` (FROM_IDLE): as many runs again after the timed ones, one in flight, each committed once the one before it completed, from just before its first commit to its last completed handler. The completed handlers now report the time of their commit and of their own run against one origin (Completions, Handled), so the commit-to-complete times, the throughput and the latency come from one record. The frames' commit-to-complete time is still printed, as `<row>/commit_to_complete`, which the matrix shows and does not judge (SHOWN_ROWS) for one round. Each latency row takes the ceiling and floor its workload's row has (listed_row), in the budget, the over table and the re-time selection, and is re-timed through its workload's runs. Other workloads are unchanged, long_4cb's commit-to-complete time included. The shape follows core's one-run-in-flight probe (3eaec97076), without its environment gate. Verified: test_results (a new test: a latency row past its workload's ceiling and the budget, the commit-to-complete row shown and never judged, the over table and the re-time selection choosing the latency rows); the harness's unit tests gain the throughput and latency arithmetic (the gauge pairs left out) and matrix_time's frames case; the harness gate job named in the landing message runs clippy, rustdoc, the unit tests and the authored workloads on lavapipe. |
||
|
|
02eaf89136 |
matrix: the report ends with one table of every row over its limit, with its status
Two legs of eleven passed and every red was known, so the reds were no longer read. The report (`matrix run` and `matrix show`) now ends with one table: every harness row over its limit on every leg (results.over_rows, the rows harness_budget fails or names as its card's variance), with its kind (GPU time, host time, or count for the instructions gate), its ratio and limit, the frozen arm's verdict (VOID, stands, rebased, no base) and its status. The status comes from scripts/matrix/status.tsv, one typed entry per card and row (a `*` in the row matches any run): an open record with its owner and first round, whose age the table counts in rounds; a known gap with the place it was ruled; or a note alone. A row with neither reads NEW in the first round it is over (not over in its leg's base) and UNOWNED after; a CARD_VARIANCE row reads as its card's known gap. The table changes no verdict: the red rule waits for the planner's ruling. Seeded from the rulings so far: NVIDIA create_64MiB/first_take, a known gap (the 2080 and the 3090); create_64MiB on AMD, a note that it is no known gap and is unjudged until the first interleaved round; the Iris Xe's GPU-time rows, a note of one time-boxed investigation after that round; the Iris row_cells, identity's open record (first over at |
||
|
|
65aac391c2 |
matrix: the frozen arm compares only rounds of one harness, one old runtime and one shape
The noise meter read the old runtime's move between two rounds as noise even where the harness or the old runtime changed between them ( |