fd5fcca9b00a2b7e1358294ab83c9ec3d274836a
9019
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
fd5fcca9b0 |
Validation: the census digests each pipeline's content, and the executor's binder terms go
The authored compile census recorded, for each case, the content digest of its compiled pipeline together with the plan the binder made for the case's bind shape (or that plan's refusal). The runtime makes no plan, so the record now digests the content digest alone (`CaseArtifact::record`, digest label v2), and `case_compile` takes no device. The executor ABI moves to vulkan-engine-v213, so every census row re-records. With the plan gone, nothing reaches the executor's binder terms, and they go: - engine.rs: `bind_state`, `compute_shape`, `lengths_classed`, `texture_tokens`, `synthetic_used_addresses`, `BufferAddress`, and `ComputeRun::status` (always `None` on the runtime route; nothing read it); - graphics.rs: `bind_state`, `stage_table`, `render_shape`, `texture_tokens`, `synthetic_address`, `synthetic_used_addresses`, `BUFFER_SLOTS` and the three per-stage argument-buffer iterators; - mesh.rs: `mesh_shape`; - argument_buffers.rs: `resource_id`, `sampler_id`, `sampler_ids`, `argument_samplers`, `texture_tokens`, `field_words`, `used_buffer`, `used_texture`, `synthetic_addresses` (the runtime route writes the runtime's own addresses and IDs through `owner_bytes`, which stays); - resources.rs: `bound_texture`, `texture_facts`, `texel_buffer_length`, `bound_sampler`; - variants.rs: the bound-shape module; engine/public_cases.rs, the public cases planned on committed profiles. Tests: the mapping halves of the mixed tests stay (render, tessellation, slice-choosing, argument-buffer members, the owner's bytes); their bind-state, shape and plan halves go with the plan tests (the stencil-export, framebuffer-fetch, tessellation, owned-render and public render plan tests, the device buffer array's table, and the executor-state plan). One check leaves with `field_words`: it refused a texture and a sampler authored at the same field; the runtime route's word map does not. Verified with the cut's last commit, which names its check jobs; not built alone. |
||
|
|
25387588ea |
AGENTS.md rule 2: the list's "and" moves to its ninth item, the push window
The push window's clause made the list end "..., and run-time texel offsets (...), and the push window (...)". The first "and" goes, so the nine items read as one list. The planner ruled it inside the edit the owner's word (Telegram 2686, option B) covers; no meaning changes and nothing else in the owner's rules moves. Nothing in the tree parses this wording (one_path.rs names the rule only in a message). |
||
|
|
d9077dfa0d |
Push window: each device's maxPushConstantsSize sizes it, up to 256 bytes (rule 2's ninth form)
What: the push window is one value per device, `DeviceProfile::push_window`, the description's
maxPushConstantsSize up to 256 bytes, decided in the profile `Device::from_queries` derives
(device/profile.rs:115). Every window reads it: push placement (`lower::push::window`, `place`,
`spills` and `check_floor` take its bytes; lower/select.rs, lower/access/mod.rs and
lower/access/table.rs pass it), and in the runtime the one pipeline layout's push range
(device.rs:688), the kernel and render pipelines' push checks (pipeline.rs:2119, render.rs:1043)
and the encoder's push bound (encoder.rs:1759). With W that value, a kernel pushes in [0, W), a
vertex function in [base, W - 8) and a fragment function in [base, W); object and mesh functions
keep 0..32 and 32..64. A stage's fields past its window spill to its parameter block, whose
address the window holds, as they did past 256. `from_queries` refuses a maxPushConstantsSize
below 128, Vulkan's least, only (`Unsupported{PushWindow}`, required 128), and the runtime's
floor no longer lists maxPushConstantsSize (floor.rs: its row and PUSH_CONSTANT_BYTES go; the
layout's range was a constant 256). There is no constant 128 path, no switch and no environment
gate: the limit query is the only input. Ported from the held branch steelbrain/amdfloor-window
(d6880ca16b) onto today's development, every line reference confirmed against this tree.
Why: the owner's word choosing option B. A device reporting 128 bytes was refused by the floor;
it now runs with a window of 128.
AGENTS.md rule 2 takes the owner's authorized text: "for eight only" becomes "for nine only",
and the push window joins the list after run-time texel offsets.
Known gap (runtime README, Known gaps of indirect command buffers): in a window of 128 bytes a
command reaches 9 vertex slots, and 8 where the vertex function spills, against 25 and 24 at 256
((W - 8 - 16 - 28) / 8; from code: lower::push's
an_indirect_draw_s_vertex_function_pushes_25_or_9_slot_words). A kernel pushes 8 buffer
addresses beside its dispatch region at 128 bytes against 24 at 256, the rest from its ring.
Caches: a device of 128 and one of 256 share no cached artifact and no pipeline. The profile's
fingerprint hashes every ProfileFields field by Debug (device/profile.rs:312, :327), the limits
included (:346, maxPushConstantsSize at :625); `function_key` hashes the fingerprint
(pipeline/compile/key.rs:182, :189; passed at pipeline/compile.rs:2973), as does
`queried_render_descriptor_key` (key.rs:546); a cached artifact or pipeline loads only under an
equal fingerprint (cache/artifacts.rs:71, :204, :238; cache/envelope.rs:142); and the runtime's
enables digest, which the stage keys check, hashes it (metal2vulkan-runtime/src/device.rs:1533).
SEMANTICS_VERSION stays 2273: no module changes under an unchanged key. Every device
`from_queries` accepted before reports 256 bytes or more (it refused below 256), so its window is
256 as before and its modules are the same bytes; a device of fewer bytes was refused, so it
holds no artifact to go stale, and its modules are new under its own fingerprint. The golden
test at this tree found 0 cells changed under an unchanged key over the 15 committed profiles,
and 1855 under a changed profile fingerprint, runtime-floor's column alone (m3-max-68089; the rows
whose assembler Linux lacks are not observed there).
Golden table: runtime-floor.json and its generator drop the floor block's maxPushConstantsSize
of 256, so the profile reads Vulkan 1.3's least, 128, and its fingerprint moves. Its cells are
re-blessed on development (the bless needs macOS's assembler).
Validation: runtime-sources.sha256 is rewritten (d4a8dbf2...), since device/derive.rs and
device/profile.rs are runtime inputs the guard hashes.
Docs: the runtime README (the floor's limits note and table, compute Parameters, the render push
range, the indirect command buffers' known gaps), docs/API.md section 5 and the from_queries
paragraph, PushWindow's doc, reach.tsv and docs/REFUSALS.md (regenerated; the PushWindow row
only), the device profiles' README, and api_signatures.tsv (DeviceProfile::push_window). The
api_surface table is unchanged: no public type is added.
Tests: lower::push's placement at 256 and 128; from_queries (each committed profile's window is
its limit up to 256, runtime-floor's 128; 128 derives, 64 is refused with required 128); the
tessellation control range, the engine identity and spill tests in each profile's window; and
the runtime's push_window, patch and indirect token tests in two arms each, the device's own
limit and the limit held at 128 by the tests' device shim (tests/command.rs push_window_128,
DeviceOptions::described).
Verified:
- m3-max-68088 (this tree): fmt, the signatures table, the refusal surface, clippy -D warnings
plain, --cfg m2v_gpu and --cfg m2v_cpu_icd, workspace Rustdoc -D warnings: each exit 0. The
runtime suite on lavapipe (--cfg m2v_cpu_icd): 647 passed, 3 skipped. Its push lines read
"push_window: the push window is 256 bytes", "push_window_128: the push window is 128 bytes",
"window 128, 12 buffers: 3 ring writes and 3 pushes over 3 dispatches", "icb_tokens: ... the
push window 256 bytes, 25 slot words", "icb_tokens_128: ... the push window 128 bytes, 9 slot
words", and draw_patches_full_range at 256 and _128 at 128.
- m3-max-68089 (this tree): the core crates 3881 of 3882 passed, 24 skipped; the one failure
is the golden table, stale under runtime-floor's moved fingerprint (1855 cells, one per row
observed on Linux, 0 new, 0 gone, 0 under a changed source, 0 changed under an unchanged key).
Validation 1314 passed, 3 skipped. The translator's push tests print each committed profile's
window: runtime-floor 128, the vertex function ending at 120, 9 inputs; the 14 others 256.
- m3-max-68067: the whole runtime suite on lavapipe at an earlier tree of this change
(a98af765ad, before the rebase onto
|
||
|
|
951285e7a7 |
Runtime: a pipeline state answers before the driver's create of its main pipeline, which finish_pipeline makes
What: new_compute_pipeline_state and new_render_pipeline_state now do everything up to the
driver's create of the state's main pipeline (every lowering, every refusal and Metal's own errors,
the shader modules, the samplers' numbering) and answer. The main pipeline is the one VkPipeline
whose key the descriptor holds: a tiling kernel's tiles', an image-only kernel's square
workgroups', an observing kernel's at its required size or declared bound where it takes no
threadgroup memory length; a render content's triangle or patch class, and the line or point class
its inputPrimitiveTopology names. ComputePipelineState::finish_pipeline and
RenderPipelineState::finish_pipeline, which have no Metal counterpart, make it on the calling
thread through the device's pipeline cache. A second call makes nothing. A dispatch or a draw
before it waits for the make in flight or makes the pipeline itself, a first-use wait
(first_use_unfinished_waits), and records what it records with the pipeline made: a state never
finished runs the same. A kernel past the stage bound still makes its main pipeline in the
creation, so StageUnfilled and StageSize reach the helper at the make. Render's main pipelines sit
in a new cell (render::Main); compute's use the kernel's variant cells, started as
VariantStart::Finish. Metrics: finished_pipelines, finished_pipeline_nanos, failed_finishes, and
first_use_unfinished_waits with its time and longest wait. The harness and the replay player call
finish_pipeline inside their make, so their make times and VkPipeline counts still hold the
driver's share.
No Metal answer moves: every answer getter reads values fixed before the driver's create. The
`made` bit of dispatch_variant, no answer of Metal's, reads false until a finish, a
prepare_dispatch call or a dispatch made the main pipeline; the key does not move.
A driver's create that fails after the answer is not kept: finish_pipeline returns Error::Vulkan
and counts failed_finishes, and the first dispatch or draw that needs the pipeline makes it again
and returns the Error::Vulkan if that fails too. That is a new known gap in the runtime README
("Known gaps of pipeline states"), where Metal fails the creation instead. docs/REFUSALS.md does
not change (no refusal moved; refusal_surface --check passes).
Why: on the consumer's first launch the guest waits on the runtime's pipeline creates, and the
driver's compile is most of a make. Answering first lets the consumer run that compile beside the
guest's own work.
Tests: translate.rs every_device_answers_a_state_before_its_main_pipeline_is_made and draw.rs
every_device_answers_a_render_state_before_its_main_pipeline_is_made check that no pipeline is
created at the answer, that every answer is equal before and after finish_pipeline, that the
finish makes the main pipeline once (VariantStart::Finish on compute), that a second finish and
the first use make nothing, and that a state never finished makes its pipeline at its first use,
a first-use wait. Without the form both are expected to fail at their first check, since the
creation made the main pipeline (not run against the old creation).
translate.rs every_device_makes_a_state_s_main_pipeline_once_across_its_finish_and_a_preparation
checks that a prepare_dispatch after the finish makes no second VkPipeline (pipelines_created
unchanged), that a finish after a preparation that made it makes nothing, and that the two called
at once on two threads make one pipeline between them, so a `made` read false costs no second
driver create. main_cells.rs (no device) checks a failed finish
that keeps nothing, then a draw that makes the pipeline again, and a draw during a finish that
waits for its make. The existing device tests' state helpers finish their states.
VariantStart gains a variant: 0 hits for VariantStart in the consumer's checkout at 92ffbed817.
Verified at tree
|
||
|
|
91fed9449c |
rt: the pipeline cache holds up to 128 MiB, so one guest's set on the Mac host's driver fits
What: PIPELINE_CACHE_BOUND goes from 32 MiB to 128 MiB, on every host. Nothing else about the cache changes: a cache past the bound when the reaper looks is still replaced by an empty one, the blob is the same single file per kind of device (at most four), written whole, and the counters are the same. Why: the owner's word, "Re 179, I'll take the 128mb cache". On KosmicKrisp (the Mac host's driver) a pipeline's cache data is about 140 KB against 3-25 KB on NVIDIA's, RADV's and ANV's drivers. One long recorded session's 448 pipelines write 62.6 MB there (m3-max-67847), and a guest boot's set reached 32.3 MB, so at 32 MiB the cache was replaced and a later launch made those pipelines again. With the bound at 32 MiB, re-making the 448 in one process took 1,669-2,370 ms after a replacement (m3-max-67741, m3-max-67789), against 80.4-81.0 ms with none (m3-max-67847). The cost, now stated in the runtime README: the blobs take up to 512 MiB of disk (four kinds of device at 128 MiB). On KosmicKrisp a full cache's seed holds about twice its data in host memory from device start: seeding from a 59.6 MiB blob raised the footprint by 119.3 MiB before any make (m3-max-67977), so about 256 MiB is expected at the bound there. Each write is the whole blob: a cold run with the bound lifted wrote 9 times, 271.9 MB, for a 62.6 MB blob (m3-max-68006). Docs: the bound's doc in cache.rs; DeviceOptions::pipeline_cache_dir and pipeline_cache_cap; Metrics::pipeline_caches_replaced and pipeline_cache_writes_skipped; Gauges::pipeline_cache_bytes; the runtime README's pipeline cache paragraph and its known gap for KosmicKrisp, reworded to 128 MiB with the measured pairs at 32 MiB kept. Test: the replacement test (tests/translate.rs) sets the bound to one byte under the cache's own size with Caches::set_bound, so it passes the bound whatever the constant is, and then restores PIPELINE_CACHE_BOUND. It needs no 128 MiB of pipelines and is unchanged. Verified: fmt, the refusal surface and the signatures table locally. The dev checks and an Iris states-only play (caches replaced and blob bytes) follow on development. |
||
|
|
6ec733421c |
Runtime: a kernel past the stage bound holds no VkShaderModule; each make of its pipelines makes its own and destroys it
A heavy kernel (past the stage bound, made only from its helper's cache data) kept the shader module its words made for the content's whole life, though only its VkPipelines' creates name it. A driver keeps a copy of the module's code for that life: on an RTX 3090 (NVIDIA 620.70.06, job m3-max-67862) destroying the module of kernel 16d856fc (7,966,928 bytes of words), its pipeline kept, gave back 7.6 MiB of heap, per heavy content, while the app runs. The kernel now holds one of two things (`Code`): a light kernel's shader module, made with it as before, or a heavy kernel's `Heavy`, its words. `stage::made` makes a shader module of those words only once the pipeline's entry holds data, creates the pipeline through the entry's cache and that module, and destroys both once the create returns (Vulkan: "A shader module can be destroyed while pipelines created using its shaders are still in use"). A make refused unfilled makes no module. Two makes of one kernel's variants at once each make their own, since make_pending lets go of the variants' lock before it creates; a module-less create needs maintenance5 or graphicsPipelineLibrary, neither on the floor. `release` frees a module only for a light kernel. The words stay held (dropping them is a later step), and nothing else changes: the same stage keys, entries, requests and wire. Docs: the runtime README's "Kernels past the stage bound" make bullet and the map paragraph's "its shader modules", and the module docs of stage.rs and pipeline.rs. |
||
|
|
6cc7e45145 |
Tests: a kernel past the stage bound holds no shader module once its state is made, and a later variant is made from its own fill
The stage test now reads, after the helper's fill and the state's make, whether the content's kernel holds a VkShaderModule of its own (a test-only read, `Kernel::holds_module`), and makes a later variant of the same kernel: an indirect dispatch's at threadgroup size [8, 1, 1], which `prepare_dispatch` refuses unfilled with a request of its own; once the helper fills that entry, the variant is made from it (two fills, two pipelines from stage fills). At this commit a heavy kernel keeps the shader module its words made for the content's life (pipeline.rs `Kernel::module`), so the first holds_module assertion fails on every device that keeps a blob. The next commit drops the module. On lavapipe, whose pipeline cache data begins with no header, the test takes its NoPipelineCache branch as before. |
||
|
|
991a8b04ff |
Runtime README: the pipeline cache's 32 MiB bound is a known gap on KosmicKrisp, with its measured re-make pairs
What: one known-gap bullet under the pipeline states' gaps. On KosmicKrisp one large app's pipelines pass the 32 MiB bound (about 140 KB a pipeline in the blob, against 3-25 KB on the three Linux drivers for the same 448), so the cache is replaced and the next launch makes them again. Why: the planner kept the bound (a full cache holds about 119 MiB of host memory on that driver for 448 pipelines) and ordered the gap recorded where a user reads it. Measured (docs only, no code): M3 Max, KosmicKrisp in Mesa 26.3.1, glbench's 448 pipelines: in-process re-makes 1,669-2,370 ms bounded with 45-60 hits (m3-max-67741, m3-max-67789) against 80.4-81.0 ms unbounded with 448 hits, seed footprint +119.1 MiB (m3-max-67847). |
||
|
|
4014d3bc80 |
Tests: the Direct3D 11 views test prints Vulkan values as raw numbers and reads the image's usage through its object
The Windows clippy under --cfg m2v_gpu (job m3-max-67861, both Windows targets) refused the test: ash's Vulkan types have no Debug here, and the image's usage accessor is TextureObject's. The print now gives each format as its VkFormat number, the usage and the external memory features as hex bits, and an error as its VkResult number. |
||
|
|
c669ef7246 |
rt: a Direct3D 11 plane's image lists every format its texture views as, where the import query takes the list
What: import_d3d11_surface's plane image listed only its own format and the descriptor's (and none where they are equal), so a view in any other format Metal takes of the plane's texture (an R8Uint view of an R8Unorm plane with PixelFormatView usage) was Gap::TextureView of SurfacePixelFormat on every Windows device. The image now lists its own format, the descriptor's and the formats the descriptor's texture lists for views of another format, MUTABLE, kept where vkGetPhysicalDeviceImageFormatProperties2 answers that list importable with the image's usage; else the list it had, and such a view stays the typed gap. The usage is still decided with the old list, so a plane the import took before is made as before where the device refuses the longer list. texture.rs is unchanged. The import query is one function (d3d11::import_query) that the product and the new Windows test both call. Why: a consumer boot on the UHD 630 met 14 SurfacePixelFormat refusals of swizzled views changing a surface plane's pixel format. Tests: tests/d3d11.rs, every_device_views_a_direct3d_11_plane_in_another_format_where_its_import_lists_it (m2v_gpu, Windows): both planes with PixelFormatView usage take a swizzled view in another format of their class (R8Uint, RG8Uint) exactly where the import query takes the full list, else the typed gap, and it prints the query's answer with the full list and with each other format alone beside the image's own. tests/surface.rs, every_device_views_a_surface_plane_in_another_format_through_a_swizzle: an exported surface's R8Unorm luma with PixelFormatView usage takes a swizzled R8Uint view, through which rt's writes read back exactly through the plane. Docs: the import's doc comment, TextureViewKind::SurfacePixelFormat's doc (which counted no such view; it now covers both surface kinds), and the rt README's Direct3D 11 surfaces paragraph. REFUSALS.md regenerated: unchanged. No public item changed. Not claimed: the Direct3D 11 path has not run on a card. Whether a Windows driver's import query takes the longer list is unknown until the Windows test runs; the bug row stays open. |
||
|
|
c87452da05 |
Validation: the device tests the own-context executor ran assert what the runtime route does
The own-context executor's deletion pointed six device tests at the runtime route, and on
lavapipe (m3-max-67674) they failed: the route draws one library's stages with a generated
companion, and the runtime compiles under the identity domains. Each now asserts what the runtime
route does, or goes where the route cannot express it:
- a_loaded_pointers_buffer_written_past_its_end_is_refused_uncontained (was ..._is_guarded):
under the identity domains a loaded pointer is used as given and no check bounds it
(docs/API.md, section 1), so the run refuses the target, Uncontained naming LoadedPointer.
- cube_and_cube_array_face_reads_are_refused_under_the_identity_domains (was
cube_and_cube_array_faces_read_the_authored_layers): the translator refuses texture_ops.ll's
cube_faces under the identity domains (Unsupported{IdentityDomains}, NotImplemented, for the
cube argument read by face).
- an_index_past_a_one_layer_pass_renders_the_pass_s_slice: the same slice, with no withheld
validation message (the runtime route withholds none).
- a_constant_fragment_colors_the_quadrant_metal_draws, a_vertex_varying_reaches_the_fragment_stage
and a_looping_fragment_draws_as_compiled go, with their helpers: each draws a vertex and a
fragment function of two owned libraries with no companion, which only the deleted executor
drew. Metal's y-up quadrant stays asserted by
an_observed_vertex_case_draws_into_its_generated_observer (QUADRANT, top_right); a pipeline of
two libraries' stages is compared with Metal by the conformance case shader_stencil. A varying
across two libraries by its user key, and a looping fragment drawn as compiled, have no
runtime-route test now.
docs/CONFORMANCE-COVERAGE.md is regenerated (python3 -I scripts/conformance-coverage/coverage.py):
the rate-map modules no longer declare the notice, 44 modules to 41.
Verified: the coverage script's output; the device tests are not yet rerun (the check job follows).
|
||
|
|
837d7bd5f7 |
Validation: the comparison table names no rate-map note, and the runtime guard takes the binder's edited sources
Fix forward for the four public items' commit, from job m3-max-67664 (the full check): the observation contract's comparison table and its tests still listed `PrecisionNote::RasterizationRateMap` under the alias `N::`, which the earlier search (`PrecisionNote::RasterizationRateMap`) did not match. A search for `::RasterizationRateMap` outside `Feature::`, `ToolingRequirement::` and `bind::` now gives 0. runtime-sources.sha256 takes the hash of the binder's sources as this branch leaves them. No run's behaviour changes, so RUNTIME_VERSION stays: the status decode drops the replay fault fields no module writes; the rate-map errors went from test support alone; RateMapAxis only changed visibility; bind/plan.rs and bind/state.rs changed doc comments. |
||
|
|
751b6e8bc6 |
Runtime README: the 4:2:2 formats and ray tracing's bound acceleration structure are known gaps by name; the bind state names who sets buffer ranges
Two gap rows the cut owes, so no Metal feature that rested on a binder item leaves silently:
- Known gaps of textures: `GBGR422` and `BGRG422` are `Gap::TextureFormat` at every make and at
`heap_texture_size_and_align`, because the translator's format table holds them as a decoded
`RGBA8Unorm` twin (Vulkan views its 4:2:2 formats only through a sampler Y'CbCr conversion), a
form the runtime does not make. Read from the runtime's `form` (texture.rs: `viewed` is false
for `FormatEmulation::Decoded`) and from conformance's known-gaps-rt.tsv, whose
chroma-pair-copies, chroma-pair-texel-reads, chroma-pair-texel-samples and heap-sizes-422 rows
record `Unsupported("no texture of GBGR422 is made on this device for the usage")` on every
venue. The decoded twin stays: the runtime reaches it to refuse the format.
- Known gaps of pipeline states: ray tracing's bound acceleration structure, what the binder's
`BoundAccelerationStructure` stood for. The runtime makes and binds no acceleration structure,
and enables neither `rayQuery` nor `accelerationStructure` (neither extension is in its list),
so the translator refuses a ray-tracing function as `Unsupported{RayTracing}`, as its
`tests::engine_ray_tracing` asserts on a profile without them.
bind/state.rs's `BufferRanges` doc said the runtime sets the ranges on each stage table; the
runtime builds no stage table, so it now says the plan's caller does.
(cherry picked from commit 66c98efa8b452665a236298f18f363b8bdf29a72)
|
||
|
|
b5916b2f7b |
Translator: four public items nothing produces or names go: the replay fault report, the rate-map note, two rate-map errors and the rate-map axis
Four of the eight findings on the binder's public surface, the ones no plan reaches: - (3) `bind::ReplayFaults`, with `StatusReport::replay_fault` and `replay_faults`, `StatusBits::REPLAY_FAULT` and `StatusWord::ReplayFaults`: no module writes the word or the bit. `StatusWord::SeqCstFences` keeps index 3, so no module changes; word 2 is now one nothing writes. - (5) `PrecisionNote::RasterizationRateMap`: no module or runtime path records it (the decoder is Apple's arithmetic, and the runtime draws no rate-mapped pass). Its API.md catalogue entry goes, and so does conformance's `Degradation::RasterizationRateMap` with the notice allowances of the three rate-map families, whose runtime side refuses every rate-map call (`Unavailable`, known-gaps-rt.tsv), so the allowance never applied. Validation's c3 list of deferred near-equivalents drops it, and its tests use `SparseResidency` instead. The translator's rate-map tests drop their assertions that the note is absent. - (6) `RateMapError::NoLayers` and `LayerCount`: only the test support `from_layers` made them; it now panics on a count no test passes. - (7) `RateMapAxis`: in no public signature; now crate-private. The codec encodes a precision note by its name, so no other note's encoding moves. No refusal in docs/REFUSALS.md changes (refusal_surface.py --check passes as is). Consumer search at reims-vgpu development cae6d420df, `git -C ~/Projects/steelbrain/reims-vgpu grep -n -w ITEM development -- '*.rs'`: ReplayFaults 0, replay_faults 0, replay_fault 0, REPLAY_FAULT 0, StatusWord 0, RasterizationRateMap 0, Degradation 0, RateMapError 0, NoLayers 0, LayerCount 0, RateMapAxis 0. Left for later, with the census's re-record: two authored cases' rationales (shard_013, lines 33 and 34) still say the decoder's answers carry the note. (cherry picked from commit b68324630b4c8446d7fe730b3877b31727546d1c) |
||
|
|
c1bcce40f5 |
Validation: the drm-shim recipe goes, with its image, its wrapper and its test
The runtime does not open the drm-shim devices as a guest's device (step 0's P2, ruled: the shim has no venue), so the corpus-pipeline kernel rows that now run through the runtime have no drm-shim sweep, and nothing else used the recipe. Gone: scripts/drm-shim.Dockerfile, scripts/drm-shim-exec, scripts/linux-gate's `--recipe drm-shim` with its `--driver` and `--chip` (and `--recipe` itself, which had only `gate` left), scripts/linux-gate-vulkan's shim ICD block, and the integration test tests/integration/drm_shim.rs. Driver acceptance on RADV, ANV and NVIDIA stays on the real cards. Search at this commit: `git grep -n -i -E 'drm.?shim|M2V_DRM_SHIM'` gives 0 lines; `git grep -n -e '--recipe'` gives 0. The consumer has no copy of these scripts (they are not part of a published crate). (cherry picked from commit 59693588b00825ed312beb67841fe5b8352a6508) |
||
|
|
0bf0195cfa |
Validation: the integration test's row requests carry no projection, and acceptance imports no render descriptor
Fix forward for the commit before, from job m3-max-67607 (the full check): clippy's unused import of RenderPipelineDescriptor in acceptance.rs, and the compile-worker integration test still naming Projection in its row request and in compile_row_in_worker's arguments. (cherry picked from commit 2ea78f2af8199aa1d9e78b61e1b2f70ab2bc999a, its message reworded) |
||
|
|
b92c74e489 |
Translator: a render or mesh pipeline compiles only as the runtime compiles it; validation stops compiling for a bind shape
`Device::compile_render_variant` and `Device::compile_mesh_variant` leave the public API. The runtime renders under `VariantKey::new()` alone, and since the census compiles as the runtime does, the only callers left were validation's bind-shape compiles: the `PipelineRequest::BoundCompute` request, the `shape` of `VertexDraw` and `Draw`, and corpus-pipeline's `--pulled` sweep (its `Projection`). Those go with them. `compile_render_pipeline` and `compile_mesh_pipeline` compile under `VariantKey::new()` as before, and `compile_render_pipeline`'s doc now carries the call-stack sentence the variant's doc held. The crate's own tests keep a test-only `compile_render_variant`. In validation the kernel compile the census and L4 share (`variants::compile_kernel`) stays, with its partial-simdgroup test now comparing against explicit plain and emulated compiles. The binder's shape-compile loop moves under `#[cfg(test)]` (`variants::bound`) for the binder tests that still plan a kernel until the binder goes. The draw test helpers compile as the runtime does. The worker's bound-compute exchange test goes, and its linking test sends a `Kernel` request. Nothing here changes what plan_for is given or returns: the census's artifact digest still plans the same pipeline for the same shape. Consumer search at reims-vgpu development cae6d420df: git -C ~/Projects/steelbrain/reims-vgpu grep -n -w compile_render_variant development -- '*.rs': 0 git -C ~/Projects/steelbrain/reims-vgpu grep -n -w compile_mesh_variant development -- '*.rs': 0 api_signatures.tsv drops the two records. (cherry picked from commit 15766b53448bafc7cd16d9acd335dd3d4c45d734) |
||
|
|
499bbc21b8 |
Validation: the m2v_gpu draw test returns its output directly, and a doc link names argument_buffers::sampler_ids
clippy under --cfg m2v_gpu and m2v_cpu_icd (let_and_return) and Rustdoc (an unresolved link) in m3-max-67528 on 5808aaa769. (cherry picked from commit 4590c1664265429b932f96676c36ea893dcc358a) |
||
|
|
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)
|
||
|
|
556e845f18 |
Tests: the range and display-library report tests read their lines after the mode line
The commit before this one puts the mode line first in every report, and these two tests read the range line as the report's first and the display library's as its second. Job m3-max-67784 (the validation suite at b846f1ebb3) failed exactly them, 1331/1333; they now read the range line second and the display library's third, and the range test reads the mode line first. |
||
|
|
d15ab4501c |
Validation: command-replay play --states-only yes plays the state records and presents alone, and the report's first line names the mode
A states-only play was a probe's environment variable (M2V_PROBE_STATES_ONLY, on a probe branch that never lands): a tree without the probe played the streams in full and said nothing, so two states-only plays of a translator change read as plays of nothing they were meant to check. The mode is now an option of the validation player itself, --states-only yes|no (no by default), and every report's first line names it: `mode full: every call` or `mode states-only: the device, library, function and pipeline state records and the presents alone (--states-only yes)`. A bad value is a bad command line (exit 2, `error states-only: ...` as that first line). Player::states_only passes over every call but MTLCreateSystemDefaultDevice, m2v.deviceIdentity, the newLibrary*, newFunction*, newDynamicLibrary*, newRenderPipelineState* and newComputePipelineState* calls and m2v.present, the probe's set unchanged, so frames and the recording range end where a full play's do and the pipeline states are made cold as a full play makes them. A states-only play writes none of the matrix's judged metrics, since it runs none of the work they count. The completion-fix line keeps its place by itself, now after the mode line; its test reads it there, and a new test reads the mode line for yes, no and a bad value. docs/REPLAY-STREAM.md section 10 and the player's module doc and usage name the option and the line. |
||
|
|
aaed3e021a |
Translator: the partial-threadgroups variant asked with another form is refused as PartialThreadgroups before the flat variant's own check
The commit before this one moved the variant's combinations with flat_grid, folded_groups, replay_bindings and emulated_simdgroups to Feature::PartialThreadgroups, but analyze_one checks flat_grid on a kernel that observes its partition first (NotRepresentable, GpuEncodedIndirectCommands), so partial_threadgroups with flat_grid on an observing kernel still met that refusal: tests::engine_partial_threadgroups:: partial_threadgroups_are_refused_with_another_form failed at form 0 (left GpuEncodedIndirectCommands, right PartialThreadgroups; job m3-max-67679, the translator suite at d60c710999; the other 3065 tests, the runtime suite on lavapipe 645/645, fmt, clippy in three configurations, workspace Rustdoc, api-docs, signatures, refusals and the runtime guard passed). The variant's combination check now runs before the flat variant's, so the variant asked with another form is refused as itself. Only inputs with partial_threadgroups change, as in the commit before; no version moves, for the reasons that commit gives. docs/REFUSALS.md does not change (the same sites). |
||
|
|
0702b43baf |
Translator: a kernel's partial-threadgroups variant that cannot be made is refused as PartialThreadgroups
Every refusal of the partial-threadgroups variant (LoweringInputs::partial_threadgroups) named Feature::GpuEncodedIndirectCommands, the feature of indirect command buffers a kernel encodes, which none of them is. A new feature, Feature::PartialThreadgroups (NotImplemented), names them all: - lower/select.rs (finish): the kernel's simdgroups run on the emulated tier (its profile's subgroups, its lockstep order or its pinned widest mode give it that tier), whose exchanges are not walked past the grid. This is the one a SIMD-group or quad-group kernel meets on a device whose subgroups are narrower than 32 (lavapipe, and the Iris Xe in the equality test). - lower/simd/divergent.rs (barriers): a kernel whose uniform barriers need a vote word its stage's workgroup memory cannot hold beside its static arena. - lower/mesh/mod.rs (plan_partial_groups): a tile function, a kernel that reads a stage-input region, one with compute derivatives or a cooperative imageblock slice write. - pipeline/compile.rs (analyze_one): the input beside flat_grid, folded_groups, replay_bindings or emulated_simdgroups. Its condition was one with the folded and call-threadgroups combinations, which stay GpuEncodedIndirectCommands; it is split in two. Today the four sites build the same refusal with no symbol, so no text tells the causes apart, and none is added. The flat variant's refusal at lower/select.rs:1715 (flat_grid with call_threadgroups, on the emulated tier or with a workgroup synchronization) stays GpuEncodedIndirectCommands: it refuses the flat variant, not the partial-threadgroups one, with the flat variant's other refusals (lower/access/mod.rs plan_replay, pipeline/compile.rs analyze_one); the runtime never sets flat_grid (no hit in crates/metal2vulkan-runtime/src). The runtime's test of a refused variant (pipeline.rs, the non-observer's lowering) matches the new feature, so a variant refused now is still kept as a refusal and its state runs the plain module. A refusal kept in a device's cache directory before this commit still reads: the marker (cache.rs REFUSED) holds no feature, and it is found by the variant's key (function_compile_key), which this commit does not move. No version moves. No persisted outcome records the moved refusals' class: - the runtime's cache directory: the marker above, under an unchanged key; - the golden tables (golden_hashes.tsv, 77 GpuEncodedIndirectCommands cells; public_fixture_expectations_engine.tsv, 96): every subject compiles under no inputs, where partial_threadgroups is false, and every moved site is reached only under it; - the authored compile census (corpus/authored-compile.tsv): no GpuEncodedIndirectCommands cell; - the committed observations, cutover lists and conformance recordings: no hit (git grep -c over corpus/, cutover/ and crates/metal2vulkan-conformance). The runtime guard's inputs do not change: every file edited here is outside them or on the guard's list of compile-time files. The consumer: git grep -n 'GpuEncodedIndirectCommands' cae6d420df in its checkout gives 0 lines (and 0 for PartialThreadgroups). docs/REFUSALS.md is regenerated (scripts/refusal-surface/refusal_surface.py), with the new row's reach mark in reach.tsv (app: a dispatchThreads grid that is not whole threadgroups), and the signatures table (api_signatures.tsv) has the new variant (signatures.py --bless); the api_surface table lists Feature as an enum, not its variants, so it does not change. docs/API.md section 5 and the partial_threadgroups input's doc name the new feature. The translator's partial-threadgroups tests assert it. |
||
|
|
b4af7c2d78 |
Tests: a stored slot pointer, a query-only argument-buffer texture and a tiling kernel's indirect make, pinned as they are
Three gaps that no test held at development |
||
|
|
09fde98501 |
Tests: the variant-answers test lowers the variant where the plain module is refused, and counts the kernels whose variant alone lowers
The state lowers the variant first, and makes a state from it alone where its make takes no vote word that can pass the limit. A kernel whose plain module the translator refuses was refused a state before; it is made now where its variant lowers. The test counts those kernels apart, with the plain module's refusal, so a run says how many there are. |
||
|
|
e0a7eb3c53 | rt: the translations counter's doc in one paragraph | ||
|
|
14a840dda8 | rt: the translations counter's doc counts each module a compute state lowers | ||
|
|
d8eb5ea024 | Tests: an observing kernel's state lowers one module, its partial-threadgroups variant, where its variant takes no vote word | ||
|
|
e0532364a1 | Tests: the variant-answers test's lowering closure takes its inputs by any borrow | ||
|
|
1484cb462c | Tests: the variant-answers test's lowering closure names its error type | ||
|
|
a103b4dc5a |
rt: an observing kernel's state lowers its partial-threadgroups variant alone, and its plain module only where the variant's vote word can pass the threadgroup memory limit
Since |
||
|
|
2aacd87209 |
Tests: a post-tessellation function's SIMD-group or quad-group call is refused before any stage's subgroup facts are read
A post-tessellation vertex function lowers into a TessellationEvaluation module and keeps its
Metal stage, Vertex. lower::tessellation::finish (select.rs, before the tier is chosen) refuses
one whose simd class is not None with NotImplemented(Tessellation) on every device: the profile
models no tessellation evaluation stage's subgroups. Nothing in the tree tested that refusal.
The new test, tests::engine_tessellation::
post_tessellation_simdgroup_functions_are_not_implemented_whatever_the_stages_subgroups, compiles
three post-tessellation functions over a quad patch, given as AIR text in the test: simd_sum(u),
quad_shuffle(u, 1), and u itself. It compiles them on two profiles made from the Iris Xe (RPL-P)
description: one with TESSELLATION_EVALUATION taken out of subgroupSupportedStages, and one with
VERTEX taken out. On both, the two calls are refused NotImplemented(Tessellation), and the body
without a call compiles. As a control, rvc_simd_vertex's vertex function compiles on the first
profile and is refused on the second, Unsupported{SubgroupOperations} needing
SubgroupStage(Vertex). That shows the two profiles' vertex stages differ, and that neither
stage's facts decide the post-tessellation answer.
Test only: no product code changes, so no version, golden table or signature moves.
|
||
|
|
9085f1e6f3 |
Validation: the sweep's runtime device grants its sampler range once
A grant lasts as long as the device, so the second kernel row on one device
could not grant the sampler range again ('Sampler index 1 is granted already',
the one-device device test on lavapipe, job 67419). RuntimeKernels::open grants it
once; each row's constexpr samplers are numbered in it, and a state gives its
samplers back when it drops.
|
||
|
|
51e69e5211 |
Validation: corpus-pipeline's sweep device carries its kernel rows' runtime device
Clippy (job 67410) refused attempt_row's eighth parameter. The sweep's device kind and its one runtime device for kernel rows are now one SweepDevice, which opens the runtime device at the first kernel row (SweepDevice::kernels). |
||
|
|
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. |
||
|
|
0c45d38b01 |
Tests: the runtime's kernel acceptance device tests run on Linux, as every runtime-route device test does
The three kernel-row tests of acceptance_pipelines made their rows through the runtime on any device lane, macOS included. A Mac's MoltenVK is below the runtime's floor, and every other device test that goes through the runtime is gated to Linux. These now are too. The render-row tests still run on both. |
||
|
|
ce1c64485f |
Validation: corpus-pipeline's rows keep its standard output, and the runtime route puts the layer's variables back
The layer printed a line naming its log file to stdout every time the
runtime made an instance with the validation layer's variables set, and
stdout is where corpus-pipeline writes its rows. At the start of a sweep
corpus-pipeline now duplicates its stdout for the rows and points the
stdout descriptor at stderr, so nothing else lands between two rows.
runtime::validated left VK_INSTANCE_LAYERS and the layer's variables
set after its attempt. Every instance the process made after that read
them, including corpus-pipeline's own context for its next render row.
They are now put back as they were once the attempt returns.
Seen in the first lavapipe leg of d6954234b7 (m3-max-67309): 43 rows
with a log line glued to their key, and one render row INVALID_USAGE
from the loader ("libnvidia-tls ... cannot allocate memory in static
TLS block").
|
||
|
|
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
|
||
|
|
9a01f1e8ee |
rt: an observer's dispatch runs its partial-threadgroups variant only where the variant's threadgroup memory, its vote word included, is within the device's limit
|
||
|
|
1133f4290a |
rt README: an observing kernel's whole grids on its partial-threadgroups variant are a known gap, measured per dispatch on the XTX and the Iris
The planner's ruling on the one-module change: the XTX's whole grids, 3.5% slower a dispatch on the variant (4.22 against 4.08 us, m3-max-67284), are a recorded loss, not a restore; the Iris reads 2.7% faster (m3-max-67285); NVIDIA was not timed per dispatch. The consumer reopens it. Docs only. |
||
|
|
f090d99c9a |
rt: an observing kernel's indirect dispatches run its partial-threadgroups variant too
decide() moved an observer's whole grids and threadgroup dispatches onto the partial-threadgroups variant but left its indirect dispatches on the plain module, so a state dispatched both ways made a second VkPipeline of the same size on the first indirect dispatch. By the translator's dispatch regions (lower::dispatch), an indirect dispatch states region[1].xyz = 0 and takes the single-region form, and the variant's partial answers sit only under region[1].w NONUNIFORM, which the encoder's indirect region never sets. So the variant runs it unflagged, every invocation live, as it runs a whole grid. decide() now drops the direct-only condition: one module and one VkPipeline a size run every dispatch of an observing kernel where the variant takes the threadgroup. Metrics::partial_variant_whole_grids counts the indirect ones with the whole grids. No key, version or translator file changes. Tests: the observing kernel's run table expects its indirect dispatch on the variant (one first-use wait fewer where it shares a size with a direct dispatch, and one more count); prepare_dispatch's table gains an indirect dispatch at the whole grid's size that finds the variant made (0 makes; 1 before this change); the variant-key table groups the indirect dispatch with the direct ones. The conformance case compute-indirect-threadgroup-grid dispatches region_k, an observer, indirectly; its dispatch-forms line is the check that the replay ran it on the variant. Checks to run on this commit: tests::translate and the conformance replay on a card per vendor. |
||
|
|
5205d18d12 |
Tests: the observing kernel's first-use waits and whole grids follow the device's SIMD tier under one module
Each run's module is derived from the plain module's SIMD multiples on the device: a ragged grid the variant, a whole-SIMD threadgroup the variant where direct and the plain module where indirect, any other the emulated variant; the test counts one first-use wait per module and size, and the whole grids on the variant. The 5080 (m3-max-67283) read 4 + 1 waits where the two-module count was 5 + 1; every word matched. |
||
|
|
6453edbea7 |
rt: an observing kernel runs its whole grids on its partial-threadgroups variant, one VkPipeline a size for every direct dispatch
A kernel that observes its threadgroup partition made two VkPipelines for one threadgroup size: the plain module's for whole grids and threadgroup dispatches, and the partial-threadgroups variant's for ragged grids. The variant already runs a whole grid as the same regions unflagged (lower/dispatch.rs), so decide() now sends every direct dispatch the whole module would run to the variant where the variant is lowered and takes the threadgroup whole SIMD groups. Indirect dispatches, a refused or failed variant, and a threadgroup that is not whole SIMD groups of a kernel that runs only whole ones (the emulated route) keep today's module. A state with a declared bound or a required size makes one VkPipeline ahead instead of two. Metrics::partial_variant_whole_grids counts the whole grids that ran the variant; the player's executed counters and the conformance runner print it. Nothing re-keys: the translations are unchanged (the plain module is still lowered: its interface numbers the samplers, answers Metal's state and runs indirect dispatches), and no version moves (metal2vulkan-runtime is outside RUNTIME_VERSION's inputs). |
||
|
|
bb7caaa32a |
rt README: a fetch from a 2D array attachment, of one slice too, is the FetchedAttachment gap
The known gap listed what a framebuffer fetch cannot read through as "no 2D texture at its first level and slice", which covers an array texture without naming it. A layered pass renders into one-slice 2D array attachments, and a fragment function that fetches one is refused with Gap::Draw of FetchedAttachment; the wording now names that case. Verified: the layered case aa52a3e9 drawn through the runtime ends in that refusal on lavapipe, the Radeon 780M, Iris Xe and the RTX 3090 (m3-max-67271, 67270, 67267, 67269). |
||
|
|
77ea6d420f |
Tests: a layered pass is among the render cases the runtime draws
The route test still listed a pass of render_target_array_length 1 among the cases that stay on the own context; since the layered case draws through the runtime it is asserted there, and the doc says so. Verified: the validation suite at 62a8f41811 failed this one test only (m3-max-67098: 1334 passed, 1 failed); the rerun is the next job. |
||
|
|
0259428932 | Validation: the layered pass is made with its array length | ||
|
|
6d546f133c |
Validation: a layered render case draws through the runtime, into one-slice array attachments of a pass of its array length
A render case whose stage metadata names a render_target_array_index (render_target_array_length 1, executor_contract::render_target_array) stayed on the executor's own context, the binder's last render users there. It now takes the runtime route as the oracle draws it (metal::platform::attachments): each color target and the depth/stencil aspect a one-slice Type2DArray, the pass's render_target_array_length the case's. The rasterization-disabled sink stays the oracle's plain 1x1 Type2D. A layered multisampled pass is refused as the tool's limit, as the oracle models none (it refuses one with the same words). runs_render_through_runtime drops its render_target_array_length == 0 condition; the length is 0 or 1 by its derivation. |
||
|
|
d7bf09eb05 |
Tests: a buffer that ends at its texture's last texel resolves through the resolve image, nothing past it written
Where a texture's rows are padded and its buffer ends at the texture's last texel, the linear image's subresource reaches past the buffer. The render-reach rule then gives the linear image no attachment usage, on every device: 140 of 256 cells on the 780M (count job m3-max-67028). Such a texture now resolves through its resolve image: resolved is false, so the Image takes a Resolving. The copy's region is Pass::reach, which is never larger than the texture's extent, written at the texture's pitch. Its last byte is therefore the texture's last texel's last byte, which check_over's end <= buffer.length() holds inside the buffer. every_device_resolves_a_loaded_pass_into_a_shader_read_texture_over_a_buffer gains a third buffer on each pitch: Shared, of (599 x pitch) + 2,400 bytes. Every buffer now lies at the start of a block 256 bytes longer, with a Shared buffer over those 256 bytes. The host fills them with 0xee, and after every resolve of the row (the first, the second, the 300 x 300 pass and the view) the test asserts that none of them changed. The row's other checks are as before: the clear within one code, the padding unchanged, and the resolve copies (1 through the resolve image). |
||
|
|
d78f23726b |
rt: a view of its own format of a texture in place resolves through the texture's resolve image
For the consumer: a same-format view of a texture in place over a buffer of the runtime's own
memory, whose linear image takes no colour attachment usage, is no longer refused as a resolve
target with Gap::RenderPass{ResolveUsage}. Measured on the RTX 3090 and KosmicKrisp, where the
linear tiling renders no format, that is every texture in place. The view resolves as its texture
does: into the texture's resolve image, then the pass's end copies it into the buffer. A view of
another pixel format of such a texture stays refused, a known gap.
Why: the runtime refuses only what the device lacks, and the device lacks nothing for this view. A
texture over a buffer has one level and one slice, so a view of it covers the same texel bytes in
the same buffer place. A view of the same Vulkan format resolves into the same image, through the
same identity view.
How: resolve_attachment no longer requires the texture to be no view. The view's image is its
parent's, which carries the Resolving, and its Named holds the parent's one place. It now refuses
only a view whose Vulkan format is not the resolve image's (object.format != plan.format). The
copy is the same, from the view's Named, which is the parent's place. That is 3 product lines.
Where the linear image takes the usage, a view already resolves in place through attachment_view
(
|
||
|
|
d5917d9ee5 |
Tests: the earlier-version removal test lets the first store's removal thread end before it makes the directories
an_earlier_versions_pipeline_data_is_removed_at_open failed once in the suites at |