e8a3feef6b4bc6f9bc4f7eba8ee790670bc9aae5
131
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
58148264f8 |
Conformance: compute-imageblock-sizes, one encoder's dispatches before any imageblock size and at two it sets
A compute step for setImageblockWidth:height: on both sides, and a case that runs a4_imageblock_extent three times in one encoder: before the encoder sets a size (one thread, Metal's 1 by 1), then at 4 by 2 and at 4 by 4, each one threadgroup of the imageblock's extent, into a guarded slot each. The case's test holds Metal's recorded answer equal to the fixture's own at each extent. The runtime README states the size as a specialization: each size a kernel runs at is one VkPipeline made at prepare_dispatch or at the dispatch, a first-use wait, where Metal changes the size with no compile (m3-max-69983); prepare_dispatch and dispatch_variant take the size. REPLAY-STREAM and VALIDATION say the player and the engine candidate set it; the ledger row for the state's imageblock length drops the dispatch refusal. The recording follows in its own commit (taken on the M3). |
||
|
|
28e2b0e6ca |
Validation: a kernel case's visible-function tables run through the runtime
The runtime candidate makes each table the case binds of the pipeline state (newVisibleFunctionTableWithDescriptor: of its size, each authored entry set to the handle of its linked function made with the case's constants, as the Metal oracle sets it) and binds it at its buffer index. ToolingRequirement::KernelFunctionTable, which held such cases to Metal alone, is retired; a render stage's table stays the runtime's limit (RenderFunctionTable). ENGINE_EXECUTOR_ABI does not move: no recorded row ran a kernel table case (they were refused). The runtime README states the device answer, the encoder's bind, the state's handles and tables, and the known gaps (a table's 64 KiB block, a consumer-compiled kernel's handles, an argument buffer's table). The coverage table marks the compute items implemented; METAL-COVERAGE.md and CONFORMANCE-COVERAGE.md are regenerated. Adds the owned linked module visible_table_ops.metal, whose companions scripts/regen-air-fixtures writes on the Mac. Verified: the lane's jobs. |
||
|
|
a7dd2e846e |
Translator: the binder's plan goes, with everything only it reaches, and the TexelRows and YCbCrInPlace forms
The runtime never made a plan (it binds each draw and dispatch by the pipeline's interface), and since the census digests each pipeline's content alone (two commits back) nothing in the tree calls one. What only the plan reached goes with it: - bind: BindState, BindShape and their shapes, BindingPlan and its instantiation (DispatchCommands, DrawCommands, push, descriptor and root-table templates and writes), plan.rs and plan/ (compute, resources, slots), instantiate.rs, resident.rs, the neutral resources' plan side, the heap's member planning and table bytes, the mesh arguments pass (MeshArguments, MeshArgumentsForm, fold_object_grid, metal_object_grid), ExecutionStatus and StatusBits as public items, TextureShape::Buffer, IndirectRef with the four indirect call variants (Dispatch::ThreadgroupsIndirect, DrawCall::Indirect, PatchesIndirect, MeshThreadgroupsIndirect) and IndexBufferRef::fetch_end. Dispatch, DrawCall and IndexBufferRef stay: validation states its cases' calls with them. - error::BindError leaves the public surface; a crate-private BindError of three variants stays as the error of the heap's view derivation, which lower::texture::slot's storage-read check reads (bind::heap::tier_read_gaps). That check keeps only the storage view's format: the sampled-view branch and ImageViewDesc were reached by the plan alone. - vk::DrawCommand, the plan's draw output. - pipeline: ComputePipeline::plan, RenderPipeline::plan; cache: VariantKey::covers and large_buffer_form. - The TexelRows form (bind::texel_rows, LoweringInputs::texel_rows, RuntimeFact and PushField TexelRows) and the YCbCrInPlace form (bind::ycbcr_in_place, lower/sampler/in_place.rs, LoweringInputs::ycbcr_in_place and ycbcr_planes_sampled, RuntimeFact and PushField YCbCrInPlace, PrecisionNote FloatSampleFilter and HalfSampleFilter, Routine::Quad). Only the binder set those inputs. - The tests of the deleted items, and the plan halves of mixed tests. Of 6810 tests (`#[test]` functions in the workspace) 309 leave and 11 come in their place: the lowering halves of mixed tests, kept without the plan (the heap layout, the stage-in stride and region facts, the emulated-simdgroup and bicubic facts, the iris-xe storage classes), and the kept tests of the two renamed files. 50 others are edited to drop a plan half or a deleted item (the api_surface round trips; the simd_emulated, extended-range, recursion, dynamic-root, handles, heap-storage-read and mesh lowering cases). 6512 remain. engine_graphics_binder.rs and engine_heap_binder.rs keep one and two tests and are renamed engine_unattached_colors.rs and engine_heap_groups.rs. - The runtime guard test's list of files the runtime inputs reach without being inputs drops the seven no input reaches since the cut: cache/digest.rs, lower/simd/divergent.rs, lower/simd/workgroup.rs, pipeline/artifact.rs, pipeline/layout.rs, pipeline/stage_io.rs and pipeline/vertex.rs; three of its reasons that named the plan or the binder say what reaches the file now. 559 public items leave (api_signatures.tsv: 55 structs, 26 enums, 140 variants, 245 fields, 52 methods, 24 associated constants, 7 constants, 5 functions, 5 impls). Consumer search, the consumer's development at 92ffbed817, `git grep -w NAME` of each of the 112 removed names: 0 hits for 105; the others are the consumer's own items: TessellationFactors 4 (its Bound::TessellationFactors), YCbCrMatrix 3 (its own string and doc), texel_rows 2 (its own fn), ThreadgroupsIndirect 6 (its own Dispatch enums and rt::Dispatch::Indirect), DrawIndexed 1 (a doc naming MTLIndirectCommandType values), covers 109 and plan 105 (generic words; the `.covers(` calls are its Extent's, the `.plan(` calls its video encoder's rate.plan). Its one import of metal2vulkan::bind is the argument-buffer layout types, which stay. The forms' audit. A texture over a buffer: the runtime's tests::over::every_device_holds_a_texture_over_a_buffer_in_place. A two-plane YCbCr sample: no runtime test; the runtime makes no texture of a two-plane YCbCr format (Gap::TextureFormat, the runtime README's "A format is made where the translator's format table maps it" row), the conformance cases ycbcr_gathers and ycbcr_textures record Metal's answers, and known-gaps-rt.tsv lists the runtime's refusals (ycbcr-gathers-*, ycbcr-texel-reads-420v). Versions: - RUNTIME_VERSION 2550: it covers plan instantiation and the binder's run-time data. Nothing calls those since step 2: the runtime never used the binder, and the own-context executor is gone. A run of an unchanged artifact does nothing different, so the guard hash (runtime-sources.sha256) moves alone, and the RUNTIME_VERSION doc is rewritten to name what it still covers. - SEMANTICS_VERSION 2273: no output changes for any input that still exists. The TexelRows and YCbCrInPlace forms, their facts, push fields and the two notes were reachable only through LoweringInputs::ycbcr_in_place, ycbcr_planes_sampled and texel_rows. Only the binder set those; the runtime sets none. The function key appended each of them only when set, so every surviving key hashes the same bytes. Two type declarations stay where they were, so module words do not move: bool in the bicubic types, uvec4 in the bicubic routines. Byte-identical modules are expected, not verified here; the 252-row hash probe is the check. - ARTIFACT_FORMAT_VERSION 591: the codec tags enum variants by name. The removed RuntimeFact, PushField and PrecisionNote variants leave their tags unused, which cache/mod.rs's rule says needs no bump: an old entry holding one fails to decode, which is a miss. No codec_struct field is removed. That is why SamplerDesc.ycbcr stays. The guard hash (crates/metal2vulkan-validation/runtime-sources.sha256) moves for the bind/ sources this deletes and edits and for vk/draw.rs, which leaves its list. No run of an unchanged artifact changes: what stays in bind/ computes what it did (the heap's tier check takes the same storage format; its removed sampled branch had no caller). Docs: docs/API.md (section 5 is the interface; the binding and plan sections go), README.md, docs/ARCHITECTURE.md, docs/HOWTO.md, docs/VALIDATION.md, the runtime README's DrawInput and identity-domain rows, docs/REFUSALS.md (regenerated; the binder's section goes), api_reference.md, api_signatures.tsv (blessed: removals only), tests/api_surface.rs, the signatures floor (5000), the bind modules' own docs, and the public field docs of PushField, RuntimeFact and SpecKey that named BindState, BindShape or BindingPlan. AGENTS.md: the project table names pipelines and their interfaces, not binding plans; its "core lives in" line stays true (bind/ still holds what the lowering reads). Verified on 31692939d4, this commit's tree (steelbrain/cutbinder-probe-6): job m3-max-68107, fmt, signatures, refusal surface, clippy -D warnings (workspace plain, --cfg m2v_gpu, --cfg m2v_cpu_icd; the translator with no feature and with each alone; the AIR crate alone), workspace Rustdoc -D warnings, each crate's private intra-doc links at 0, api-docs; job m3-max-68109, the product, validation and conformance suites, doctests, and on lavapipe the validation and runtime suites under --cfg m2v_cpu_icd, the conformance replay and the public cases' qualification. |
||
|
|
cd5d336782 |
Validation: the own-context executor goes; a case runs through the runtime or is refused before it runs
After the profiles layer moved onto the runtime route, kernel rows went through the runtime, and the
layered cases moved too, nothing called validation's own Vulkan executor. This deletes it:
candidate/platform's compute, render (and its multisampled half), plan_resources, buffers and
multisample modules, the own-context device's clamped-layer, extended-dynamic-state, restriction
and environment machinery, the engine's compile_case / compile_render(_case) / compute_request
plumbing, the bind refusal and status verdict it read, the synthetic guest addresses, the attempt's
creation ceiling, and coverage's module census of its own compiles. corpus-pipeline's Vulkan
context for its render rows, and the runtime probe's, stay.
A render case the runtime route does not draw (a depth/stencil attachment of both aspects, a patch
draw through a patch or control-point index buffer, an out-of-bounds target other than an attribute
buffer) is refused not_supported{executor_not_implemented} before it runs, as run_prepared already
did once the gates were gone. The comments and docs/VALIDATION.md that compared with the own
context now say what the runtime route does.
Test-only items move beside their tests: Mechanism's label into the out-of-bounds tests,
Containment::of_compile, its label, Declared and ExecutionClass::of_description into the tier
table. The linked-functions integration test compiles through kernel_request, as the census does.
Deleted tests and what covers their Metal claim:
- a_kernel_runs_with_its_linked_visible_functions: a_kernel_runs_through_the_runtime_with_its_
linked_visible_functions (engine_compute.rs), kept.
- a_draw_restarts_exactly_its_strips_within_its_class: the conformance case
primitive_type_crossings compares strip restart with Metal.
- a_combined_depth_stencil_format_moves_both_aspects_together, a_draw_covers_the_whole_target,
a_guarded_buffer_counts_each_changed_guard_byte, a_target_is_bound_for_its_fetch_form,
every_state_a_render_pipeline_makes_dynamic_is_recorded,
multisample_initializers_are_vulkan_legal_for_each_component_class,
addressed_allocations_take_metal_addresses, the_status_starts_zero_and_stops_non_evidence,
the_clamped_layer_warning_fails_no_row_of_a_clamped_store_alone,
a_context_has_the_extended_dynamic_states_where_the_product_reads_them,
a_store_runs_through_the_binder_under_the_validation_layer,
a_tessellation_pipeline_census_is_its_functions: the deleted executor's own mechanics, no Metal
answer of their own.
metal2vulkan-validation is not published, so no consumer can reach a deleted item:
git grep -n -E 'metal2vulkan[-_]validation' development -- '*.rs' '*.toml' in the consumer's
checkout at a11528a7e2: 0 hits.
Verified: cargo check of the validation crate, all targets and features, plain, --cfg m2v_gpu and
--cfg m2v_cpu_icd, clean (m3-max-67506, on the probe branch's identical diff); the dead-code pass
against the base finds only items whose users are macOS-only or tests the binder's deletion takes.
The compile job and the suites follow on this commit.
(cherry picked from commit 5808aaa769e3f44b1bd76dea486b2b150b15e92b)
|
||
|
|
9675b50e75 |
Validation: corpus-pipeline makes every kernel row on one runtime device per sweep
At f11d6455e0 each kernel row opened its own runtime instance and device under the validation layer. A sweep of about 900 kernel rows made about 900 instances and devices. Each instance's layer also opened its own log file and kept it open after the instance was destroyed: one file descriptor a row (the 3090, job 67374: 5 descriptors to 24 over 20 rows). The form the 1b brief asks for is one runtime device of the sweep's kind, with each row's ComputePipelineState and its dispatch made on it. candidate::RuntimeKernels is that device: - open makes the instance (restricted where the process is) and the device. The validation layer's variables are set only while the instance is made (runtime::under_validation_variables), and the layer logs to the process's one log for the device's life; - accept makes one row's state and encodes its dispatch, as before. The row's messages are what the log gained during the row, so a message still makes that row INVALID_USAGE; - finish drops the device and waits for its teardown. A message logged at the teardown fails the sweep. A message logged while the device opens stops the sweep before any row, because no row on that device would be evidence. corpus-pipeline opens it at the sweep's first kernel row, so a render-only sweep opens none, and finishes it after the last row. Render rows keep their own context. runtime::opened is split into made_device and torn_down for the held device; the per-row executors keep opened. create_runtime_kernel is removed. The device tests make two kernel rows on one device. |
||
|
|
71f93243d9 |
Validation: an L4 kernel row is made through the runtime, its pipeline state and one encoded dispatch
corpus-pipeline asked the driver for a kernel row's compute pipeline at
the region the binder planned for one representative dispatch
(acceptance::dispatch), and tallied the binder's answer (BIND_REFUSED,
BIND_ERROR). That is not the pipeline a guest's kernel gets. A kernel row
is now made as a guest's kernel is made (platform::runtime_acceptance):
- the row's AIR becomes a runtime library, and its function is
specialized with the row's function-constant values;
- one ComputePipelineState is made on the sweep's device, restricted to
--profiles-layer's profile where one is given;
- one dispatch of one threadgroup of the state's thread execution width
(or its maxTotalThreadsPerThreadgroup where that is fewer) is encoded
into a command buffer that is dropped uncommitted, so the runtime picks
the module that threadgroup runs on, asks the driver for its pipeline,
and nothing executes.
The verdicts:
- The creation time is the runtime's own count of it
(pipeline_creation_nanos).
- A message from the validation layer is INVALID_USAGE.
- A Vulkan error is REFUSED.
- The runtime's typed refusal (the translator's, a known gap, a limit) is
RUNTIME_REFUSED, counted.
- A kernel the runtime runs as Metal's without effects, and makes no
pipeline for, is NO_EFFECT, counted.
The row still compiles in its compile worker first, for its words, its
outcome, --compile-only and --keep-modules. The make runs in the sweep's
process, held to the per-attempt ceilings (runtime::within_ceilings).
Removed:
- acceptance::dispatch (plan_compute_row, ComputeCreation, NoCreation,
BinderAnswer);
- RowCompile::Binder and UnmodelledKind::Dispatch;
- the tally's bind_refused and bind_errors, and the detail's
imageblock=WxH;
- the own context's compute arm of create_acceptance_pipeline, which now
takes a render pipeline, with its region test.
The summary line's bind_refused= and bind_errors= become
runtime_refused= and no_effect=.
What is lost: L4 kernel acceptance on Mesa's drm-shim drivers (RADV, ANV
and NVK), which stood for hardware we do not own. The runtime does not
open those devices, so the rung runs on lavapipe and the real cards
only. NVK is lost entirely: the shim was its only venue, and it never
ran here.
Committed rows removed: none. No L4 row is committed. Counted by
environment over corpus/observations/vulkan and observations/refusals at
|
||
|
|
48d7ded3aa |
Validation: the authored compile census compiles as the runtime does, through no binding plan's variant
The census compiled each case's pipeline through the binder's variant route: a kernel under the
key its plan, and its plan's dispatch_variant, asked for (BindingPlan::variant), a draw through
compile_render_variant, a mesh draw through compile_mesh_variant, each with the storage-format
loop. It now compiles through the translator's public pipeline API the way the runtime does:
- a kernel through the new PipelineRequest::Kernel, compile_kernel: its plain module, or its
emulated-simdgroups variant (LoweringInputs::kernel_variant) where the dispatch's threadgroup
is not a multiple of a LocalSizeConstraint the plain module states, the runtime encoder's
rule (encoder::decide);
- a draw with no shape (Device::compile_render_pipeline);
- a mesh draw through Device::compile_mesh_pipeline. The census was MeshDraw's only builder, so
its shape field and compile_mesh_for_shape go.
The own-context executor (a profiles-layer run, a render case off the runtime) keeps its
requests (BoundCompute, a draw with its shape) under the resident-table domains, where its plan
asks for variants the runtime route does not compile.
The artifact still digests the plan of the compiled pipeline for the run's bind shape, as the
own-context executor records it (artifact::CaseArtifact::record).
Why: on the probe branch (m3-max-66743, 9 profiles, 20,997 cells), the only variant field the
plan ever set was emulated_simdgroups. Yet the census's old route kept the plain module for 33
kernel cases (174 cells on the six real-GPU profiles) whose threadgroups (1, 4, 8, 16, 40 or 42
threads) are no multiple of the plain module's LocalSizeConstraint { multiple: 32 }. The binder
refuses to plan each of them under the runtime's identity domains, so the old route's variant
step never ran. Every one of the 33 observes its threadgroup partition, so the runtime's whole
module is the plain one and its encoder runs the emulated-simdgroups module for those
dispatches. The new route compiles exactly that module (route probe 8468646957, census
m3-max-66936, every cell compiled: the 174 differ only in stage, dependencies and requirements).
So the census's cells for those 33 described a module no guest gets.
AUTHORED_COMPILE_CENSUS_VERSION 7 -> 8: the compiles a cell is made of changed route.
Verified:
- compile m3-max-66813 and suites m3-max-66814 at the lane's base
|
||
|
|
5d143de078 |
Validation: a difference under precision notes is a noted difference, counted apart
A candidate row whose bytes differ from Metal's under a comparison class unbounded by
precision notes was recorded Mismatch, so the public lavapipe batch counted 186 mismatches of
which 185 carry a note that can explain a difference, and a new mismatch would hide among
them. Such a row now records CandidateStatus::NotedDifference: never a match, never accepted,
and saying no more than that the row differs and its notes can explain a difference. It is
counted in its own column: the batch outcome and class noted_difference (batch-report,
batch-family, batch-scope, batch-summary), the evidence state noted_difference in
corpus-status. Mismatch stays for an exact class, a difference past a bounded table, and an
out-of-bounds target that escaped.
The owner's decision of 2026-10-06 stays: a case the C3 reviewed list holds under an answer
gap its structure meets (AnswerGap::met_by) keeps Mismatch, and the row names the gap in a new
field, held_open_by, which the executor's verdict line and the batch-run line print.
ReviewedList::holding_open is that rule, shared by C3's report (with the venue's device) and
the executor (candidate::engine::difference_status, with the case's structure alone: the
runtime path has no profile to ask which devices have the gap, so a listed case's difference
is a mismatch on every device, which hides none). C3 reads a noted difference as a mismatch,
so its verdicts do not change; the fast-math regrouping reading keys on "differs" instead of
"Mismatch".
The row contract enforces the vocabulary: a noted difference needs differing bytes, an
unbounded class and no escaped target, and no held_open_by; a mismatch that could be noted
needs held_open_by. comparison.rs's contract sentence now reads that a difference is never a
match: under notes it is a noted difference (unless an answer gap holds its case open), else a
mismatch.
Executor ABI vulkan-engine-v211 -> v212 (the recorded status changed): every recorded
candidate row is stale until rerun. Bless due on development: the authored compile census,
which keys on the executor ABI.
Tests: the row vocabulary (observation), classify and the report's column and held_open_by
line, install of a noted row (vulkan_batch), and difference_status over every committed C3
answer-gap entry (each stays Mismatch naming its gap) and a public case the list does not hold
(a noted difference).
Verified: not at commit time; the compile job and the validation suite run on this sha.
Verified with the two commits after it (the suite fixes and the ff55fa41 case fix), at their
tip 611f45a559 on development
|
||
|
|
35fe287776 |
Validation: a sample count the runtime makes no texture of is the device's not_enabled
A kernel case through the runtime that binds a multisampled texture of a sample
count the device's image format query lacks failed with free text ("texture 0:
a sample count of 2 is not among the device's (0xd)"): runtime_error took the
runtime's Limit::TextureSamples as any other error. The executor's own context
refuses the same texture typed (NotEnabled, from the same query), and the run
through the runtime already records a pixel format it makes no image of so.
Now Limit::TextureSamples is NotEnabled too, naming the texture, so the case
records a typed refusal on a device without the count and runs where the device
has it. On llvmpipe (sample counts 1, 4 and 8) that is the two public cases
3cadd32e61a4 (four-multisample-reads-at-two-samples) and 505599ae1551
(size-queries-of-multisampled-buffer-and-depth-cube-textures), which failed
before (job m3-max-65594).
- runtime: runtime_error maps Limit::TextureSamples to NotEnabled.
- engine_textures: a_sample_count_the_device_lacks_is_refused_as_not_enabled
(was ..._before_any_image) runs the case on each run, the own context and,
on Linux, through the runtime, and asserts NotEnabled naming texture 1 and
its 2 samples on both (the runtime arm failed with free text without this).
- docs/VALIDATION.md: says so.
These cases recorded no row before, so no recorded row observes the change; it
rides vulkan-engine-v211, the bump of the parent commit.
Verified before this commit: the two failures, on llvmpipe (Mesa 26.2.4) at
|
||
|
|
81eb5e3826 |
Validation: a texture-buffer out-of-bounds target through the runtime lies between guards
The run of a kernel case through the runtime made each texture buffer over an unguarded buffer (Placed::new), so a target of the texel buffer form recorded no guard count (escaped and past_end None). out_of_bounds::guarded() names every such target guarded, so matches() failed contained_in_guard and called equal bytes a Mismatch, which validate_content then refused as contradicting the equal hashes. Since texture buffers moved to the runtime ( |
||
|
|
38104834d4 |
validation: indirect_indexed_draws names the runtime's command shape the executor does not map
What: one requirement row, ToolingRequirement::IndirectIndexedDraws ("indirect_indexed_draws"),
stops the engine's candidate. It is this crate's gap (Limit::Tooling). Its structural check in
executor_contract::case_requirements matches an indirect command buffer of the one shape the
runtime builds, which no runtime-limit row names: render commands of indexed draws alone that
inherit the pipeline state and bind their own buffers, with no command the host encodes. Every
other command buffer already carries indirect_compute_commands, indirect_draw_types,
indirect_command_inheritance or host_encoded_indirect_commands, and a pipeline state in an
argument buffer carries argument_buffer_pipeline_state.
The free-text NotImplemented in candidate::engine::compute_case and graphics::stage_resources
("an indirect command buffer or a pipeline state in an argument buffer") is deleted. Both run
after require_case_families, which now refuses every such case typed, so a case of the
runtime's shape meets NotSupported::Requirements({indirect_indexed_draws}). Since the row is a
tooling gap, the checker's evidence_gap also takes no case of it ("engine_candidate:
indirect_indexed_draws (the candidate is stopped)").
The contract sentence of replay_observes_commands said both executors execute a case's
commands after its producer. It now says the Metal oracle does and the engine's candidate
executes none, naming the row. The same claim in unsupported_observation_requirements is
corrected the same way, and so are compute_case's doc (it no longer lists command buffers and
pipeline states among what it runs) and docs/VALIDATION.md (the runtime's form carries the row,
no longer executor_not_implemented).
Why: one vocabulary. The runtime-built shape was the only indirect command buffer the
vocabulary did not name: it met a free-text refusal.
Not built: mapping the runtime's shape through the runtime's indirect command buffer. Its
trigger is a guest count. No guest reaches an indirect command buffer today, because the
consumer refuses the creation. The row's doc records the trigger.
Versions: the classifier's analyzer_version goes from structural-triage-v85 to v86 (the
meaning of a replayed module's case changes: only the Metal oracle executes it). requirement.rs
and executor_contract.rs are classifier inputs, so the key changes with them too. The
executor ABI does not move: no committed case reaches the deleted arms.
Expected census moves, at the next named pin, not run here: none.
- Authoring-capability census: the row comes from a case's literals alone, never from a
source's structure, so no census row carries it. The full reclassify that the version bump
forces should give the same counts.
- Authored compile census: none of the 29 command buffers in the committed cases has the
runtime's shape (all 25 cases with one already carry a runtime-limit row, see
committed_command_buffer_and_pipeline_state_cases_refuse_by_their_requirements), so no cell
moves.
Tests: requirement::the_runtime_s_indirect_command_shape_stops_the_candidate_as_a_tooling_gap,
and case::tests::indirect_commands::the_runtime_s_command_shape_is_a_typed_gap_of_the_engine_candidate.
The second checks that the shape carries the row alone, that the checker names it as an
evidence gap, and that compute_case refuses it typed. It also checks that leaving the shape
(buffers inherited, or draws of primitives) carries the runtime-limit row instead.
Verified: m3-max-65550 (these two commits on the pre-enables base 7e080082cf): fmt,
signatures, clippy plain, --cfg m2v_gpu and --cfg m2v_cpu_icd, workspace Rustdoc -D warnings
green, validation 1333/1333; m3-max-65585 at 9e3e484a8a on
|
||
|
|
a2ad41850e |
Validation enables what the runtime enables, from the runtime's own tables
What: one definition of the enabled set. The runtime gains one public function, `metal2vulkan_runtime::floor::enable_set()`: every feature and extension of the translator's vocabulary that device creation enables on some device (its ENABLED groups' named features and its creation extensions), and `shader_enables` reads the same iteration. Validation's `engine::runtime_enables(description)` keeps of a description what that set holds (plus the features that have no member at the runtime's Vulkan version and the extensions exposing kept features) and `engine::runtime_description(stem)` reads a committed profile at the runtime's version restricted to it. The engine context's list (`engine_list`) is that set; NOT_ENABLED, the old executor's list, `Enables::copy`/`expose` and the unnamed members loop are deleted. The authored-compile census, `corpus-pipeline` and `load_device` compile for `runtime_description`. Why: validation executed, and the census reported, forms the runtime never ships: the ordered framebuffer fetch on lavapipe, ray query and acceleration structures with deferred host operations, float atomic add, OpFmaKHR, buffer robustness and others the runtime's floor tables do not enable. Tests: a runtime test that `enable_set()` equals what `shader_enables` derives on a device with every ENABLED feature and every creation extension; a validation test that no committed profile's context (device and restricted) enables a member or extension outside the set, ray query, acceleration structure and deferred host operations named. docs/VALIDATION.md states the four places where the census's reading differs from the runtime's own answer for a device. ENGINE_EXECUTOR_ABI vulkan-engine-v209 -> v210. Verification: none at this commit; its compile, suite and census jobs follow. |
||
|
|
bebd518dfb |
validation: delete runs_through_runtime, always true for a mapped kernel case
The predicate answered true for a Threads or Threadgroups dispatch. Every kernel case the engine
maps comes from compute_case, which dispatches by threads (a case has no indirect dispatch to map),
so it was true for every case it was asked about. Its one product caller, run_on_context, now
routes every mapped kernel case through the runtime when no profiles-layer restriction is
requested, as before. The runtime run's own match still refuses any dispatch but threads or
threadgroups.
Deleted with it: the predicate's own test (a_plain_kernel_case_and_only_one_runs_through_the_runtime)
and its plain_kernel helper, which nothing else used. The doc references are rewritten
(ComputeRun::spv_sha256, runtime_fingerprint, run_on_runtime, runs_render_through_runtime,
platform::runtime, engine_textures' runs, docs/VALIDATION.md).
Search: `git grep -n runs_through_runtime` at
|
||
|
|
78a19891d5 |
docs/VALIDATION.md: a bound texture buffer runs on both executors
The authored-case requirements section still said a bound texture buffer carries texture_buffer, which the runtime does not make. Texture buffers ( |
||
|
|
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. |