ddfc3a6da4e7408ebbf1003b8d45b2d5991795f4
10424
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
ddfc3a6da4 |
Translator and runtime: a kernel's partial threadgroup writes its shared slice among Metal's threads
The partial-threadgroups variant refused a kernel with an imageblock slice write every
invocation shares (texture::cooperative), as SharedSliceWrite. The walk guarded the shared
write like any other instruction, so its trailing workgroup barrier stood under `if live`,
and the walked invocations past Metal's threads skipped their shares. It now takes the shared
slice as one of the walk's synchronizations, on every tier (texture::shared_slice, in
SyncSet::WorkgroupBarriers and divergent::is_sync):
- every invocation reaches the slice's barrier;
- the invocations live at the slice write the slice's cells among them. In a partial
threadgroup those are Metal's threads: the first EmitCx::entry_threads invocations by lin.
The step of the shared loop is now that count rather than the workgroup's size, so Metal's
threads write every cell;
- a cell no thread of Metal's stored holds zero, the threadgroup arena's null initializer;
- the walked invocations store nothing in their cells before the barrier (the predicated walk).
The M3 Max recorded the same for Metal's own partial threadgroup, so this matches the
measurement rather than any documented rule. Probe imageblock_slice_past_the_grid, job
m3-max-85078: each cell of a thread past the grid lands zero, in two runs of two dispatches.
No MSL or Metal text says what such a cell holds, and the docs claim nothing beyond the
recording.
The shared slice is never by itself a reason to walk. Its guard's branch, at a
workgroup-uniform point, is taken by every invocation, so a kernel whose only non-uniform
synchronization is a shared slice keeps its unwalked module. Outside a walk the shared loop is
unchanged.
- error: PartialThreadgroupsCause::SharedSliceWrite goes, since nothing else raises it.
mesh::plan_partial_groups no longer refuses the variant for it. Feature::PartialThreadgroups'
and LoweringInputs::partial_threadgroups' docs drop it and say what the slice writes.
- runtime: its cache's refusal markers drop m2v-refused-slice (cache::REFUSALS has 5 entries).
PartialThreadgroupsSite::Structure's doc and the README's gap paragraph drop the slice.
Caches::refused now reads a variant's translation file in one lookup (the planner's
read-back of the cause table). It asked the store once per marker, and each Store::holds
opened the file in young and then old, and read it whole where its length was the marker's.
Three markers are 16 bytes, so one 16-byte file was read up to three times. Store::holds_one
takes the markers with their tags, opens the file once a generation, reads it only where its
length is a marker's, and matches the bytes against each. Store::holds is holds_one of one
marker. A hit in old still moves into young. Lookups count their opens under the tests
(Store::file_opens).
- tests:
- the red test turns green;
- each_structure_the_variant_does_not_take_names_its_cause keeps compute derivatives and
the tile function;
- the runtime's marker test drops the cause;
- api_signatures.tsv loses the two variant rows. REFUSALS.md and basis.rs regenerate
unchanged.
- a_variant_refusal_is_read_back_in_one_lookup_of_its_file writes each marker of REFUSALS
under a key of its own and reads each back with exactly one open. A missing key opens at
most twice, and a lowering of a marker's length is no refusal.
- SEMANTICS_VERSION 2366 (renumbered at landing: 2363-2365 went to arm 9, the blob move and the 1D bicubic): a partial-threadgroups
variant with a shared slice now compiles. RUNTIME_VERSION stays: no run of an unchanged
artifact differs, and the runtime-source fingerprint's inputs are untouched.
Verified:
- red d1d4b5cc9c, job m3-max-85298: a_partial_threadgroup_s_shared_slice_holds_zero_past_its_threads
fails at its compile ("unsupported: PartialThreadgroups: SharedSliceWrite"), and the filter's
other 20 tests pass. With Caches::refused asking once per marker, as before, the same job's
a_variant_refusal_is_read_back_in_one_lookup_of_its_file fails at 2 opens for
Structure(ComputeDerivatives). Green: 23 passed.
- suites (85298): product 3498 passed, 1 failed (golden_hashes_match_the_table, re-blessed on
development), 24 skipped; validation 1344 passed, 2 skipped; conformance 1055 passed,
0 skipped; doctests EXIT=0.
- clippy plain 85194, m2v_gpu 85193 and m2v_cpu_icd 85197 EXIT=0; rustdoc and api-docs 85195
EXIT=0, all at the tree of this change and the case that follows it.
- the guest's kernels, job m3-max-85164 (release, a Ryzen 7 7840HS): the two kernels this
refusal held in a recording's libraries lower and pass spirv-val on all 15 committed profiles,
under the plain module and both partial-threadgroups variants. The slowest row is moltenvk-m3's
emulated variant at 0.017 s, and the peak resident set is 32.6 MiB a process. Before this
change both variants were refused as SharedSliceWrite (job m3-max-85052).
- Metal's own answer, in the conformance case that follows (compute-imageblock-slice-past-the-
grid): recorded on the M3 (m3-max-85134), and equal on llvmpipe and on the RX 7900 XTX
(m3-max-85149).
|
||
|
|
7e1ca1af89 |
Translator tests: a partial threadgroup's shared slice holds zero past its threads (red)
The planner ruled the shared slice write in a partial threadgroup built (owner order 3406): the walk's guest library 5ba5f694ad0576ff refuses the partial-threadgroups variant of kernels #81 and #83 as SharedSliceWrite. The M3 Max recorded what Metal does (the probe imageblock_slice_past_the_grid, job m3-max-85078, two runs of two dispatches each): the slice write in a partial threadgroup writes every cell of the imageblock, and the cells of threads past the grid land zero in every run. a_partial_threadgroup_s_shared_slice_holds_zero_past_its_threads runs engine_imageblock's shared_slice (4x4 threadgroups, a 4x4 imageblock, each thread storing (x, y, 7, 9) in its cell before the barrier, the slice written by local id 0 at its threadgroup's origin) as the partial-threadgroups variant over a 6x7 grid. Of its 2x2 threadgroups, one is partial in x, one in y and one in the corner. The test uses the interpreter with the region flagged NONUNIFORM, on every committed profile that lowers the plain kernel, in both scheduling orders. Each cell of a Metal thread must land its (x, y, 7, 9), and every other cell of the slice must land zero. That pins the reason as well as the result: an invocation past Metal's threads would store a nonzero cell if the walk let it. engine_imageblock's texel helpers become visible to the test. Red at this commit: the variant is refused Unsupported{PartialThreadgroups} SharedSliceWrite. Verified: job m3-max-85298 fails it at its compile with that refusal, on the first committed profile (amd-780m-hawkpoint-radv). |
||
|
|
15d6344523 |
Conformance probe: what a slice write holds for the cells past a partial threadgroup's grid
A kernel with an explicit imageblock stores each thread's grid position in its cell, takes a threadgroup barrier on imageblock memory, and writes the slice from the thread at local (0, 0), the shape the translator's cooperative slice write takes. It is dispatched with dispatchThreads on a 21 by 13 grid of 8 by 8 threadgroups, so threadgroups at the x edge, the y edge and the corner are partial. The probe prints, for each kind of edge, what the texels of the cells past the grid hold after the write (the sentinel set before, a stored pattern, zero or other) and a hash of them, over two dispatches a run. It is the reading the partial-threadgroups variant's SharedSliceWrite form is checked against. What it measured, job m3-max-85078 (the Apple M3 Max, macOS 27.0.1; two runs of two dispatches, sentinels -1 and -2): every cell past the grid holds zero, 24 at the x edge, 48 at the y edge and 39 in the corner, with no sentinel, no as-if-ran value and no other thread's value; every grid thread's texel holds its own value; each command buffer completed, and the hashes are equal across the runs and sentinels. |
||
|
|
7d1dba5df0 |
RUNTIME_VERSION 2569: a sampler of Metal's undeclared filter 2 is made and filters as nearest
A Cubic sampler state is now made where the runtime refused it, so RUNTIME_VERSION moves 2568 -> 2569 at landing. SEMANTICS_VERSION stays at 2365: no module's words change. runtime-sources.sha256 is unchanged (cache/mod.rs is not one of its inputs; pin-compute equal). |
||
|
|
6706d5b97f |
rt and translator: a sampler of Metal's undeclared filter 2 is made and filters as nearest
MTLSamplerMinMagFilter's raw value 2 (SamplerMinMagFilter::Cubic) is declared by no SDK header, Apple page or Metal Shading Language text, and nothing a program asks tells it about the value, so it is undocumented Metal and is not emulated. Metal makes the state on every Mac measured. An Apple M3 Max filters it over a footprint wider than one texel, and a Radeon Pro 5300M and an Intel UHD Graphics 630 read the nearest texel (the conformance case's own inputs: jobs m3-max-85003 and m3-max-85004). The runtime now makes such a state and filters it as nearest on every device: no shader arm, no second pipeline, no query, no note. - rt Device::new_sampler_state no longer refuses a Cubic min or mag filter. Nothing raises Gap::CubicSampler now; the variant stays, documented so, because the consumer names it. - translator: SamplerWord::of sets no bit for a Cubic filter, so its word is the nearest filter's. SamplerWord::CUBIC (bit 30) is deleted (its one reader, the anisotropic word path, is gone on development). SamplerWord::FIELDS is now (1 << 30) - 1. unnormalized_reads compares the two filters as the device's (a Cubic filter's is NEAREST) rather than refusing Cubic. vk_sampler already made NEAREST of Cubic. - SamplerMinMagFilter::Cubic stays, because the consumer converts a guest's raw 2 to it. It is documented through regen_metal_enums.py's PRIVATE_DOCS as Metal's undeclared raw value 2, which the M3 Max filters and the x86 Macs read as nearest, and whose device sampler and word here are the nearest filter's. generated.rs is regenerated against the macOS 27.2 SDK. - docs: the runtime README's sampler line, RESOURCE-ID.md (the word's bit 30 is now 0, and the consumer makes a Cubic state as nearest), resource_words.tsv's three Cubic lines (bit 30 cleared: 0x40000000 -> 0x00000000 twice, 0x58f6ab53 -> 0x18f6ab53), and the comments in select.rs and extended.rs that said the runtime makes no cubic sampler. - reach.tsv's SamplerBicubicFilter row no longer names a runtime cubic sampler as its reach. REFUSALS.md and error/basis.rs regenerated (refusal_surface.py: Gap::CubicSampler has no raise site); api_signatures.tsv blessed (SamplerWord::CUBIC removed, FIELDS changed). - RUNTIME_VERSION: a Cubic state is made where it was refused, so it takes a bump, set at staging (left at development's 2568 here). SEMANTICS_VERSION stays, since no module's words change. runtime-sources.sha256 re-pinned. Consumer search (reims-vgpu development 1913fcbc15 and the steelbrain/* refs from the last day): Gap::CubicSampler, 2 hits (development crates/reims-vgpu-vulkan/src/rt_platform/diag.rs:3071 and :3109, a test that counts the gap's name), kept. SamplerWord::CUBIC, SamplerWord::FIELDS and SamplerMinMagFilter::Cubic by name: 0 hits. The consumer's rt_platform::state::tests::states_on_vulkan, which expects None for min_filter 2, now gets a sampler. |
||
|
|
c43c130d1a |
Tests: a sampler of Metal's undeclared filter 2 is made and filters as nearest (red)
MTLSamplerMinMagFilter's raw value 2 (MTLSamplerMinMagFilterCubic) is declared by no SDK header, by Apple's page, or by the Metal Shading Language, and nothing a program can ask tells it about the value. Metal makes a sampler state of it on every Mac measured. The case's own inputs read a footprint wider than one texel on an Apple M3 Max (macOS 27.0.1, job m3-max-85004) and the nearest texel on a Radeon Pro 5300M and an Intel UHD Graphics 630 (macOS 26.7.1, job m3-max-85003). Undocumented Metal is not emulated, so the runtime is to make the state and filter it as nearest, the x86 Macs' answer, on every device. The tests that hold that: - rt every_device_shares_sampler_states_device_samplers: a state with a Cubic min and mag filter is made (no Gap::CubicSampler), its word is the nearest state's, and it takes no device sampler of its own. - translator a_cubic_filter_is_the_nearest_filters: a Cubic min filter, mag filter or both is the nearest filter's word, device sampler of each use, and unnormalized reading, at normalized and pixel coordinates; and a_sampler_word_holds_each_field_at_its_bits: a Cubic filter's word is 0. - conformance sampler-cubic-filter: its ledger row (refused on every venue) goes. The case drops its bicubic-filter-arithmetic declaration and lets each lane's runtime red hold its own texel where the M3 Max's recording differs (every lane but lane 0), under the new accepted difference in docs/API.md. the_cubic_allowances_are_the_lanes_nearest_moves pins those lanes to the recording. docs/CONFORMANCE-COVERAGE.md regenerated (coverage.py): one ledger row fewer, one tolerance more. |
||
|
|
48a22a206f |
Runtime tests: the early member's fed run is checked exactly, not by a wall-clock ratio
every_device_feeds_an_early_members_run_to_its_queue_as_the_last_retires asserted l_run * 3 < a_run: that after A's handler the expected run fell by more than a third. The run falls by the GPU runs it takes (QueueInner::ran halves it toward each shorter one, queue::next_run), so the bound held only while A's and L's timestamped fill runs stayed short beside the run A's handler saw. Alone on lavapipe at 256 bits the ratio is about 4 (125M ns at A's handler, 31M at L's). It failed once in a full-suite run of the merged-tree check (m3-max-85067, llvmpipe LLVM 23.1.1 at 256 bits, the test 0.94 s there against 0.11 s alone), where the CPU ICD's fills ran long. The check is now exact: from the run A's handler saw, the run L's handler sees is next_run of A's GPU run, then of L's, each its command buffer's gpu_end_time minus gpu_start_time. Those are the spans the runtime fed (complete.rs feeds an early member's deferred span, and command.rs L's own, from the same placed times it stores). Nothing in it depends on how long the runs took. With the retirement count's +2 between the handlers, it says the queue took exactly A's run and then L's after A's handler. The bound is not widened; the ratio is gone. |
||
|
|
6af0aa8c9b |
Conformance: depth-colour-reads carries Metal's times; coverage regenerated
The suite's every_case_carries_its_timing failed on the new case (job m3-max-84879). `conformance times --runs 8 --write depth-colour-reads` on the Apple M3 Max (macOS 27.0.1, 26A434; job m3-max-85057) kept its figures in the recording; its answers are unchanged. docs/CONFORMANCE-COVERAGE.md regenerated (coverage.py): one module more declaring a notice, from the depth notices the case now declares. |
||
|
|
556ed46e41 |
Conformance: the depth colour reads declare the depth notices; API.md's border cell is the runtime's
The case's replay on lavapipe (job m3-max-84879) announced restricted-depth-range and restricted-depth-upload: the comparing stage's note and the 32-bit float depth upload's. Every texel is 0.25 or 0.75, inside [0, 1], and the notices site was the whole of their difference, so the case declares both, as sampler_filtering's compare rows do. The same job's replay with the colour allowances dropped printed the runtime's own answers: a sample past the edge under an opaque white border reads (1, 0, 0, 1), which fills the accepted difference's table. |
||
|
|
a894a90293 |
Conformance: the depth colour reads' module docs name their accepted difference without a private link
Rustdoc refuses a public module's docs that link to a private item (job m3-max-84879's doc step, EXIT=101): DEPTH_AS_COLOUR is the case's own constant, so the docs name it in code and do not link it. |
||
|
|
8e2ae4e702 | CONFORMANCE-COVERAGE.md: regenerated for depth-colour-reads | ||
|
|
2da77dd27a |
depth-colour-reads: the Apple M3 Max's recording (macOS 27.0.1, job m3-max-84868)
Recorded by conformance record on the M3 Max at bac637972d, three runs alike, the validated leg taken. Every read answers as the probe did (m3-max-84755): (d, d, d, 1), the white border (1, 1, 1, 1), the gather of green the depth taps and of alpha 1, the swizzled view (d, d, 1, 0), and the depth2d reads (d, 0, 0, 0) and the comparison at quarter weights exactly. |
||
|
|
91da6ebe3d | depth-colour-reads: an 8-wide texture, so every lane's weights are quarters | ||
|
|
e30d2409e2 | depth-colour-reads: the view's swizzle made at run time (its constructor is not const) | ||
|
|
8cff38ab42 |
Conformance: depth-colour-reads, a depth texture read through a colour slot (unrecorded)
The planner ruled that the runtime keeps Vulkan's (d, 0, 0, 1) for a depth texture read through a texture2d<float> slot: the three Mac families answer three ways (M3 Max (d, d, d, 1), m3-max-84755; Radeon Pro 5300M (d, d, d, d) and UHD Graphics 630 (d, 0, 0, 1), m3-max-84762), and the 630's is Vulkan's. The case pins that answer: the owned fixture dvw_depth_views's five kernels over a 6x5 Depth32Float texture, thirteen reads (samples nearest and linear, at the edge and past it under an opaque white border, gathers of green and alpha, a view swizzled (G, R, One, Zero), and the depth2d sample and comparison). It is recorded on the M3 Max; each element where the 630's answer differs from the M3 Max's may hold the 630's value as well (0), under docs/API.md's new accepted difference, and everything else compares exactly. Lanes sit at exact coordinates, so a linear weight is the same on every device. docs/API.md section 10 gains the entry (its runtime border cell follows the replay). The recording and the coverage regeneration follow in their own commits. Verified: cargo fmt. Build, record and replay follow in their jobs. |
||
|
|
aedc38190f |
Fixture dvw_depth_views: a depth texture through a texture2d slot beside its depth2d read and comparison
An owned MSL fixture: texture2d<float> sample and gathers of green and alpha, and depth2d sample and comparison, each through the runtime sampler at slot 0, one float4 per lane. |
||
|
|
cc28d38674 | Runtime tests: bicubic_line's zero texels and output fill are arrays | ||
|
|
7941badd0b |
docs/API.md: a 1D texture's bicubic sample is the M3's measured answer, as the 2D one is
API.md now says the bicubic filter is not documented Metal, in 1D or 2D, and that what the sample does is Metal's measured answer on an Apple M3 Max. For 1D that is the bilinear filter of taps i and i + 1 in every format, at the fraction of q = floor(256 (x - 1/2) + 1/2) rounded half up, with the taps clamped at both ends under clamp_to_edge. The 2D sample has the same status. The basis, from Metal's own texts: - The Metal Shading Language Specification 4.1 (2026-06-04), section 6.13.1 "1D Texture": "This member function samples from a 1D texture. Tv sample(sampler s, float coord) const", and "Because mipmaps are not supported for 1D textures, lod needs to be 0". Its Table 2.7 (sampler state enumeration values) lists filter, mag_filter and min_filter as "nearest (default), linear" only. "bicubic" appears nowhere in the specification or the feature-set tables. - The Metal toolchain's header metal/__bits/metal_texture_common declares the enumerator `bicubic` in `mag_filter`, `min_filter` and `filter` only under `#if defined(__HAVE_BICUBIC_FILTERING__)`. Metal's answer comes from an Apple M3 Max on macOS 27.0.1, job m3-max-85106: bcu_forms.metal's 1D lane over an 8-texel texture at 16 points, in RGBA32Float, RGBA16Float and RGBA8Unorm. At x = 3.0, between texels 4 and 9, it reads 6.5, where a Catmull-Rom sum reads 6.25. |
||
|
|
47a4455db1 |
Runtime tests: a 1D texture's bicubic sample against Metal's answer
tests::bicubic_line (device cfg) runs the owned fixture bcu_forms through the runtime on every device of the cfg's kind and compares its 1D lane (l.sample(bicubic_edge, uv.x), clamp to edge, normalized coordinates) with Metal's answer for the same textures and points: an 8-texel 1D texture of RGBA32Float, RGBA16Float and RGBA8Unorm, sampled at 16 points (fractions k / 256 between two texels, the half-up rounding of the fraction at 1/512 and 1/1024 past a centre, and points before and past both ends). The pipeline pushes the 1D slot's BicubicTexels word and carries PrecisionNote::BicubicFilterArithmetic; the float formats' samples equal Metal's, and RGBA8Unorm's lie within 1/4080 of Metal's, the note's bound at 8 bits. Metal's answer: an Apple M3 Max, macOS 27.0.1, running bcu_forms.metal's metallib (job m3-max-85106). It is the bilinear filter of taps i and i + 1 at the fraction k / 256 in every format: at x = 3.0, 6.5 between texels 4 and 9, where a Catmull-Rom sum reads 6.25. |
||
|
|
0a3a4fe911 |
Cache: SEMANTICS_VERSION 2365, a 1D texture's bicubic sample lowers under the identity domains
Functions that sample a 1D texture through a bicubic constexpr sampler moved from a refusal to a module under the identity domains (the previous commit). Renumbered at landing: 2362-2364 went to the partial-threadgroups cause, arm 9 and the blob move. |
||
|
|
94adea1c61 |
Identity domains: a bicubic sample of a 1D texture
The identity domains refused every function that samples a 1D texture through a bicubic
constexpr sampler ("a bicubic filter of a 1D texture", IdentityCause::SamplerState), though its
lowering reads nothing the identity domains do not source. It is the 2D sample's on one axis: the
same footprint (lower::sampler::bicubic::footprint_on, q = floor(256 (x - 1/2) + 1/2)), the
level-0 size by OpImageQuerySizeLod of the bound image (the slot's set-1 element), the taps by
OpImageFetch of that image, and the bound format's treatment from the slot's
PushField::BicubicTexels word (bicubic::format_bits, which takes no dimension), summed by the
module's Routine::Line, which the default domains already emit: the device's FMix of taps i and
i + 1 at the fraction k / 256, then the normalized formats' clamps. Metal filters a 1D texture
bilinearly over those two taps whatever its format (the module docs; the committed M3 observations
of the bcu_forms and bcx_rules cases). The runtime writes the field per slot from the bound
texture whatever its type, so it needs no change. The refusal and BICUBIC_LINE_FORM go.
The sample keeps PrecisionNote::BicubicFilterArithmetic. No new form, query or copy.
The fixture inventory's bcu_forms.ll and bcx_rules.ll rows move to ok on all 15 profiles (30
cells); their .air.ll twins move at the next M3 bless. docs/API.md, the runtime README (its bicubic
paragraph and the identity domains' known gaps) and IdentityCause::SamplerState's doc no longer
list the form. docs/REFUSALS.md regenerated: unchanged. No public item changes.
Test: tests::engine_identity::a_bicubic_kernel_reads_each_slots_format_treatment_from_its_pushed_field
(red at 74dd91398f).
|
||
|
|
34d3c8d0c0 |
Identity domains test: a bicubic kernel that samples 1D textures pushes each slot's field (red)
The identity bicubic test asserted that bcu_forms, which samples a 1D texture through a bicubic
constexpr sampler, is refused under the identity domains ("a bicubic filter of a 1D texture").
It now asserts what the 1D form should give: bcu_forms (a 2D texture, a 2D array and a 1D texture
at normalized coordinates) and bcx_rules (twelve 2D and four 1D texture slots at pixel coordinates)
compile, pass L3, push PushField::BicubicTexels for every texture slot, the 1D slots included, and
keep PrecisionNote::BicubicFilterArithmetic, on every profile. It fails until the refusal goes.
|
||
|
|
6459eaa946 |
Translator: a constant blob past the module's bound is refused at its first read through memory
What: the refusal of a constant blob past memory::blob::MODULE_BYTES moves from the identity
domains' check after planning (select::identity_refusal) to lower::access::blob::use_blob, where
selection first meets a read of the blob. The refusal keeps its cause (IdentityCause::ConstantBlob),
its class (Unsupported{IdentityDomains}, not implemented) and its words ("constant data of N bytes
read through memory").
Why: the plan only holds a blob that use_blob recorded, so the check after planning tested what
selection already knew at the read; refusing there names the cause where the translator meets it,
with no second pass over the plan.
SEMANTICS_VERSION 2364 (renumbered at landing: 2363 went to arm 9): a kernel that reads such a blob
and meets another refusal later in selection now gets the blob's refusal, where it got the other
one before.
Public items: none change (IdentityCause::ConstantBlob stays, and api_signatures.tsv and
docs/REFUSALS.md do not move; refusal_surface.py --check passes). The refusal-pin test is
engine_identity's a_constant_blob_past_the_modules_bound_is_refused_naming_its_size (cause, class
and words on every committed profile); engine_arena's struct DAG case of 128 KiB of blob keeps its
refusal check. runtime-sources.sha256 is re-pinned.
Verified: see the jobs named below.
|
||
|
|
6ba3572cbe |
Translator: the lockstep pass only finds pairs; its barrier insertion, rows mode and RowLockstep deleted
What: the lockstep pass (lower::simd::lockstep) keeps one job: find whether an entry holds a pair of accesses only a SIMD-group's lockstep orders, which sets Lockstep::unordered and the static note PrecisionNote::SimdgroupAccessOrder. Everything that ordered such a pair is deleted: the order key (OrderKey, Order::Rows, Decision), the barrier placement (stab, points, insert, rewritten, the barrier declarations), the rows mode (Basis::Position, Lockstep::rows, across_rows, orders_across_rows, dispatch's rows_may_split, RuntimeFact::RowLockstep and the barrier plan's rows_only), the inserted barriers' own forms (barrier::Origin, the barrier's rows guard, lockstep_class, BarrierPlan::uniform_placed and lockstep_simdgroup, the reconverges helper), Lockstep's barriers, emulated and inserted, and the select arm that emulated SIMD groups for a lockstep pair. The census names barrier.lockstep.* go; a program barrier keeps barrier.simdgroup or barrier.threadgroup. Why: the identity domains, which every state is translated under, take the key that orders nothing, so no barrier was ever inserted and every arm deleted here was unreachable. Public items removed (api_signatures.tsv): metal2vulkan-air Lockstep's across_rows, barriers, emulated and rows fields and its inserted and orders_across_rows methods, and RuntimeFact::RowLockstep. Consumer search: reims-vgpu development 76e6c90369 plus its 203 refs younger than a day: 0 hits each for lockstep, Lockstep, RowLockstep, orders_across_rows, across_rows and .inserted(. Tests: the census checks that asserted no barrier.lockstep name are gone with the names (the value checks of engine_simd_lockstep's kernels stay; its two tests that held only census checks, the branch arms and the texture calls, go with their kernels); engine_quad_ops drops its always-false lockstep_emulated; engine_store_quad, engine_ray_tracing and engine_simd_matrix drop their reads of the deleted fields; the mechanism table loses RowLockstep (62 variants). The test helper pipeline::testing::specialized_entry takes no profile, since the entry no longer depends on one: engine_store_quad checks sst_lanes' entry once, and engine_texture_unit_bit_test, engine_generic_pointers and engine_linking drop the profile they no longer pass. No module word moves: the deleted arms never ran. SEMANTICS_VERSION and ARTIFACT_FORMAT_VERSION do not move (the codec tags a fact by its name, and no artifact held RowLockstep). docs/API.md, the runtime's error and test docs, the simd module docs, lockstep.rs's title and the engine fixtures README's row_lockstep_tree row lose the clauses about inserted barriers; runtime-sources.sha256 is re-pinned. Verified: see the jobs named below. |
||
|
|
fa5d051b64 |
Translator: the two-word 64-bit integer forms deleted; every profile holds 64-bit integers in u64s
What: the arithmetic family's word form of 64-bit integers is deleted: Held::Wide and every arm on it, lower/arith/wide.rs (its word arithmetic, division, casts and lane moves) with its tests, ArithStrategy::Wide and ArithPlan's wide and divides, the profile's wide forms (wide_form_on, wide_demote, widen, widen_const, holds_wide), the two-word switch selector (SelectorForm::Words), the chunked vector's two-word lanes, the ulong texel's word form (TexelConv::U64Words loses its flag), the matrix descriptor's word form, and in the access family the two-word address (pointer.rs's Address enum and its helpers, the handle table's word entries and HandleIds, psb.rs's word base). The helpers the u64 paths still use move to arith/ops.rs (low_word, zext_word) and access/psb.rs (Pair, split). Every !int64 refusal goes with them: Feature::Int64Arithmetic, and Feature::PointerCompare, whose one producer was the static guest plan's !int64 arm. LeafCaps::int64 is deleted, and the mesh fold no longer asks for shaderInt64. BinOp::ISubBorrow, which only the word subtraction built, goes with its interpreter and builder arms (the grammar's Op::ISubBorrow stays in spv.rs). Why: Device::from_queries refuses a device without bufferDeviceAddress and shaderInt64 (IdentityDomains), and it is the only way to make a profile, so every profile has shaderInt64 and every arm deleted here was unreachable. This commit's parent is the last that holds the word form. Consumer search: reims-vgpu development cadac770c2 plus its steelbrain refs younger than a day (190 refs): 0 hits each for Int64Arithmetic, PointerCompare, LeafCaps and leaf.int64. The profile's fingerprint changes on every device (the field leaves the profile's Debug text), so the golden cells read "profile changed" until the table is re-blessed; no key stays unchanged, so SEMANTICS_VERSION does not move. The module words do not move: the u64 paths emit the same instructions in the same order (the uvec2 the slot offset builds is the same type the word form's type helper made). Tests: chunk.rs keeps the chunked lane-move and fragment-shuffle bound tests, on 64-bit and 32-bit lanes held whole; the selector test drops the word cases; the tests that asserted or filtered on the int64 field or Int64Arithmetic drop those lines; the dynamic move between slots runs L3 on every profile. docs/API.md (the object grid's needs), docs/REFUSALS.md, scripts/refusal-surface/reach.tsv and tests/api_signatures.tsv are updated; runtime-sources.sha256 is re-pinned. Verified: job m3-max-84770 at this commit (CPU only; the device steps on lavapipe): clippy plain, --cfg m2v_gpu and --cfg m2v_cpu_icd EXIT=0; rustdoc EXIT=0 and private-item docs of five crates with 0 diagnostics; the translator's suite 2,594 of 2,595 passed, 20 skipped, the one failure golden_hashes_match_the_table (28,950 cells under a changed profile fingerprint, 0 changed under an unchanged key); air, runtime, devtools and harness 872 passed, 4 skipped; validation 1,348 passed, 2 skipped; conformance 1,053 passed; doctests passed; the conformance replay on lavapipe EXIT=0 with 0 ledger drift lines; the refusal-surface and signatures checks EXIT=0. The golden and engine inventory lists at the parent and at this commit show 0 computed cells moved and no inventory line. |
||
|
|
31d8a874f1 |
Translator: the Floor buffer access deleted; every profile reaches buffers by address
What: BufferAccess and ProfileFields::buffer_access are deleted with every Floor arm:
the refusals that named addressed_needs (the Floor arms of DereferenceLoadedPointer,
Int64Atomics, GpuEncodedIndirectCommands in the indirect-command, replay and execution-range
paths, the de-indexed and private list forms, and the addressed function tables), the
memory planner's addressed flag and its loaded-pointer refusal, the plan's needs (MemNeeds:
that refusal read its dynamic_roots, and the handle classes beside it had no reader since the
handle table went), provenance's dynamic_deref field, the Floor mechanism of
RuntimeFact::FunctionTableRange, the Floor values of MetalDeviceProperties (argument buffers
tier, max buffer length), and the null pointer's static escape that only a profile without
device addresses took. Public items gone:
DeviceProfile::addressed_needs and Feature::{ArgumentBufferPointers, PointerToInteger,
BufferRange}, whose only producers were those arms.
Why: Device::from_queries refuses a device without bufferDeviceAddress and shaderInt64
(IdentityDomains), and it is the only way to make a profile, so no profile is Floor: every
arm deleted here was unreachable. This commit's parent is the last that holds the Floor form.
Consumer search: reims-vgpu development f054ad57c1 plus its steelbrain refs younger than a
day (188 refs): 0 hits each for addressed_needs, ArgumentBufferPointers, PointerToInteger
and BufferRange.
The profile's fingerprint changes on every device (the field leaves the profile's Debug
text), so every golden cell reads "profile changed" until the table is re-blessed; no key
stays unchanged, so SEMANTICS_VERSION does not move.
Devtools: the fuzz Target loses its addressed flag; the pointer-select generator draws the
loaded form on every target, the same draw a target with device addresses made.
Tests: the memory plan tests ask whether a buffer pointer is wide in place of the needs, and
drop the handle-table asserts; the profile tests drop the field's asserts (the max buffer
length test keeps its allocation-limit arm); the pointer-cell tests no longer accept
PointerToInteger; the atomic, kernel stage-in and tessellation tests no longer filter on the
field.
docs/REFUSALS.md, scripts/refusal-surface/reach.tsv and tests/api_signatures.tsv are
regenerated; runtime-sources.sha256 is re-pinned.
Verified: job m3-max-84770 (CPU only, no card): the golden and engine
inventory lists at the parent and at this commit show 0 computed cells
moved of 28,950 (every cell re-keyed by the profile fingerprint, which
this commit moves) and no inventory line. The stack's tip ran the whole
gate (see its message).
|
||
|
|
09b6d0fb89 |
Translator: the anisotropic emulation deleted; a device without samplerAnisotropy refuses an anisotropic sampler
What: lower/sampler/anisotropic.rs and its tests, the emulated filter's
routine arm, SpecKey::SamplerAnisotropy, LoweringInputs and VariantKey's
anisotropic samplers, and PrecisionNote::AnisotropicFilter and
DeviceAnisotropicFilter (no producer is left) are deleted.
metal::sampler::check_sampler refuses a sampler of maxAnisotropy above 1
for a use that filters on a device without samplerAnisotropy
(Feature::SamplerAnisotropy, needing the feature): a constexpr sampler
where the function that samples through it compiles, a runtime or
argument buffer's sampler where it is made. A runtime slot's sample
compiles as the plain sample.
docs/API.md's precision-note catalogue loses the two notes,
docs/REFUSALS.md and scripts/refusal-surface/reach.tsv are regenerated
(SamplerAnisotropy is now a device refusal), api_signatures.tsv loses
the deleted items, and the runtime README line on the emulation goes.
SEMANTICS_VERSION 2363 (renumbered at landing: 2360, 2361 and 2362 went to
the seq_cst fence, the argument buffer border texels and the
partial-threadgroups cause). runtime-sources.sha256
is pinned at this tree.
Consumer search (read only), reims-vgpu development 4bb5db49fc and every
steelbrain/* branch younger than a day, 184 refs, git grep over *.rs,
*.toml and *.md: AnisotropicFilter, DeviceAnisotropicFilter,
anisotropic_samplers, SpecKey::SamplerAnisotropy and both degrade ids:
0 hits each.
Why: the planner ruled the emulation deleted directly after G1: under the
one form it is reached only on a device without samplerAnisotropy, where
Metal's anisotropic filter is not the device's, and the refusal names
the feature that device lacks.
Verified: job m3-max-84770 (CPU only, no card): the previous commit's red
test passes at this commit (1 run, 1 passed); the golden and engine
inventory lists at
|
||
|
|
c347ac4287 |
Tests: a device without samplerAnisotropy refuses an anisotropic sampler by name (red)
What: engine_sampler_anisotropy.rs, on committed profiles with
samplerAnisotropy removed. A fragment function sampling at its implicit
level through a constexpr sampler of maxAnisotropy 2, 8 or 16 is refused
at compile as Unsupported{SamplerAnisotropy} needing the feature; one
through an isotropic constexpr sampler or a runtime sampler slot
compiles and links; and a runtime sampler of maxAnisotropy above 1 is
refused where it is made (metal::sampler::vk_sampler) for a float and a
depth-comparison use, while an integer texture's use, which filters
nothing, is made.
Why: under the one form the anisotropic emulation is reached only on a
device without samplerAnisotropy, and there a constexpr anisotropic
sampler ends in an internal error instead of a typed refusal.
Verified: red at this commit in job m3-max-84770 (CPU only, no card): the
test panics at engine_sampler_anisotropy.rs:132 (1 run, 1 failed).
|
||
|
|
74bdc655a3 |
RUNTIME_VERSION 2568: uploads the host waits for that use shared memory go as a part of their own
A run in which a restoring make, a read of a texture's bytes, a ready wait or a wait for room flushes uploads that use memory another API shares while a group goes now submits those uploads as a part of their own ahead of the group's first part, in the same vkQueueSubmit2, with the hand-over of what they alone use, and the host's wait ends before the group's command buffers. RUNTIME_VERSION 2566 -> 2568 (renumbered at landing: 2567 went to the partial-threadgroups cause, which landed first). SEMANTICS_VERSION is unchanged. |
||
|
|
07ec04e0d4 |
Runtime: memory both the waited uploads' part and the group's first part use stays acquired between them
The own part for uploads the host waits for (a6dda529a6) released all it used at its end and the group's first part acquired all it used again: where both use one block, one more release and acquire than the single part before. On the RX 7900 XTX (RADV) that pair put the group's GPU end 97 us later in the scratch probe (a 256 MiB fill touching the export the waited zero fill is in; group GPU end from the resume, median of 8 alternated runs: 799 us red, 896 us green, run ranges apart; job m3-max-84216), while the Iris Xe (84176, 1.001) and the RTX 3090 (84191, 0.976) showed none. parts() now takes what each part acquires and what it releases as two lists. Where the uploads go as a part of their own, submit() gives that part an acquire of all they use and a release only of what the group's first part does not use; that part acquires only what they did not and releases all it uses. A block both use is so acquired once and released once, as in one part; one the uploads alone use is still the other API's again when the host's wait returns, and the uploads' value is signalled at their last upload where they release nothing. Handed::is is now pub(crate) for the difference. Every other part's two lists are the same list, as before. Docs (Work::flush, submit's, parts', the counters' external_acquires, external_releases and restoring_makes_shared, Keep::Restore, RestoreFence, Block and Surface wait_until_ready, the runtime README) say so. The plane_parts test gains the shape of both lists. Verified: jobs to follow. |
||
|
|
e14ee65c7b |
Runtime: uploads the host waits for that use shared memory go as a part of their own
An awaited flush (Work::flush and the other flush_awaited callers: a restoring make, Texture::get_bytes of a texture without named bytes, a ready wait of an exported block or surface whose making is not yet submitted, and a call's wait for room in the uploads or the staging ring) whose uploads go with a group signal the value below the group's in a batch of their own. Where those uploads used memory another API shares (a new buffer's zero fill in an exported block, a surface plane's image an upload holds, a block a copy into a texture's image reads), they signalled nothing: the wait ended at the release after the group's first part, so it waited for that part's command buffers, for as long as they ran. submit() now gathers what the uploads use of such memory apart from what the group uses. Where the host waits for them and they use any, they are a part of their own: leads gains a 0 ahead of the group's (prepended to the member-by-member leads where the group goes apart), handed gains their list at its head, and parts() gives that part an acquire at its head and a release at its end that signals the value the flush gave (close() already numbers it below the group's first part). That part goes in the same vkQueueSubmit2 as the part after it, so no call is added; where the group goes member by member it rides the first member's call. The group's first part hands its own memory over after it, acquiring again what both use. Uploads the host does not wait for are as before. Direct3D 11 plane submissions are now counted per call from the acquires each call holds, so the call with two parts counts once. restoring_makes_shared keeps its condition and now counts the makes that took the own part; its docs, restoring_make_wait_nanos', external_acquires', external_releases' and d3d11_plane_submissions' say so, as do Work::flush, the RestoreFence docs, Block and Surface wait_until_ready, and the runtime README (the restore, the fence paragraph, the exported block's hand-over, Direct3D 11 planes and the fence's known gap). Cost on every awaited flush that rides a group and uses shared memory: one more acquire and release pair (two runtime command buffers, two hand-over barriers and one global barrier) and one more VkSubmitInfo2 in the same call. The plane_parts test gains the own part's shape, as one part and member by member. Verified: jobs to follow (red e8dbe38dc8 against this on lavapipe and the Iris Xe). |
||
|
|
9b71a1a097 |
Runtime tests: a restoring make whose uploads share memory returns ahead of a held group (red)
restore_batch's scenario becomes a helper with a switch: where it is on, a new buffer in an exported block (Device::new_exported_block) takes a GPU zero fill between the held fill's commit and the restoring make, so the uploads the make's flush awaits use memory another API shares. Today those uploads signal no value of their own: the wait ends at the group's part, past its release, so the make waits for the held fill and the test fails after ten seconds. The existing test runs the same body unchanged. Red: expected to fail on every device that imports host memory in place and exports a handle; jobs to follow. |
||
|
|
aa15ad6b5b |
Translator and runtime: a refusal of the partial-threadgroups variant names its cause
The translator refuses a kernel's partial-threadgroups variant for five structures, and the refusal named none, so a walk could not tell them apart (a guest library's kernels 5ba5f694ad0576ff #81 and #83 refuse it with no cause) and the runtime reported each as Gap::PartialThreadgroups at site Translator. - error: PartialThreadgroupsCause (ComputeDerivatives, OtherForm, SharedSliceWrite, TileFunction, VoteWord), Cause::PartialThreadgroups and Unsupported::partial_threadgroups. Each site names its cause: compile.rs's analyze_one (the variant beside another form), mesh::plan_partial_groups (a tile function, compute derivatives, an imageblock slice write every invocation shares) and simd::divergent's barriers (the vote word, still needing the maxComputeSharedMemorySize limit). Feature::PartialThreadgroups' doc lists today's causes (the stage-input region and the emulated SIMD-group tier are no longer refused). - runtime: VariantRefusal reads the cause (the vote word's, a structure's, or none) instead of the needs; PartialThreadgroupsSite gains Structure { cause }, the translator's type re-exported; Translator stays for a refusal that names no structure. The cache directory keeps each refusal under a marker of its own (cache::REFUSALS: the old two plus one a structure), so a refusal read back names the same cause. - Tests: the red test, and a runtime unit test that every cause maps to its refusal and its marker and back. README: the gap's sites. REFUSALS.md and basis.rs regenerated; api_surface row; api_signatures.tsv blessed. - SEMANTICS_VERSION 2362 and RUNTIME_VERSION 2567: the refusal and the dispatch's gap say more (renumbered at landing: SEMANTICS 2360 and 2361 went to the seq_cst fence and the argument buffer border texels, RUNTIME 2566 to the seq_cst fence). Verified (jobs m3-max-84834, -84836, -84838, -84839, -85025): - red, the red commit's crates over this commit's target: 3 tests run, 0 passed, 3 failed, each refusal PartialThreadgroups with no cause; green: 4 tests run, 4 passed (the three and a_variant_refusal_keeps_the_translator_s_cause). - product suites: 3495 tests run, 3494 passed, 1 failed, 24 skipped; the failure is golden_hashes_match_the_table, whose table is re-blessed on development. Validation: 1348 passed, 2 skipped. Conformance: 1053 passed, 0 skipped. Doctests pass. - clippy --workspace --all-targets --all-features -D warnings: plain, --cfg m2v_gpu and --cfg m2v_cpu_icd, each EXIT=0. Rustdoc with -D warnings and scripts/api-docs: EXIT=0. Not verified here: which cause the walk's kernels #81 and #83 name (a probe on the walk's library, reported apart). |
||
|
|
706eb4b12f |
Translator tests: each refusal of the partial-threadgroups variant names its cause (red)
A kernel's partial-threadgroups variant is refused as Unsupported{PartialThreadgroups} for
five structures (an imageblock slice write every invocation shares, compute derivatives, a
tile function, the variant asked beside another form, and a vote word past the shared
memory limit), and the refusal names none of them: a walk's probe of a guest library's
two kernels that refuse it (5ba5f694ad0576ff #81 and #83, both with imageblock barriers)
could not tell which. The tests now read each refusal's cause from its text:
SharedSliceWrite, ComputeDerivatives and TileFunction in a new test over every committed
profile that lowers the plain kernel, OtherForm and VoteWord in the two existing ones. The
imageblock and dispatch tests' kernels the new test reuses are visible to it.
Red: no refusal names a cause yet. Verified: the run follows.
|
||
|
|
ec56957c00 |
Engine inventory: re-blessed on the M3 after the seq_cst fence and the argument buffer border texels
The inventory's cells follow the translator, and only the M3 blesses its .air.ll twins. The seq_cst fence ( |
||
|
|
004f68b48f |
Runtime tests: the fenced host writer meets the gate by a handshake, not by chance
host_in_place's each_device_fences_a_host_writer_around_the_restore_alone asserted held > 0 (the writer found the fence's gate held) on one fenced make, which holds only where the writer's thread is scheduled inside the span. On the Radeon 780M (pin T's round, job m3-max-84449) the writer missed it: the make lost no word and kept its bytes, and held was 0. The writer now tells a Handshake when it first finds the gate held, before it waits there, and when it ends; the fenced make's Gate (Gate::meeting) keeps the gate in after() until the writer has found it held or ended. The writer stamps from before the make to after it returns and needs about 130 ms to stamp every word, so it meets the gate inside the span by structure, and lost == 0 still checks that the stamp it then writes lands after the write-back. The other Gates (the refusing one, in place alone, the timed makes) wait for no writer, as before. The unfenced half keeps its four makes: its witness is a stamp between the GPU's save and its write-back, which run in one batch with no host call between them, so no handshake reaches it; the test's doc says so. The runtime-sources pin is unchanged (pin-compute.py: the hash equals the committed one). Test only, no version. Verified: jobs to follow. |
||
|
|
e5b7498833 |
Translator: an argument buffer's texture read through a sampler takes its border texels from its resource ID's word
Metal 4.1's read(sampler, coord) of a texture an argument buffer holds was refused as
Unsupported{IdentityDomains} with cause HeapResource ("a texture handle that reads its table
entry beyond its element (Indexed ...)"): a read that may hand back the border texels made the
handle search's indexed form (Lookup::Indexed), whose uses read the border texels from a
handle-table entry, and the one form has no table. Metal gives the read to every guest device,
so it is built. The golden table's engine/kernel_read_through rt_heap_zero, rt_heap_ow and
rt_heap_arg, and the conformance cases read-through-a8, -heap-border, -heap-sampler, -r32f,
-rgba8 and -rgba8-swizzled, were refused.
The form is the slot's. Bits 0-11 of the texture's resource ID's word hold its border texels
(docs/RESOURCE-ID.md), and an argument buffer's member holds the whole ID, word included:
- AccessPlan::lookup no longer has an indexed form; a function with heap_border yields Element or
Flagged (alpha) as any other, which the admission takes;
- emit_identity_handle carries the word's low 14 bits (HANDLE_WORD, above the 16-bit element) in
every texture handle of such a function, ungated (the texture-buffer words keep their
TexelBufferWords gate where they alone need them);
- heap_element_index masks such a handle to its element at every use;
- heap_border_texels takes bits 0-11 of the carried word, and for a texture buffer whose word
holds a word layout's fields there, its format's border texels from its code, as a slot's read
does (words::slot_border_texels). It was an error stub;
- the read's words estimate counts that extraction (32 words) in place of two indexed flag reads.
Nothing builds Lookup::Indexed now, so it goes, with what only it used: HANDLE_ENTRY,
FLAG_BORDER_TEXELS, INDEXED_FLAGS_WORDS, heap_flags (a check for the indexed form; its two
callers wrap the handle themselves), the search's indexed arm and its test rows.
Test: engine_identity's
an_argument_buffer_textures_read_through_a_sampler_takes_its_border_texels_from_its_word compiles
rt_heap_zero, rt_heap_ow and rt_heap_arg on lavapipe, moltenvk-m3 and moltenvk-m3 without
robustImageAccess2. Each passes L3, plans heap_border, states no BorderTexels fact and no
specialization constant but the dispatch's, and on the CPU interpreter reads Metal's border
texels (metal::sampler::border_texel) of R32Float, RGBA8Unorm, A8Unorm and a swizzled RGBA8Unorm
for each entry's border colors, and the texel inside the texture. engine_texture_oob's
every_read_through_a_sampler_validates_or_is_refused_typed now validates the three entries where
it counted their refusal.
Conformance ledger (known-gaps-rt.tsv): the six `*` rows of those cases' rt_heap pipelines go.
With the pipelines made, each case runs whole, and llvmpipe's answers at 96 sites that a refusal
had left uncompared differ from Metal's by one f32 ulp in A8Unorm, RGBA8Unorm and swizzled
RGBA8Unorm texels. Those are the device's own 8-bit conversion (rule 1, note
device-texel-conversion), and each gets an llvmpipe row. docs/CONFORMANCE-COVERAGE.md is
regenerated.
Docs: the runtime README's forms list loses the entry for this read. API.md's identity paragraph
and RESOURCE-ID.md say an argument buffer's texture reads its border texels as a slot's does.
Engine inventory (public_fixture_expectations_engine.tsv): the 45 cells of
engine/kernel_read_through.ll's rt_heap_zero, rt_heap_ow and rt_heap_arg move from
Unsupported{IdentityDomains; NotImplemented} back to ok. Their .air.ll twins, which only macOS
assembles, move at the M3 bless.
SEMANTICS_VERSION 2360 -> 2361 (renumbered at landing: 2359 and 2360 went to checked naming and the seq_cst fence): the rt_heap cells of the golden table change from the refusal to
modules. The golden table is blessed at the next pin, not here. runtime-sources.sha256 moves for
memory/handles.rs alone: the deleted indexed form is translation code, and no run of an
unchanged artifact changes.
Verified, at this commit's tree:
- m3-max-84730, on the CPU with no device. Red: the new test and the read-through validation test
with the lowering and memory/handles.rs at the base fail (EXIT 100). Green: both pass, with the
search's tests (EXIT 0). fmt, signatures, clippy (plain, --cfg m2v_gpu, --cfg m2v_cpu_icd),
Rustdoc, private docs, doctests and scripts/api-docs pass. The metal2vulkan suites ran 3,494
tests, 3,493 passed, and the one failure is golden_hashes_match_the_table; the engine inventory
parts pass. Validation ran 1,348 tests, all passed, 2 skipped; conformance ran 1,053, all passed.
- m3-max-84829, on the CPU with no device: of the golden table's 28,950 changed lines, all are
"profile changed" lines of the table not yet blessed since the resident core's deletion, and 45
change a cell, every one an rt_heap cell of engine/kernel_read_through.ll, from the refusal to a
module.
- m3-max-84715, the pinned lavapipe image (llvmpipe, LLVM 23.1.1, 256 bits): the conformance
replay of the 13 read-through cases ends EXIT 0 with "the 96 row(s) above are exactly the open
gaps known-gaps-rt.tsv expects on this venue".
- m3-max-84619, on the Iris Xe (Mesa 26.2.6), at the same change on the base before the inventory
bless: the 13 read-through cases report 0 gap rows, EXIT 0.
|
||
|
|
6113e89e0c |
API surface: the pipeline module's SEQ_CST_FENCE_WORD has its row
The seq_cst fence build made pipeline::SEQ_CST_FENCE_WORD public without its api_surface row, so api_surface and api_signatures (which counts the table's names against the parsed surface) failed. Verified: m3-max-84728 failed the_table_matches_the_source and the_public_signatures_are_the_committed_table at f42ed033e3; signatures.py --check now prints 491 names in the table, 491 parsed, and exits 0; refusal_surface.py --check exits 0. |
||
|
|
61562e9de2 |
Runtime README: the fence word's add counts as the function's memory write
The seq_cst fence's add on the device's fence word is a store the translator's writes_memory scan sees like any other, so a function whose only write is that add is taken for one that writes memory: its kernel's dispatches are recorded, a fragment function of a multisampled pipeline carries DeviceFragmentRuns and the writer's sample mask, and a device that draws [[stencil]] by bits refuses its pipeline. The known-gap bullet of the seq_cst fence says so. No behaviour change. Verified: read from spirv/requirements/writes.rs (every Atomic on a PhysicalStorageBuffer pointer counts), pipeline/compile.rs (the StencilBitDraws refusal), pipeline/private_state.rs (observes_sample_mask) and the runtime's encoder.rs (a dispatch of a kernel without writes records nothing). |
||
|
|
247a1b0263 |
Translator tests: the fence word's placement is asserted at compile time
Clippy (assertions_on_constants) refused the runtime assert! of two constants in the_fence_word_lies_past_the_zero_range_s_reads; both are const blocks now, the word's alignment through is_multiple_of. Verified: clippy --cfg m2v_gpu at f42ed033e3, job m3-max-84724, named this one error; the three configurations rerun at this commit. |
||
|
|
572cc17a70 |
Cache: RUNTIME_VERSION 2566, above development's 2565 after the byte copies
The seq_cst fence build moved RUNTIME_VERSION from 2564 to 2565 for the zero chunk's fence word, a word of the runtime's ring that pipelines now add to; development took 2565 for the byte copies meanwhile, so this rebased branch takes the next number. The runtime-sources hash is unchanged (no runtime input file of the product changed; the build script's hash recomputed over this tree equals runtime-sources.sha256). |
||
|
|
291b0de28f |
Translator tests: the seq_cst test declares the MSL 4.1 barrier; validation lists 40 requirements
The store-buffering litmus declares air.atomic.fence alone, so llvm-as refused the seq_cst test's MSL 4.1 barrier case (an undefined @air.wg.barrier) at both the red and the fixed commit, before any assertion ran: the test now appends the three-operand barrier's declaration for that case. ToolingRequirement::ALL kept its old length of 41 after SeqCstFence left it, which stopped the validation crate compiling; it lists 40. The barrier selection's comment still said a device-scope seq_cst barrier is refused; it now says it adds to the device's fence word. Verified: m3-max-84697 showed both failures (llvm-as "use of undefined value '@air.wg.barrier'"; requirement.rs:276 E0308); the rerun follows on the rebased tip. |
||
|
|
3fbbadbc6e |
Translator: a seq_cst fence adds to the device's fence word, so seq_cst fences are totally ordered
Vulkan has no sequentially consistent order ("SequentiallyConsistent memory semantics is not
supported and must not be used", vkspec 1.4.366, Memory Semantics), and an acquire-release fence
lets two threads that each store and then load the other's word both read the old values, which
Metal's seq_cst fence forbids: it "establishes a single total modification order of all tagged
atomic operations" (MSL 6.16.1). Such a fence was refused, Unsupported{IdentityDomains}
SeqCstFence; five kernels of the first-setup walk's library aa5e72671a992cea meet it, each with
four air.atomic.fence(mem_device, seq_cst, device) (probe m3-max-84688).
The planner's ruled form, one for every device: a seq_cst air.atomic.fence at any scope beyond
the thread, an LLVM fence seq_cst, and a program's seq_cst barrier whose memory scope is the
device keep the acquire-release barrier they had at their own scope, then add 1 with
OpAtomicIAdd at Device scope, with the barrier's semantics, to the device's fence word. Adds to one
word are totally ordered and each reads the one before it, so the earlier fence's add (a release)
synchronizes with the later's (an acquire). Threadgroup and simdgroup fences take the device word
too (planner, option A): a stronger order than Metal names, with no workgroup memory and no
change to the threadgroup memory limit.
The word: pipeline::SEQ_CST_FENCE_WORD (256) bytes past PushField::ZeroAddress, in the runtime's
zero chunk: one per device (Core holds one Ring; the chunk is kept for the device's life and never
given back), made with every buffer usage, read only in its first 16 bytes (a checked load's unit
at ZeroAddress, psb::ZERO_RANGE_READ, and an indirect command buffer reset's index token of 0
bytes), its value never read. A function with such a fence reads ZeroAddress whether or not it
checks an access (access::place_zero_address keeps it). No new push field.
- lower::sync::barrier: total_order (selection: notes device scope, places ZeroAddress) and
add_to_fence_word (emission); Fence and Barrier carry `total`; require_seq_cst and
SEQ_CST_FORM deleted. lower::sync::memory_model: the LLVM fence's `total`.
- error: IdentityCause::SeqCstFence deleted (the consumer names it nowhere: git grep -n
'SeqCstFence\|SEQ_CST\|seq_cst_fence' at reims-vgpu f054ad57c1 finds only C __ATOMIC_SEQ_CST).
- Guards: psb.rs asserts ZERO_RANGE_READ <= SEQ_CST_FENCE_WORD at compile time; ring.rs asserts
the word fits its chunk; the_fence_word_lies_past_the_zero_range_s_reads checks both readers.
- Tests: the red test's threadgroup and simdgroup rows take the device add (option A); the
identity, dispatch and MSL 4.1 tests compile a4_device_fence, device_fence_store and
a27_memory_order where they asserted the refusal.
- Validation: ToolingRequirement::SeqCstFence and executor_contract::seq_cst_fence retired, as the
runtime runs the fence; a_seq_cst_fence_runs_through_the_runtime replaces the refusal test.
- Docs: the runtime README moves the fence from the identity refusals to a known gap with the
add's cost (RTX 3090 m3-max-84667, RX 7900 XTX m3-max-84666, Iris Xe m3-max-84668; device
fences, standing for threadgroup and simdgroup ones too); docs/API.md and ring.rs say where the
word lies. api_signatures.tsv blessed; REFUSALS.md regenerated, unchanged.
- SEMANTICS_VERSION 2360 (2359 went to checked naming, which landed first), RUNTIME_VERSION 2565 (a runtime word added; renumbered 2566 below).
Verified, potluck jobs on this branch rebased onto development
|
||
|
|
fd291a3a6a |
Translator tests: a seq_cst fence adds to its scope's word, and no other fence does (red)
The planner ruled the sequentially consistent fence built (owner order 3406; the walk's library
aa5e72671a992cea holds five guest kernels refused SeqCstFence today, L157 count m3-max-84638):
each seq_cst fence keeps the acquire-release barrier its order maps to and adds one
acquire-release atomic add of 1, with the barrier's semantics, on one word its scope's fences
share, so any two such fences are totally ordered and store buffering is forbidden.
a_seq_cst_fence_adds_to_its_scope_s_word_and_no_other_fence_does replaces
a_seq_cst_fence_is_refused_and_an_acq_rel_fence_is_a_barrier. On every committed profile, the
store-buffering litmus kernel with each fence form: an air.atomic.fence of seq_cst at device
scope, an LLVM fence seq_cst, and a seq_cst MSL 4.1 barrier whose memory scope is the device
each carry two adds at Device scope through a PhysicalStorageBuffer pointer and read
PushField::ZeroAddress; a seq_cst fence at threadgroup or simdgroup scope carries two adds at
Workgroup scope on a Workgroup word; acq_rel, acquire and release fences carry none and read no
zero range. Each add's semantics equal its barrier's and it adds 1; every module passes L3.
Red at this commit: every seq_cst case is refused Unsupported{IdentityDomains} SeqCstFence.
Verified: the red/green job of the fix commit.
|
||
|
|
9886324e31 |
Translator: a device-address access checked against its pushed length is named checked
What: AccessPlan gains bounded, the memory-plan slots reached by their device address that read their PushField::SlotBounds (place_slots puts a device-address slot there where AccessPlan::variable holds it), and AccessPlan::check names a target of one checked. A load, store, quad store or buffer atomic of such a slot carries .checked in its census name, as a view's does. Copies' names are unchanged (they carry no check). SEMANTICS 2359: census names change, no module word does. Why: emit::prepare checks an access of such a slot whose emitted offset is not a constant against the slot's pushed length, so the name now says the check the module runs. Verified (lavapipe and CPU interpreter, job m3-max-84692 at a8256703d8, the same patches before the rebase onto |
||
|
|
413194659d |
Tests: a device-address access checked against its pushed length is named checked (red)
What: two census assertions move to the checked name. The round trip in a_compile_records_the_containment_it_compiled_under expects its store at the thread's index as access.store.psb.checked (its load at a constant offset stays access.load.psb), and int64_buffer_atomics_are_exact_through_ device_addresses expects access.atomic.buffer.cas.psb.checked. Why: under the identity domains a device-address slot that an access reaches at a run-time offset reads its PushField::SlotBounds, and each such access whose emitted offset is not a constant is checked against it (emit::prepare). The census names a view's checked access .checked but not a device address's, so the name hides a check the module runs. Verified: red at this commit before the fix, by the next commit's job. |
||
|
|
436dd1045e |
Conformance ledger: the buffer-depth-samples rows of the Apple M3 Max go
KosmicKrisp (Mesa 26.3.1) on the M3 Max runs the family's five cases at
|
||
|
|
760b5f7de2 |
Runtime metrics: count the render states that interpolate at a sample
Where a render pipeline state's compiled content is made, beside the RenderContents gauge's rise, a content whose translated pipeline interpolates at a sample (GraphicsState::interpolates_at_sample) counts in Metrics::sample_interpolating_states. Red before it on lavapipe: job m3-max-84629. |
||
|
|
2545400e0d |
Runtime metrics: render pipeline states that interpolate at a sample, counted (red)
The planner asks a replay to answer whether any guest interpolates at a sample without a probe build: Metrics::sample_interpolating_states, the render pipeline states made whose fragment module interpolates an input at a sample (GraphicsState::interpolates_at_sample), in the replay's per-frame metrics beside sample_copies. This commit adds the field, its replay entry, the README's counters line and the device test (pm_sample_id counts 1, pm_center 0); nothing counts it yet, so the test is red. It rides RUNTIME_VERSION 2565. |
||
|
|
439a45aa2e |
Conformance ledger: the buffer-depth-samples rows the runtime now copies, on five venues
Each of the family's five cases now runs where it refused (Gap::TextureBytes): the stencil cases compare exact and the 16-bit depth cases announce their note (rounded-sample-depth-copy), which they declare, on the RTX 3090 (NVIDIA 620.70.06, job m3-max-84576), the RX 550 (RADV, Mesa 26.2.6, 84577) and the RX 7900 XTX (RADV, Mesa 26.2.6, 84578), at d81831ad09, the change's tip before its rebase. Their rows go, and so do the 780M's and the Iris Xe's, whose device test copies every row bit for bit on the same runs (their conformance replays are next). On lavapipe (job m3-max-84579) the 4-sample stencil cases are exact, and the 4-sample 16-bit depth case differs only in its samples site, where the device's decode of a 16-bit depth to float is one ulp from Metal's, as depth16-texel-reads records: a row of the device's own answer. The 2-sample rows there stay (no texture of 2 samples). The three every-venue rows narrow to the Apple M3 Max, whose KosmicKrisp venue is not yet run. CONFORMANCE-COVERAGE.md regenerated. |