Commit Graph
8955 Commits
Author SHA1 Message Date
Anees Iqbal 85aa6c8dee rt: an exported block's BlockInfo states no device address, so its make hands none out
API change for the consumer: BlockInfo::gpu_address becomes Option<u64>. It is Some for every
taken, imported and sparse block, as before, and None for an exported block
(Device::new_exported_block). BlockInfo stays Clone + Copy. The only way to an address of an
exported block's memory is now Buffer::gpu_address of a buffer in it, which marks the block and
counts it in Metrics::exported_blocks_addressed as be1b2cfe46 built it. The consumer's reads of
the field fail to build until each one is reviewed. At reims-vgpu 095001ddc6,
`git grep -n -F '.gpu_address' 095001ddc6 -- 'crates/reims-vgpu-vulkan/src/rt_platform/*.rs'
'crates/reims-vgpu/src/pool/rt_blocks.rs' 'crates/reims-vgpu/src/platform/rt.rs' | grep -v
'gpu_address('` gives 39 lines. Some of them are the consumer's own structs; their types were not
checked one by one. The rt BlockInfo reads among them include:
- rt_platform/buffer.rs:793, the known-block map's key;
- pool/rt_blocks.rs:118 and :170;
- rt_platform/diag.rs:716;
- rt_platform/fault.rs:1405;
- platform/rt.rs:149.

Why: be1b2cfe46 counted the public make itself as handing the address out, because the Block
handle derefs to BlockInfo and BlockInfo's pub field stated the address. The consumer calls
new_exported_block for every buffer-form video cache (rt_platform/export.rs:208 at 095001ddc6). So
every such cache's textures stayed in the over-copy class from their make on. With no address in
the info there is nothing to read by accident. A bookkeeping read (a map keyed by address, a
diagnostics line) now fails to build instead of silently turning the bound off. The Option says
"this block has none", as contents: Option<NonNull<u8>> already does.

How:
- Memory::info() gives None where the memory is exported.
- new_exported_block no longer marks its block at the make. Its body was the crate's
  exported_block(), which only the copy form of new_exported_surface called, and the two are now
  the same; the wrapper is gone and the surface calls new_exported_block.
- No product code read the field. The runtime's tests and the validation crate's replay player
  read it only for taken and imported blocks, and now read the Option.

Docs: the field's doc and new_exported_block's doc, the exported_blocks_addressed doc, the
ExportedOvers doc, and the runtime README (Exported blocks, the address contract in Known gaps,
the exported block's rule in Textures over a buffer). The signatures table and docs/REFUSALS.md
(whose site column named exported_block) are regenerated.

Test: an_exported_blocks_texture_is_copied_in_once_a_change. The block's handle states no address
and the make counts 0. Then a new row on the block's own texture: three submissions that each read
it and then write through an address into another buffer copy it in [0, 0, 0], with 0 blocks
addressed. After Buffer::gpu_address on the buffer the texture is over, the count is 1, and three
more such submissions copy [0, 1, 1]. The surface row follows, with the store_through kernel's
state and buffers now made once for both rows.

Verified:
- Without the change: the base 015ece4929 product with this row printing instead of asserting, on
  lavapipe, job m3-max-66854. It printed "addressed at the make 1, rows [0, 1, 1] (addressed 1),
  then after the buffer's address [1, 1, 1] (addressed 1)". So the row fails without the change.
- Compile job m3-max-66851 (tree a9636bbcf8, the same tree as this commit): signatures and
  refusal-surface checks, fmt, clippy (plain, --cfg m2v_gpu, --cfg m2v_cpu_icd), workspace Rustdoc
  -D warnings and scripts/api-docs all exit 0. The runtime suite on lavapipe: 642 tests run, 642
  passed, 3 skipped.
- The m2v_gpu archive is from job m3-max-66852. Each card ran the test, then the runtime suite:
  - RX 550, job m3-max-66873: 644 passed, 3 skipped, peak 0.96 GiB.
  - Iris Xe, job m3-max-66874: 644 passed, 3 skipped, peak 3.72 GiB.
  - RTX 3090, job m3-max-66875: 644 passed (1 slow), 3 skipped, peak 2.44 GiB.
  Each card printed "OpaqueFd block: copies in a submission that writes through an address, the
  block's address not out: [0, 0, 0], then out: [0, 1, 1]; blocks addressed 0, then 1". Lavapipe
  printed the same line in m3-max-66851.
2026-11-22 02:29:05 -08:00
Anees Iqbal 6bcd2062db Re-pin the runtime sources at the landing tip
The landed packet changed a runtime-sources input, so the committed digest no

longer described the sources and `the_runtime_sources_are_the_committed_ones`

would fail. Recomputed over the same inputs and committed by land-pkt.sh.
2026-11-22 02:16:18 -08:00
Anees Iqbal 4c060b7c8d Validation: twelve feature members carry their registry name, the two buffer robustness ones among them
The deletion of VkFeature's RobustBufferAccess and RobustBufferAccess2 maps validation's
robust_buffer_access and robust_buffer_access2 members to no feature, each with its registry
name, so a_member_the_vocabulary_does_not_name_carries_its_registry_name counts 12 such members,
not 10 (m3-max-66741 at da086c9b0f: left 12, right 10). Tests only.
2026-11-22 02:05:43 -08:00
Anees Iqbal 251f64debf Tests: the integer rate-map test and the vertex-fetch imports follow the robustness deletion
The deletion of VkFeature's RobustBufferAccess and RobustBufferAccess2 two commits back left two
things its compile job found (m3-max-66738, clippy in all three configurations):

- engine_rate_map/integer.rs still called profile_with with the robust flag the parent module's
  helper no longer takes. Its test ran each profile twice, robust and not, the robust leg without
  the far coordinates (the interpreter traps a read robust descriptors would have contained); one
  leg remains, and integer_points always holds the far coordinates, which the in-shader check
  contains on every profile.
- engine_vertex_fetch.rs kept a VkFeature import that only the robustness removals used.

Tests only.
2026-11-22 02:05:43 -08:00
Anees Iqbal 8073c73816 Tests: the vertex-fetch tests run each committed profile once
profiles_both_encodings gave the vertex-fetch tests each committed profile twice: as committed,
and "without robustness", a description with robustBufferAccess and robustBufferAccess2
removed. The translator reads neither (the commit before this one deletes both from the
vocabulary, leaving that second leg the profile unchanged), so the two legs compiled the same
modules under the same fingerprint and checked the same thing twice. The helper goes, and
integer_formats_feed_float_attributes and a_source_buffer_shares_its_arguments_slot run each of
PROFILES once, as the file's other tests do. Tests only; no product line changes.
2026-11-22 02:05:43 -08:00
Anees Iqbal 53dd17e008 Translator: delete VkFeature's RobustBufferAccess and RobustBufferAccess2, which nothing reads
The batch deleted the translator's choice between the driver's buffer robustness and the
in-shader check: every buffer access is checked in the shader, and no lowering reads
robustBufferAccess or robustBufferAccess2. The runtime enables neither (its floor table names
neither; robustImageAccess, robustImageAccess2 and nullDescriptor are its robustness features,
and robustImageAccess2 stays: memory::contain reads it for images). What still named the two was
the enable-set vocabulary around them, so it goes with them:

- VkFeature::RobustBufferAccess and VkFeature::RobustBufferAccess2, from the enum, its codec, the
  exposure table (Vulkan 1.0 core; VK_EXT_robustness2 keeps robustImageAccess2 and
  nullDescriptor), the Khronos reader's member table, the ash query's feature sources, and
  required_features (whose Vulkan 1.0 tier held robustBufferAccess alone and goes).
- The co-enable rules only they took part in: robustBufferAccess2 needs robustBufferAccess
  (VUID-...-robustBufferAccess2-04000, a FEATURE_NEEDS row), and the update-after-bind features of
  buffer descriptor types beside robustBufferAccess without robustBufferAccessUpdateAfterBind
  (VUID-VkDeviceCreateInfo-robustBufferAccess-10247: device::enables' crate-private
  BUFFER_UPDATE_AFTER_BIND and BUFFER_UPDATE_AFTER_BIND_VUID, and its branches in
  co_enable_violation and co_enabled). The multiview rules stay.
- DeviceDescription::robust_buffer_access_update_after_bind, which only that rule read, with its
  Khronos and ash readers and the Device's copy.

So a recommendation now keeps every update-after-bind feature a device lists: runtime-floor's,
which used to leave its two texel-buffer ones out beside robustBufferAccess, holds them, and a
device made from it compiles texture buffers. docs/API.md's section 2 and the enable-set docs
say that the recommendation names neither robustness feature, and that a consumer who enables
robustBufferAccess itself keeps VUID 10247.

The consumer's checkout (reims-vgpu development d80a432f3a, `git grep -n -w ITEM development --
'*.rs'`) names none of the deleted public items: RobustBufferAccess 0, RobustBufferAccess2 0,
robust_buffer_access_update_after_bind 0 (BUFFER_UPDATE_AFTER_BIND 0 and
BUFFER_UPDATE_AFTER_BIND_VUID 0, both crate-private). It names no VkFeature and no
DeviceDescription at all, so no glob import or re-export hides a hit.

No module changes: no lowering read either feature. Every committed profile's fingerprint moves
(each listed robustBufferAccess, a Vulkan 1.0 requirement), so every golden cell and every key
under one moves with it: bless-class, a changed fingerprint, no SEMANTICS bump. The codec names
a variant by its tag, so no other feature's encoding moves; an artifact naming a deleted feature
would sit under a fingerprint that no longer exists.

The tests follow: those of the deleted rules go (recommendations_keep_robust_buffer_access_and_
vuid_10247, a_recommendation_keeps_vuid_10247, both robust_buffer_access_update_after_bind
readers' tests); tests that ran every profile "with robustness and without" lose the leg that
was the same profile (engine_access, _atomics, _binder, _buffer_table, _copy, _dynamic_roots,
_gep_index, _index_words, _kernel_stage_in, _link, _pointer_memory, _pointer_values, _rate_map,
_skeleton), and the out-of-bounds cases those tests ran only on the bare leg (short stage-in
buffers, far rate-map coordinates, huge copy lengths, 8- and 16-byte leaves past the end) now
run on every profile; image robustness lists keep their two image features. Validation maps the
two members to no feature (registry names kept), its tier table's robustness-off leg removes
the image features alone, and its tests check the two members unset in the chain. The runtime's
tests stop naming them. profiles_both_encodings' second leg is now the profile unchanged; the
next commit removes it. api_signatures.tsv re-blessed (3 records gone); refusal surface
unchanged.
2026-11-22 02:05:42 -08:00
Anees Iqbal 8ed044f2e8 Translator: a replay variant under the identity domains is refused, typed
The commit before this one placed the RootTableAddress a device-replay variant
(VariantKey::replay_bindings) reads its buffer slots' addresses from, so under the identity
domains the variant no longer ends in the internal error "a strategy reads the unplaced push field
RootTableAddress". Its message said the variant then compiles there; it does not. With the field
placed, the plan reaches select::identity_admits, whose admitted push fields hold no
RootTableAddress: the identity domains read no root table, and the variant is refused,
Unsupported{IdentityDomains} (NotImplemented) naming "an encoder value the function reads as
RootTableAddress". That refusal is the true answer: only the binder (bind/replay, bind/dispatch,
bind/graphics) asks for a replay variant, and the runtime, the one consumer of the identity
domains, never sets replay_bindings (no hit in crates/metal2vulkan-runtime/src). The refusal
site and its row are the existing ones, so docs/REFUSALS.md does not change.

So the tests say the refusal:
- pipeline::compile::tests::a_replay_variant_under_the_identity_domains_is_refused_typed (was
  ..._reads_its_root_entries): icb_render_replay_template, icb_render_stride_template under the
  pulled-vertex-buffer variant and icb_replay_template under the identity domains with replay
  bindings are each refused, typed, with that feature, need and symbol.
- tests::engine_device_replay::
  a_replay_variant_under_the_identity_domains_reads_its_slots_from_their_root_entries goes, with
  its module-doc paragraph: no such module is made.
docs/API.md section 5 now says the variant is refused there, and slot_address_field's comment
names the admission that refuses it.

Verified: before this commit, on m3-max-66628 (the product suite at 84c6726dd8, a
card-free host build), both item tests failed with exactly this refusal at the three compile
calls and the engine kernel; without the placement, m3-max-66629 (probe branch
steelbrain/halfmoves-probe-nofix2) failed both with the internal error, so the new test fails
without the placement. This commit's own run is the next compile job.
2026-11-22 02:05:42 -08:00
Anees Iqbal 46a9a57522 Docs: the runtime binds through no stage table; the validation executor sets its buffer ranges
docs/API.md section 5 said of StageTable::buffer_ranges "The runtime sets it on every table it
reads." The runtime builds no StageTable and reads no BindState: crates/metal2vulkan-runtime
names no StageTable, BindState, BufferRanges or buffer_ranges, and of the binder it takes only
alpha_test_code, SamplerDescriptor and AstcDecode. The tables that set it are the validation
executor's: every table its candidate engine builds for a compute, render or mesh case passes
through candidate::engine::lengths_classed with BufferRanges::of its profile's limits. The
sentence now says so.

Verified: grep over crates/metal2vulkan-runtime/src for those four names (no hit) and for
metal2vulkan::bind (the three items above); the validation builders read at
candidate/engine.rs, engine/graphics.rs and engine/mesh.rs, the one other StageTable there
(engine/variants.rs) inside a #[test]. Docs only.
2026-11-22 02:05:42 -08:00
Anees Iqbal 9df6908e36 Translator: a replay variant under the identity domains pushes the root table its slots are read from
Under the identity domains a device-replay variant (VariantKey::replay_bindings) ended in an
internal error, "a strategy reads the unplaced push field RootTableAddress": a vertex function's
buffer arguments, the attribute of the pulled-vertex-buffer variant and a kernel's buffers alike.

The variant reads each buffer slot's address from its replayed command's root entry
(access::replay_guest_base, which a replay variant's SlotGuestBase reads route to), and the
translator already holds it so: the address is not biased in a replay variant
(pointer::biased), and its accesses take no SlotBounds (access::identity_contained). But
place_slots pushed every device-address slot's SlotGuestBase under the identity domains, whatever
the variant, after plan_replay had replaced the selection's SlotGuestBase fields by
RootTableAddress. So nothing pushed the root table's address the derived reads load.

The field is placed: a device-address slot's push field is its own address only under the
identity domains outside a replay variant (slot_address_field), in place_slots and in the census
its spill decision reads, and the root table otherwise. No refusal changes, and no module of a
compile that succeeded before changes: the combination never compiled. The branch's one
SEMANTICS bump (2273, the half-move commit before this one) covers it. docs/API.md section 5
states where a replay variant's slot addresses come from under the identity domains.

Verification:
- pipeline::compile::tests::a_replay_variant_under_the_identity_domains_reads_its_root_entries,
  new: icb_render_replay_template, icb_render_stride_template under the pulled-vertex-buffer
  variant, and icb_replay_template compile under the identity domains with replay bindings,
  every buffer slot at its device address, RootTableAddress pushed and no SlotGuestBase or
  SlotBounds, every stage through L3.
- tests::engine_device_replay::
  a_replay_variant_under_the_identity_domains_reads_its_slots_from_their_root_entries, new: a
  kernel compiled so on every committed profile under the identity domains pushes
  RootTableAddress alone, and on the CPU interpreter reads and writes at the addresses its root
  entries name (guest plus bind_offset, 16 bytes into one buffer), above 4 GiB.
2026-11-22 02:05:42 -08:00
Anees Iqbal 4892518700 Translator: a half the lowering moves through a containment select or a candidate switch keeps its bits
A half moved without arithmetic must keep its 16 bits, a NaN's payload included: a move is not
the device's arithmetic, so no precision note covers it. bb44847705 fixed the contained load of
device memory. Four more moves the lowering makes itself lost the bits:
- the contained loads of the arenas (lower/access/local.rs) and of the constant blob (blob.rs)
  selected the decoded f32 with no bits note;
- the switch-at-use over a pointer's candidate buffers (emit.rs: the device buffers' switch and
  the blob-or-buffer switch) merged the arms' decoded f32 by a phi with no note.
A store of the moved half then re-encoded it by the device's narrowing. On the CPU interpreter
2045 of the 2048 all-ones-exponent patterns came back 0x7e00 (0x7c01 to 0x7e00, for example) at
each of the four, on every committed profile under the resident-table domains (job m3-max-66591,
the new test without this change).

One form for every move the lowering makes: the bits move beside the value and are noted for the
result, so a later narrow::to_bits returns them.
- A containment select is leaf::contained (bb44847705's narrow::select_zero) at every
  containment select of a leaf: device views and addresses as before, the arenas, the constant
  blob, and the pulled fetch's source read. The pulled fetch reads raw integer components and
  decodes a half after the select, so its output does not change.
- A switch merge: each arm carries its value's parts and their bits (leaf::carried, the bits
  from narrow::moved_bits: the bits noted for the value, else its to_bits), the merge's phis
  carry both, and leaf::merged notes each part's bits phi for its value phi
  (narrow::note_moved), chunk by chunk for a chunked vector.
Where the moved value is stored unchanged, the f32 select or phi and the decodes are dead and
leave the module; where it is computed with, the bits ones are.

Not changed: a leaf that is no narrow float (carried and merged pass its value alone); the
program's own select and phi of a half, which stay the device's moves under
PrecisionNote::NativeNanEncoding; typed objects, which hold a half widened.

SEMANTICS_VERSION 2272 to 2273 (2272 is lane irisvsimd's, landed first): a module that
stores a half moved through one of these paths changes.

Verification:
- tests::engine_half_moves::our_own_moves_keep_every_half_patterns_bits, new: four kernels move
  the patterns through a contained private-arena load, a contained constant-blob load, the switch
  over two device buffers (an eight-lane half vector, so chunked) and the switch over a constant
  buffer or the blob, each module's path asserted (its census key, or its switch-at-use), on every
  committed profile under the resident tables. Without this change it fails at all four (job
  m3-max-66591: 2045 of 2048 changed, 5 distinct modules each); with it every pattern keeps its
  bits (job m3-max-66584, 2 distinct modules each).
- Compile job m3-max-66584 at this tree: fmt, signatures, refusal surface, clippy plain,
  --cfg m2v_gpu and --cfg m2v_cpu_icd, workspace rustdoc -D warnings, api-docs.
- The 252-row hash probe over the two app libraries on validation's runtime description: 252 ok,
  0 of 252 module hashes move (job m3-max-66587 against m3-max-66590 at fd18d75085).
2026-11-22 02:05:42 -08:00
Anees Iqbal 015ece4929 rt: count the pipeline cache's replacements past its bound and the blob writes skipped past it
The reaper bounds the device's VkPipelineCache at 32 MiB (cache.rs, PIPELINE_CACHE_BOUND). When
a look finds the cache past the bound, look_alone replaces it with a fresh, empty cache, and the
pipelines the old one held then compile again wherever they are made again. write() skips data
past the bound, which happens at the teardown's write of a cache that grew past the bound after
the reaper's last look; the blob then keeps what it held. Today neither event leaves a trace: the
replacement only sets the PipelineCacheBytes gauge, and the skip only returns. So a walk cannot
tell a recompile storm caused by the bound from any other.

Two metrics, counted where the events happen:
- Metrics::pipeline_caches_replaced: at look_alone's replacement.
- Metrics::pipeline_cache_writes_skipped: at write()'s early return past the bound.
Both are fields of Metrics, whose type has no Metal counterpart, and each doc says Metal has none.
The bound's shape is unchanged.

Test: every_device_replaces_its_pipeline_cache_past_its_bound (tests/translate.rs), extended. The
lowered bound (set_bound) makes its one replacement, and pipeline_caches_replaced reads 1. After
the fresh cache's write, a creation is held open (cache::creation) so the reaper does not look
again before the teardown. A fourth kernel (ob1_storage_buffer) grows the cache, and the bound is
set to 1 byte. The device's teardown, run while a clone of its core holds the core, stops the
reaper with no look made. The skip count reads 0 until the core's drop, whose close() writes the
grown cache; then it reads 1, and the blob still holds the fresh cache's data (24 bytes plus the
size written at the last look).

README: the cache directory's paragraph on the bound names both counters; so does the counters
line. The signatures table gains both fields (scripts/api-signatures/signatures.py --bless).

Verified at 76be5d46aa, on development 9f3ff1aa75 (this tree):
- compile job m3-max-66719: signatures check, refusal-surface check, fmt, clippy plain /
  --cfg m2v_gpu / --cfg m2v_cpu_icd, workspace Rustdoc -D warnings, api-docs, all exit 0. The rt
  suite on lavapipe: 642 passed, 3 skipped. The cache test passed on lavapipe, but the job's
  filter dropped its printed line, so whether its body ran there is not shown.
- From the m2v_gpu archive m3-max-66721, the extended cache test printed "replacements 1, writes
  skipped at the teardown 1" on each card:
  - RX 550 (RADV POLARIS12, Mesa 26.2.6), job m3-max-66731: 1752 bytes past a bound of 1751,
    replaced by 36, grown to 1584. Full rt suite 644 passed, 3 skipped; peak 874 MiB.
  - Iris Xe (RPL-P, Mesa 26.2.6), job m3-max-66773: 6704 past 6703, replaced by 36, grown to
    6580. Full rt suite 644 passed, 3 skipped; peak 4.6 GiB. Its 4 GiB leg m3-max-66732 printed
    the same lines, then went over its memory limit in the suite.
  - RTX 3090 (NVIDIA 620.70.06), job m3-max-66733: 11732 past 11731, replaced by 36, grown to
    12441. Full rt suite 644 passed (1 slow), 3 skipped; peak 2.6 GiB.
  On each card, the exported_overs test still printed "1 1 1 0" and "[1, 0, 0, 0], then out:
  [0, 1, 1]; blocks addressed 0, then 1".

A note on be1b2cfe46 (an exported block's textures owe their copy for an address write only once
its address went out). The test fails without that bound: m3-max-66711 at probe 312091e824
(wrote() on leans.unbound alone): no address of the block out; left: [1, 1, 1, 1], right:
[1, 0, 0, 0].
2026-11-22 01:48:50 -08:00
Anees Iqbal a9c1a7d012 Re-pin the runtime sources at the landing tip
The landed packet changed a runtime-sources input, so the committed digest no

longer described the sources and `the_runtime_sources_are_the_committed_ones`

would fail. Recomputed over the same inputs and committed by land-pkt.sh.
2026-11-22 01:45:37 -08:00
Anees Iqbal 7c2eda477b Validation: the runtime guard's list drops the SPIR-V serializer and verifier, which no runtime input reaches now
With the device replay's preprocess module gone, the binder's files reach the SPIR-V builder only
through the merged draw's reads (bind/replay), which the compile emits, and no runtime input
reaches spirv/serialize or spirv/verify: the_runtime_sources_are_the_committed_ones listed them as
unreached (job m3-max-66689 at 13cc8fdae8). The builder's reason says what reaches it now.
2026-11-22 01:44:19 -08:00
Anees Iqbal 4c21ead93c bind: the items nothing outside bind/'s own tests reached go, with the tests of them alone
What goes: every item of the translator's bind/ that no product code, no other crate of the
workspace and no consumer reaches, by rustc's own dead-code answer with bind/'s items made
crate-private (no table is trusted), and the tests that test only them. Six files go whole
(acceleration, chroma_decode, rate_map/regions, replay/rules, sample_interleave, tile_map), and
with them replay/draws, replay/generated, fan_out's tests, the device replay's preprocess and the
host replay (replay.rs keeps the merged draw's reads), the heap element and raw-form readers, the
resident set, the mesh arguments module, the rate-map regions, the sparse tile map, the chroma
decoders and the sample interleave modules. Also the empty `impl Device {}`, and the three Device
calls nothing in the tree made: render_descriptor_key, mesh_descriptor_key and
compile_function_with_report (compile_function keeps its body). The old-key test
(the_old_render_descriptor_key_keeps_its_value) goes with render_descriptor_key: one bless item
fewer at every pin.

What stays: what anything reaches. The consumer-reached ArgumentBufferLayout family, the merged
draw's reads (replay/merged and the helpers replay.rs keeps), ycbcr_convert's and
mesh_arguments' reached items, and every bind item validation, conformance, the runtime, the
harness or the examples name. A CPU oracle, accessor or constructor that only tests call, and
whose tests check kept behaviour, becomes #[cfg(test)] test support where it is (812 lines: the
argument layout's `argument`, the YCbCr read model, YCbCrPlanes and YCbCrInPlace's constructors
and accessors, the rate map's accessors and constructors, FunctionTableWords and the snapshot's
bytes, the ASTC and ETC texel formats and block values, heap_classes and image_classes). The
public types without a constructor (TexelRows, YCbCrInPlace, IndirectRef, ViewMapping,
TileThreadgroupMemory, TileThreadgroupArgument, ArgumentFunctionTable, ResidentRange,
BoundAccelerationStructure) stay: a public field or parameter of the library takes each.

Lines (from the batch's tip): product 9,219 removed and 728 added; test 7,758 removed and 381
added. 137 test functions or helpers outside the deleted ones are edited off a deleted item, the
largest by 22 lines. Validation, conformance, the harness and the runtime change only in doc
comments that named a deleted item.

Docs: docs/API.md says what is true now (no replay, no heap element reader, no has_shape, the
texel-buffer parts rule stated inline), docs/REFUSALS.md regenerated, api_signatures.tsv blessed
(522 records out), the api_surface table drops 79 bind names.

Consumer hits at its development (git grep -n -w ITEM development -- '*.rs'). The consumer
imports from metal2vulkan::bind only ArgumentBufferLayout, ArgumentDescriptor,
ArgumentLayoutError and ArgumentType, with no glob, and the runtime re-exports only
bind::SamplerDescriptor; every non-zero count below is a generic word whose hits are the
consumer's own items (none of their lines names metal2vulkan; its 22 `.argument(`/`.place(`
calls are on its own types).

Device::render_descriptor_key 0, Device::mesh_descriptor_key 0,
Device::compile_function_with_report 0.

Deleted public top-level items (93):
ARGUMENT_BYTES 0, bit_index 0, bit_set 0, ChromaDecode 0, draw_merge_module 0, draw_replay_draw 0,
draw_replay_indexed 0, draw_replay_merges 0, draw_replay_module 0, draw_replay_preprocess 0,
draw_replay_primitive_type 0, draw_replay_slots 0, draw_replay_state 0, draw_replay_vertex_layouts
0, DRAW_REPLAY_WRITES 0, DrawMergeModule 0, DrawReplay 0, DrawReplayLayout 0, DrawReplayModule 0,
DrawReplayPreprocess 0, DrawReplayRule 0, extent_of 0, FORMAT 5, GeneratedLayout 0, GeneratedReplay
0, GeneratedVariant 0, geometry_flags 0, GEOMETRY_NO_DUPLICATE_ANY_HIT_INVOCATION 0, GEOMETRY_OPAQUE
0, geometry_table_offset 0, handle_entry_flags 0, HANDLE_TABLE_CAPACITY 0, heap_element 0,
heap_raw_form 0, HeapElement 0, HeapElements 0, InheritedBytes 0, instance_record 0, InstanceRecord
0, interleave_merge_modules 0, interleave_split_module 0, InterleaveMergeModules 0,
InterleaveSplitModule 0, level_extent 0, MAX_DRAW_REPLAY_TYPES 0, MAX_REPLAY_DISPATCHES 0,
MAX_REPLAY_REGIONS 0, MAX_REPLAY_SLOTS 0, MAX_REPLAY_VARIANTS 0, MAX_SEGMENT_COMMANDS 0,
merge_fragment_typed_module 0, MERGED_CHUNK 0, MERGED_HEADER_BYTES 0, MergedLayout 0, MergePhase 0,
mesh_arguments_module 0, MeshArgumentsModule 0, MeshGridRule 0, MetalInstance 0,
NEUTRAL_HEAP_ELEMENT 0, NO_HOLE 0, PARAMS_BYTES 0, PlanesCopy 0, primitive_wrap 0, RateMapRegion 0,
RateMapRegions 0, REGION_BYTES 0, RegionError 0, RegionLimits 0, replay_preprocess 0,
replay_preprocess_generated 0, replay_preprocess_module 0, ReplayExecution 0, ReplayLayout 0,
ReplayPreprocess 0, ReplayPreprocessModule 0, ReplayVariant 0, resident_view 0, ResidentSet 0,
ResidentView 0, resolve 179, SCRATCH 0, SLOT_TABLE_BYTES 0, SOURCE 7, SparseTileMap 0,
split_typed_module 0, STATUS 42, TEMPLATE_HEAD_BYTES 0, texel_buffer_parts 0, TileMapError 0,
TileMapping 0, typed_module 0, VARIANT_BYTES 0

Deleted public methods and associated items (126; the count is of the member's name):
ArgumentFunctionTable::at_address 0, BindingPlan::heap_elements 0, BindingPlan::instantiate_replay
0, BindingPlan::relisted_sampler_tables 0, BindingPlan::sampler_tables 0,
BindingPlan::unit_axes_variant 0, BindState::has_shape 0, BindState::has_shape_beside_used 0,
BoundBuffer::same_shape 0, ChromaDecode::ALL 62, ChromaDecode::BLOCK_BYTES 0,
ChromaDecode::block_extent 0, ChromaDecode::decode 2087, ChromaDecode::decode_into 26,
ChromaDecode::of 20774, ChromaDecode::TEXEL_BYTES 0, ChromaDecode::texel_format 0,
DrawMergeModule::HEADER_PUSH 0, DrawMergeModule::LOCAL_SIZE 0, DrawMergeModule::PUSH_BYTES 0,
DrawMergeModule::push_constants 0, DrawMergeModule::STATUS_PUSH 0, DrawReplay::new 9170,
DrawReplayLayout::argument_offset 0, DrawReplayLayout::fragment_table_offset 0,
DrawReplayLayout::params_offset 0, DrawReplayLayout::vertex_table_offset 0,
DrawReplayModule::LOCAL_SIZE 0, DrawReplayModule::PUSH_BYTES 0, DrawReplayModule::RECORDS_PUSH 0,
DrawReplayModule::RESIDENT_PUSH 0, DrawReplayModule::STATUS_PUSH 0, EtcDecode::block_extent 0,
ExecutionStatus::WORDS 7, GeneratedLayout::count_offset 0, GeneratedLayout::dispatch_offset 0,
GeneratedLayout::INDEX_OFFSET 0, GeneratedLayout::max_sequences 0, GeneratedLayout::PUSH_OFFSET 0,
GeneratedLayout::sequence_offset 0, GeneratedVariant::new 9170, HeapElements::element 103,
ImageViewDesc::new 9170, InstanceRecord::bytes 7067, InstanceRecord::BYTES 29,
InterleaveMergeModules::SET 43, InterleaveMergeModules::WIDE_BINDING 0,
InterleaveSplitModule::LOCAL_SIZE 0, InterleaveSplitModule::SET 43,
InterleaveSplitModule::SOURCE_BINDING 0, InterleaveSplitModule::WIDE_BINDING 0,
MergedLayout::draw_offset 0, MergedLayout::group_count 0, MeshArguments::ARGUMENT_BYTES 0,
MeshArguments::new 9170, MeshArguments::OBJECT_RECORD 0, MeshArguments::scratch_bytes 0,
MeshArgumentsModule::PUSH_BYTES 0, MeshArgumentsModule::SCRATCH_BINDING 0, MeshArgumentsModule::SET
43, MeshArgumentsModule::SOURCE_BINDING 0, MeshArgumentsModule::STATUS_BINDING 0, MeshGridRule::of
20774, MetalInstance::new 9170, ObjectFold::bytes 7067, PlanesCopy::ALL 62, PlanesCopy::format 3896,
PvrtcDecode::BLOCK_BYTES 0, PvrtcDecode::block_extent 0, PvrtcDecode::decode 2087,
PvrtcDecode::decode_rows 0, PvrtcDecode::level_bytes 0, PvrtcDecode::linear 144,
PvrtcDecode::TEXEL_BYTES 0, PvrtcDecode::texel_format 0, RasterizationRateMap::regions 39,
RateMapRegion::scissor_extent 0, RateMapRegion::scissor_offset 0, RateMapRegion::viewport 45,
RateMapRegions::admits 17, RateMapRegions::admits_planned_layers 0, RateMapRegions::MAX_REGIONS 0,
RateMapRegions::physical_size 4, RateMapRegions::precision 24, RateMapRegions::regions 39,
RegionLimits::new 9170, ReplayExecution::new 9170, ReplayFaults::ACTION 4, ReplayFaults::BARRIER 2,
ReplayFaults::BUFFERS 0, ReplayFaults::ENCODING 0, ReplayFaults::GROUP_COUNT 0,
ReplayFaults::PIPELINE 11, ReplayFaults::RANGE 0, ReplayFaults::RECORD 15, ReplayFaults::REGIONS 0,
ReplayFaults::VARIANT 0, ReplayFaults::VERTICES 0, ReplayLayout::argument_offset 0,
ReplayLayout::params_offset 0, ReplayLayout::region_offset 83, ReplayLayout::table_offset 0,
ReplayPreprocessModule::PUSH_BYTES 0, ReplayPreprocessModule::RECORDS_PUSH 0,
ReplayPreprocessModule::RESIDENT_PUSH 0, ReplayPreprocessModule::STATUS_PUSH 0, ReplayVariant::flat
30, ReplayVariant::new 9170, ReplayVariant::with_imageblock_size 0, ResidentSet::bytes 7067,
ResidentSet::holds 3097, ResidentSet::is_empty 1066, ResidentSet::len 4763, ResidentSet::with 6328,
RootTable::resident_ranges 0, SparseTileMap::byte_len 0, SparseTileMap::is_mapped 4,
SparseTileMap::new 9170, SparseTileMap::tile 141, SparseTileMap::to_bytes 6, SparseTileMap::update
185, StatusWord::ALL 62, TexelRows::elements 50, TexelRows::new 9170, TexelRows::size 3417,
TypedModule::requirements 11

Out of the public API into #[cfg(test)] test support (41; the count is of the last name):
ArgumentBufferLayout::argument 298, ArgumentPlace 0, AstcDecode::block_values 0,
AstcDecode::texel_format 0, EtcDecode::ALL 62, EtcDecode::texel_format 0,
FunctionTableSnapshot::byte_len 0, FunctionTableSnapshot::bytes 7067, FunctionTableWords 0,
FunctionTableWords::byte_len 0, FunctionTableWords::new 9170, heap_classes 0, image_classes 0,
RasterizationRateMap::from_layers 0, RasterizationRateMap::layer 325,
RasterizationRateMap::parameter_data_size 0, RasterizationRateMap::physical_granularity 4,
RasterizationRateMap::physical_to_screen 4, RasterizationRateMap::shader_physical_to_screen 0,
RasterizationRateMap::shader_screen_to_physical 0, RasterizationRateMap::vertical 19,
RateMapAxis::from_tiles 0, RateMapAxis::granularity 24, RateMapAxis::screen_extent 0,
RateMapAxis::tiles 148, ycbcr_read 0, ycbcr_texel 0, YCbCrCodes::units 507, YCbCrInPlace::bits 940,
YCbCrInPlace::element_bytes 0, YCbCrInPlace::elements 50, YCbCrInPlace::format 3896,
YCbCrInPlace::of 20774, YCbCrInPlace::view_bytes 3, YCbCrInPlace::with_planes_image 0, YCbCrPlanes
0, YCbCrPlanes::new 9170, YCbCrPlanesSampler::bits 940, YCbCrPlanesSampler::format 3896,
YCbCrPlanesSampler::matrix 122, YCbCrPlanesSampler::range 1784
2026-11-22 01:44:19 -08:00
Anees Iqbal 9f3ff1aa75 Re-derive the generated documents at the landing tip
They are generated from the whole case set, and the set grew on `development`
while this branch was in flight, so the copy committed here counted a smaller
one.

Verified: regenerating at this tip leaves no change beyond the `Generated at`
stamp.
2026-11-22 01:27:12 -08:00
Anees Iqbal be1b2cfe46 rt: an exported block's textures owe their copy for an address write only once its address went out
bef2ec1df4 copies a texture over a buffer in an exported block in once per change of its bytes.
One change it counted was a write through an address: a submission that held one command of a
pipeline that writes outside its bound slots (writes_unbound) made every such texture owe its
copy (over::ExportedOvers::wrote read Leans::unbound). On the RX 550, whose dma-buf surfaces take
the copy form, a guest step that decoded nothing still made 2,702 copies (31.31 GiB, job m3-max-66531) of the 4K
P010 planes of a stale picture.

An address can reach an exported block's memory only once a public call has handed that address
out. So the bound: each exported block carries one flag (memory::Block::addressed, an
Arc<AtomicBool> that only exported blocks get). Every call below sets it, and the first counts in
the new Metrics::exported_blocks_addressed. ExportedOvers keeps a clone of the flag beside each
texture's weak handle, and wrote() reads it at the submission, where it read Leans::unbound:
`leans.unbound && addressed`. Metal does not define an address taken after the commit and written
for that command buffer to read, so reading the flag at the submission covers every address the
work can use.

Why one flag per block, not one per span: an address reaches its buffer's whole length, and an
exported block's one buffer spans the block. The consumer's facts: an exported block holds one
buffer, made by the host (video decode and encode buffers, probe buffers, surfaces' exported
memory), and no guest buffer lies in one. A copy-form surface's buffer also spans its block. A
per-span flag would therefore always equal the block's.

Why an Arc: the entry keeps its texture weakly, and holding the block would change when its
memory is freed.

The routes that set the flag (the contract):
- Buffer::gpu_address of any buffer whose bytes shaders reach in the block. This includes a
  Managed buffer whose device copy the consumer placed in an exported block, which
  new_managed_buffer allows ("a Private block the consumer holds"); the flag goes on the block
  whose address is answered (BufferObject::address_out).
- Device::new_exported_block. Its Block derefs to BlockInfo, whose pub gpu_address states the
  block's address, so the public make marks and counts its block. The copy form of
  Device::new_exported_surface calls the crate's exported_block(), which does not.
- A texture buffer's storage element at an index over the block's bytes. Its index reaches the
  bytes outside every bound slot, so its make marks the block.

What is not a route:
- A copy-form surface's block. The surface keeps its handle, so its address goes out only through
  Surface::buffer() and then gpu_address.
- The planes' resource IDs: they reach the textures' own images, not the block.
- An indirect command buffer's gpuResourceID: the address of its own records block.
- use_resource: tracked as a declared write.
- BlockMappings: neither hook runs for an exported block.
- The runtime's own bound-slot address pushes. The three internal reads on a &Buffer
  (tessellation factors, and the indirect execution's range buffer twice) now go through
  BufferObject::gpu_address, which marks nothing.

Kept apart: a command recorded while no texture over a buffer in an image of its own lived is
untracked. Today it sets Overs::unbound through after([], true), and it must still make every
texture owe. Overs and Leans now carry it as `untracked` (Overs::untracked), which wrote() still
reads as every texture. Bound slots, declared resources, copies back, acquires and fills are
unchanged. Inside a segment the Shared rules stand as they are; only the "every texture" clause
of the leading copy narrows.

Test (tests/exported_overs.rs, extended): new_exported_block's make counts 1 in
exported_blocks_addressed. Then an opaque-handle surface at a pitch multiple of 4096, which no
driver's pitch of a 256-byte row meets (the copy form, SurfaceCopy::Pitch). Its buffer is filled,
then four submissions each copy the plane out and then dispatch an owned synthetic kernel
(store_through, asserted writes_unbound) that writes through an address into another Shared
buffer, every word checked. Copies in are [1, 0, 0, 0] and the count reads 0. Once the surface
buffer's gpu_address is read, the count reads 1 and three more such submissions copy [0, 1, 1]:
the first owes nothing, because the submission before it went while no address of the block was
out. Every read finds the filled bytes. Without the bound, every submission after the first
copies (expected from the code: wrote() owed on Leans::unbound alone).

Verified at 67a05d9f57 (this tree, on a probe branch):
- compile job m3-max-66670: signatures check, refusal-surface check, fmt, clippy plain /
  --cfg m2v_gpu / --cfg m2v_cpu_icd, workspace Rustdoc -D warnings, api-docs, all exit 0. The rt
  suite on lavapipe: 642 passed, 3 skipped. The extended test on lavapipe printed "1 1 1 0" and
  "[1, 0, 0, 0], then out: [0, 1, 1]; blocks addressed 0, then 1".
- From the m2v_gpu archive m3-max-66672, the extended test printed "1 1 1 0" and
  "Copy(Pitch { plane: 0 }) ... [1, 0, 0, 0], then out: [0, 1, 1]; blocks addressed 0, then 1"
  on the RX 550 (RADV POLARIS12, Mesa 26.2.6, job m3-max-66678; that leg's rt suite: 644 passed,
  3 skipped), the Iris Xe (RPL-P, Mesa 26.2.6, job m3-max-66679) and the RTX 3090 (NVIDIA
  620.70.06, job m3-max-66680).

README: the exported block's rule names the routes and the count; the counters line gains
exported_blocks_addressed; the address contract says an exported block's address is one the
consumer read from rt before the commit.
2026-11-22 01:26:14 -08:00
Anees Iqbal cf27dd3eab Bless at pin a4cea24962: golden table and render key under SEMANTICS 2272, census
The pin carries the batch (SEMANTICS 2271, ARTIFACT_FORMAT_VERSION 591) and lane
irisvsimd (SEMANTICS 2272). Test tables only; no product file changes.

- tests/golden_hashes.tsv: every profile fingerprint moved, so every cell is re-stamped
  (the suites' GOLDEN line read "bless due (stale cells only, keys changed)", not a missing
  bump). Among the moves: 519 cells on the three lavapipe profiles go from
  Unsupported{IdentityDomains} to compiled with the ordered fetch's deletion (285 in .ll
  rows, 234 in .air.ll rows).
- tests/public_fixture_expectations_engine.tsv (inventory parts 3, 4 and 5): the sample
  interlock alternative, post-depth coverage and ulong atomics refusals, and one
  runtime-floor cell compiled.
- validation's opened_chains.txt: 2 contexts, runtime-floor among them (alphaToOne leaves
  the floor; the batch's enables).
- corpus/authored-compile.tsv: the census re-blessed, 2,333 cases x 9 profiles, 20,997
  cells, 0 failed, 0 differences, 0 regressions.
- pipeline/compile/tests.rs: the old render descriptor key's value at SEMANTICS 2272,
  ed9de2605383ba4540fdb4df1cd101800462f9e5c70bb694248038cc53af4cec.

Verified: bless job m3-max-66616 on the M3 (inventory, golden, printouts, opened chains and
census each exit 0); key read in m3-max-66661 at a4cea24962; quick m3-max-66613 green;
suites m3-max-66614 failed only in the six tables this commit rewrites.
2026-11-22 01:15:45 -08:00
Anees Iqbal a4cea24962 Re-pin the runtime sources at the landing tip
The landed packet changed a runtime-sources input, so the committed digest no

longer described the sources and `the_runtime_sources_are_the_committed_ones`

would fail. Recomputed over the same inputs and committed by land-pkt.sh.
2026-11-22 00:58:12 -08:00
Anees Iqbal d94bcda22c Fragment quad lane: the subgroup lane's low bits wherever the fragment stage has subgroups, without the quad class
A fragment's [[thread_index_in_quadgroup]] used to take the subgroup lane route
(SubgroupLocalInvocationId & 3) only where tier(CrossLane(QUAD), Fragment) held, and it raised the
function's class with QUAD. Vulkan does not ask for that class. Section 9.27.9 defines the quad scope
over adjacent subgroup invocation indices "in all shaders": (s0) = (s1 - 1) = (s2 - 2) = (s3 - 3),
with s0 an integer multiple of 4, and in a fragment shader quad index i is the 2x2 position. Section
9.29 selects OpGroupNonUniformQuad*'s invocations by that same i. None of this mentions the quad
operation bit.

What changed:
- The lane route now asks for what reading the lane uses: the fragment stage's subgroups
  (tier(LaneArithmetic, Fragment)), holding whole quads (a PartialFragment subgroup of a multiple
  of 4 lanes, as before).
- The route raises the basic class alone.
- FragCoord parity stays only for a fragment stage with no subgroups, or ones narrower than a
  quad. There a quad function is refused by its tier, so nothing can disagree with the parameter.
- This is the same query inside the SIMD-groups form, narrowed. No new form.

Tests:
- tests::engine_simd::a_fragment_quad_lane_needs_fragment_subgroups_and_no_quad_class. On
  MoltenVK's description without the quad class, quad_lane_f reads SubgroupLocalInvocationId and
  declares no quad capability. Without this change it takes the parity route, and the test fails.
  With the fragment stage cleared from subgroupSupportedStages, it reads FragCoord parity and
  declares no subgroup capability.
- a_fragment_quad_lane_is_its_subgroup_lane_or_its_place_in_the_pixel_quad now keys its expected
  route on the lane's tier. On every committed profile the route is unchanged: each one with
  fragment subgroups lists the quad class.

No card job: every lab card lists the quad class and already ran the lane route. Their fragment
quad cases are the evidence for that route. Nothing is claimed for a device without the quad class;
none was run. Translation changes only on such a profile, which shares the SEMANTICS 2272 bump on
this branch.
2026-11-22 00:57:03 -08:00
Anees Iqbal 03e13a12c9 Docs: object and mesh SIMD-group functions are a recorded refusal; the vertex quad row says shuffles
- docs/API.md, "Mesh pipelines": an object or mesh function that calls a SIMD-group, quad-group or
  SIMD-group matrix function is refused on every device, including a device that lists the task
  and mesh stages in subgroupSupportedStages. The translator models no subgroup facts for those
  stages (device/subgroup.rs, UNMODELED_STAGE). [[thread_index_in_simdgroup]] alone compiles there
  (the Linear tier). Until now no doc recorded this open gap where a user reads it. Of the corpus
  index's 14 object and 32 mesh functions, none calls an air.simd* or air.quad* intrinsic.
- fixtures/public/engine/README.md, gsm2_vertex_quad_permutes' row: it said the translation emits
  Vulkan's quad instructions where the vertex stage takes them. It lowers each one to a subgroup
  shuffle through the ballot of the live lanes, on every device: a group plan takes quad
  instructions only in a kernel, as tests::engine_simd's
  vertex_quad_permutes_shuffle_through_the_live_lanes asserts.

The runtime-sources.sha256 move from 032b641117 (device/derive.rs and device/subgroup.rs are runtime
inputs) is a hash-only re-pin at landing, with no RUNTIME_VERSION bump. A run's behaviour does not
change: the device's enables and caps are the same, and only the translator's subgroup model loses
a field.
2026-11-22 00:57:03 -08:00
Anees Iqbal 8db6d705da Vertex quads ask nothing of subgroupQuadOperationsInAllStages: their modules hold no quad instruction
A vertex function's quad broadcasts and shuffle-xors lower to subgroup shuffles on every device:
quad instructions are emitted only in kernels (lower/simd/mod.rs, GroupPlan::quad_instructions),
and Vulkan exempts the compute and fragment stages from subgroupQuadOperationsInAllStages. So no
module this translator emits needs that property. The tier still refused a vertex function with
quad operations on a device without it (QuadOperations). That refusal was false: the function runs
there as it runs on any other device.

What changed:
- SubgroupModel::quad_all_stages is deleted, with the tier's refusal and quad_instructions' vertex
  clause.
- The requirement derived from a module (spirv/requirements) adds SubgroupQuadOperationsInAllStages
  for a quad instruction in every execution model except Fragment and GLCompute. Before, it was
  added for Vertex alone, so a TessellationEvaluation, task or mesh module that held a quad
  instruction would have missed it. No emitter writes one today; the derivation follows Vulkan's
  rule for any module.
- The description's quad_operations_in_all_stages and VkProperty::SubgroupQuadOperationsInAllStages
  stay. Enabled caps and that requirement read them.

Consumer check: `git -C reims-vgpu grep -n -w quad_all_stages development -- '*.rs'` has 0 hits. The
removed field is the only public item that goes; api_signatures is blessed and loses that one
record. docs/REFUSALS.md is regenerated: the QuadOperations row no longer names the property, and
it has one site.

Test: tests::engine_simd::vertex_quads_need_no_quad_operations_in_all_stages. It compiles
gsm2_vertex_quad_permutes' three vertex functions on the Iris Xe (RPL-P) description with the
property cleared, and each is a valid module that holds no quad instruction or capability. Without
the change, each is refused with QuadOperations. No committed profile has vertex subgroups without
the property, so the tier table is unchanged. The vertex quad cases on the measured cards read as
before: every one of them lists the property.

SEMANTICS: this is a refusal turned into a translation on such a profile. It shares the bump to
2272 with PrecisionNote::VertexSimdgroupGrouping on this branch, since the two land together.
2026-11-22 00:57:03 -08:00
Anees Iqbal fd6b93d4a0 Validation: the vertex quad rationales say a vertex function's quad broadcasts are subgroup shuffles
Four authored vertex quad cases (1c0387d9, d78b048f, e9af4d38, 4a7dd540) said the translation emits
Vulkan's quad instructions where the vertex stage takes them. It does not: a group plan takes quad
instructions only in a kernel (lower/simd/mod.rs, GroupPlan::quad_instructions), so a vertex
function's quad broadcasts and shuffle-xors by constants are subgroup shuffles on every device.
Rationale text only; the case ids and every other field are unchanged (the lines round-trip
byte-exact through compact sorted JSON).
2026-11-22 00:57:03 -08:00
Anees Iqbal c018016565 Validation: the authored vertex simd and quad cases no longer cite Apple's packing
The 16 authored vertex cases whose functions run a simdgroup or quad operation (the 8 that
mismatched on the Iris Xe and 8 that matched there) said which vertices share a simdgroup or a
quad on Apple GPUs ("two full simdgroups on Apple GPUs", "on an M4 vertices 0 to 31 form one
simdgroup", "a quad is the four vertices 4k to 4k + 3"). Metal's shading language defines these
functions for kernel and fragment functions only, so each rationale now says the grouping is the
device's and the row is a deferred near-equivalent under PrecisionNote::VertexSimdgroupGrouping.
Rationale only: no case identity, input, AIR or observation changes.
2026-11-22 00:57:03 -08:00
Anees Iqbal e3fbf2ca99 PrecisionNote::VertexSimdgroupGrouping: a vertex function's simdgroup and quad operations run over the device's grouping
A vertex function that runs a simdgroup or quad operation (any group operation or AGX
multiply-add: the simd plan's observes_lanes) records PrecisionNote::VertexSimdgroupGrouping on
every device (lower::simd::finish). Metal's shading language defines its SIMD-group and
quad-group functions for kernel and fragment functions (MSL 4.1 sections 6.10.2 and 6.10.3) and
names no lane among a vertex function's inputs (Table 5.2), so in a vertex function the groups
are the device's own, as FragmentSimdgroupGrouping already says of fragment functions. Validation
takes the note as unbounded (a difference is a noted difference) and C3 defers its rows
(DEFERRED_NEAR_EQUIVALENTS), as it does the fragment note; conformance names it
metal2vulkan-degrade-vertex-simdgroup-grouping; docs/API.md's catalogue states it. SEMANTICS 2272.

Why: on the Iris Xe (RPL-P, Mesa 26.2.6) 8 authored vertex cases mismatched the M3 Max while the
Radeon 780M and the RTX 3090 matched. A raw Vulkan probe outside the runtime (a SPIR-V 1.5 vertex
shader over 64 rasterizer-discarded points, validation layer on, 0 messages; Iris Xe job
m3-max-66302, Radeon 780M m3-max-66303, RTX 3090 m3-max-66304) read SubgroupSize 32 in every
Iris vertex invocation with lane ids 0 to 7 only: 8 subgroups of 8, in each run of 16 vertices
the even ones in one and the odd ones in another, every vote, sum, shuffle and quad broadcast
exact over the driver's own groups. The 780M runs one 64-lane group in vertex order, the 3090
two 32-lane groups. Vulkan holds SubgroupSize to subgroupSize for a SPIR-V 1.5 module and
promises full subgroups only to stages with workgroups, so the driver answers per its
properties, and the translator's tier follows the stage's queries (Iris: vertex not in
requiredSubgroupSizeStages, Direct at the API size 32). The 8 cases' outputs on the Iris
(m3-max-66342) equal, word for word, Metal's semantics over the Iris's own groups with the
partly-live rule's own-value read for a lane that takes no part (0 differing words in each of
the 8; the grouping of the 40- and 42-point draws is inferred from the 64-point rule).
2026-11-22 00:57:02 -08:00
Anees Iqbal fd18d75085 Re-pin the runtime sources at the landing tip
The landed packet changed a runtime-sources input, so the committed digest no

longer described the sources and `the_runtime_sources_are_the_committed_ones`

would fail. Recomputed over the same inputs and committed by land-pkt.sh.
2026-11-22 00:24:30 -08:00
Anees Iqbal 5b829a0f91 SEMANTICS_VERSION 2271 and ARTIFACT_FORMAT_VERSION 591: the batch's one bump of each
SEMANTICS_VERSION goes from 2270 to 2271, the batch's one bump. Under unchanged keys the batch
changes these outputs:
- modules: the f32 atomic add's compare-and-swap loop, the fma, the 8-bit float decode, the function
  tables read from the snapshot on every device, the storage view of every buffer slot, the
  in-shader containment on every profile;
- refusals and their classes: the ordered fetch's computed writes, post-depth coverage, the ulong
  texture atomics, the multisampled storage image, the raster order group's interlock;
- requirements and binding-plan facts.

ARTIFACT_FORMAT_VERSION goes from 590 to 591, the batch's one bump. Encoded types lose fields,
variants and tags:
- the ResourceTemplate's function_table_snapshot;
- the RuntimeFact variants UlongAtomicView, ExtendedRangeInputBlend, RotatedInputBlend and
  WordInputMerge, with their codec tags;
- the two extended-range blend-source precision notes;
- GraphicsState.rasterization_order_attachment_access;
- the two storage-buffer update-after-bind VkLimit codec entries.

This is the last commit of the combined batch: the unshipped lane's deletions, then rbadel's
commits, on development a347af5f65 (SEMANTICS 2270). The golden tables, the engine inventory, the
render descriptor key and the runtime sources pin are re-blessed at the next pin.

Verified: cargo fmt; signatures --check clean. The compile job and the suites follow on the branch.
2026-11-22 00:17:43 -08:00
Anees Iqbal 12cd95a609 Device: the storage-buffer update-after-bind vocabulary goes with the function-table array
The set-1 function-table array (deleted in 'the function-table heap array goes') was the only
reader of the following, and the only producer of the two limits:
- DescriptorCaps.update_after_bind_storage_buffer (descriptorBindingStorageBufferUpdateAfterBind);
- DescriptorCaps.non_uniform_storage_buffer (shaderStorageBufferArrayNonUniformIndexing);
- the limits maxDescriptorSetUpdateAfterBindStorageBuffers and
  maxPerStageDescriptorUpdateAfterBindStorageBuffers.
With the array gone, derive.rs was the fields' only writer, and nothing asked for the two limits.
They go (rule 4).

Deleted public items:
- the two DescriptorCaps fields;
- VkLimit::MaxDescriptorSetUpdateAfterBindStorageBuffers and
  ::MaxPerStageDescriptorUpdateAfterBindStorageBuffers;
- Limits.max_descriptor_set_update_after_bind_storage_buffers and
  .max_per_stage_descriptor_update_after_bind_storage_buffers.
Their Khronos-document parse, ash query, check arms and codec entries go with them. The
VkFeature entries stay: the enable set and the description's VUID rule still name them.

rt README: the Not enabled rows of descriptorBindingStorageBufferUpdateAfterBind and
shaderStorageBufferArrayNonUniformIndexing go. The profile no longer reads either feature, and
tests::feature_enables holds the table to what the profile reads.

Test: device::tests::enables::a_recommendation_keeps_vuid_10247, kept by the robustness
deletion, asserted and cleared update_after_bind_storage_buffer among the fields that adding the
buffer update-after-bind features changes. Those two lines go, and its doc no longer names the
function tables. Its point, VUID 10247 and the fields that differ, is unchanged.

Consumer search (reims-vgpu at bd9d6ae85a, git grep -w over *.rs, *.toml and *.md): 0 hits for
each field name, for both VkLimit variants, for DescriptorCaps and for VkLimit. The 73 hits for
'Limits' are the consumer's own types; none reads these fields.

Lines: product sources -26; tests +1 -4; rt README -2; signatures -6.

Verified: cargo fmt; signatures blessed (6 removed); refusal surface regenerated (unchanged). The
compile job follows on the branch.
2026-11-22 00:17:43 -08:00
Anees Iqbal 55975da12f Tests: three suite failures of the batch on a347af5f65, fixed forward
The product suite at the test-fix commit 6ca952a512 (m3-max-66350) failed 10 tests. Three are
fixed here:

- pipeline::compile a_replayed_draw_reads_its_buffers_through_the_slot_table.
  - The test-fix commit ran the stride template's replay variants under the identity domains.
    There the replay's slot table is unplaced, and the compile stops on an internal invariant
    ("a strategy reads the unplaced push field RootTableAddress").
  - Under identity the test now asserts what it asserted before: the attribute is fetched in fixed
    function (one binding), and the replay is refused as GpuEncodedIndirectCommands.
  - On the resident tables the attribute is pulled, so the replay names no layout to pull
    (draw_replay_vertex_layouts is empty). The replay variant, one draw per command and merged,
    compiles straight from the key: it binds no layout, pulls the attribute through Psb root
    entries, passes L3, and its plan states its key.
  - No longer proved: the pulled-vertex-buffer variant under a replay, which no domain makes now.
- engine_primitive_ids, renamed a_stage_in_attribute_links_pulled_in_the_de_indexed_and_list_forms.
  - The identity leg the test-fix commit added cannot run, because the identity domains refuse
    the fixture's primitive-ID fragment (IdentityDomains, "an encoder value the function reads as
    VerticesPerPrimitive").
  - The leg is dropped. The test asserts that the base pulls the attribute and that the
    de-indexed and list variants link pulled, valid, with plans stating their keys.
  - No longer proved: item 8's move of a fixed-function attribute to pulled with this fixture.
- engine_simd_lockstep the_stage_bound_fixture_keeps_the_pin_or_states_its_weight, which
  a347af5f65 brought with the bound at 39,014.
  - On the resident tables the pinned plan now weighs 39,417, past the bound, because
    0890e2c0fe contains every access in the shader.
  - Its reconverging half now runs under the identity domains, the runtime's, whose kernels the
    bound keeps in the process. There the probe m3-max-66400 weighed the emulated plan at 113,727
    and the pinned one at 38,357.
  - Its cleared half stays on the resident tables (emulated 112,790, made as it weighs).

The other seven are bless items or unshipped's, and none is a test edit:
- engine_half_moves and engine_native_half are fixed by bb44847705;
- golden_hashes: 27,825 cells under a changed profile fingerprint;
- the_old_render_descriptor_key_keeps_its_value;
- public_fixtures_engine part 4 (item D);
- public_fixtures_engine parts 3 and 5: fragment_rog's refusal and pdc_after, from 8c79d72296 and
  efd7657c79.

Verification: the product suite at the batch tip.
2026-11-22 00:17:43 -08:00
Anees Iqbal 54cd974bae Translator: a signalling float NaN constant records NativeNanEncoding
Observation: the RTX 3090 run of the authored case b315adcc
(float-operations-decided-by-a-bound-constant-fast, fixture sfold_fast.ll, job m3-max-66255)
differs from Metal at words 16-19 and 68-71. That is f[4] = fma(float4(k_snan), x, x) with
k_snan bound to the signalling NaN 0x7f800321: Metal stores 0x7f800321 and the 3090 stores
0x7fc00321. The module recorded no precision note, so validation counted it as a mismatch.

Cause: no fma reaches the module. canon::sccp's float_fold folds an fadd, fsub, fmul, fdiv or
air.fma with a NaN operand beside operands only the run knows to that operand, unquieted, as
Metal's compiler does once the constants are bound. So the module stores a float4 constant
0x7f800321, and the device's move of it as a float quiets it. No Vulkan rule forbids that, so
the stored NaN's bits are the device's. AGENTS rule 1 counts a NaN's bits among the device's own
answers and asks for a static note.

Fix: nan::holds_signalling_float, called from the arith family's finish(), records
PrecisionNote::NativeNanEncoding where the entry's module holds an f32 constant whose bits are a
signalling NaN: every exponent bit set, the quiet bit clear and a nonzero payload
(nan::signalling_f32).
- The rule is decided from the constant's bits alone, never from a name or a case.
- An entry's module holds exactly the constants its function reaches (canon::prune), so the note
  follows the entry, not its library.
- It covers every operation of the fold family, because it keys on the stored constant, not on
  the operation, and it covers a signalling NaN the program wrote itself.
- f32 only. A half constant moves as its bits (narrow::constant_bits): h[2] of the same case
  matches Metal. double is not measured and not claimed.
- The scan ticks the meter once for the table's length.

Validation reads the note from the module: the candidate takes the pipeline state's precision
notes (candidate/platform/runtime.rs), and the comparison class is derived from them
(observation_contract::comparison: NativeNanEncoding is Allowance::Unbounded). b315adcc's
difference is therefore expected to count as a noted difference instead of a mismatch. That is
expected, not yet run.

Docs: docs/API.md's NativeNanEncoding entry and the note's doc comment gain the case. They claim
only what was seen: the 3090 quiets an f32 constant on the move, the other cards in the runs so
far kept its bits, half constants move as bits, and double is not measured.

Test: engine_float_call_notes::a_signalling_float_nan_constant_records_the_devices_nan_encoding.
A kernel storing the f32 constant 0x7f800321 records the note. One storing the quiet 0x7fc00321
does not, and neither does one storing the half 0x7c01. Without the finish() call the first
assert fails.

Bless class at the next pin, expected and not audited: authored compile-census rows of cases
whose module keeps a bound signalling f32 NaN beside a run value (the sfold cases binding k_snan,
b315adcc among them) gain NativeNanEncoding. The golden tables compile with function constants
unbound and hold no NaN literal (no public fixture spells one), so they are expected unchanged.
No SEMANTICS bump: the batch's last commit carries it.
2026-11-22 00:17:43 -08:00
Anees Iqbal fed075c43e Translator: the vertex projection's three dead pull arms go
Since 0890e2c0fe, metal::vertex::fetch_as pulls every attribute outside the identity domains.
Under them it answers fixed function or a refusal, never Pulled. So in pipeline::link::vertex
resolve() a fixed-function attribute exists only under the identity domains, and the arms that
moved one to Pulled outside them could not run. Each is deleted (rule 4):
- the per-attribute arm (`else if !fits || unaligned || limit.is_some()`), with its `fits`
  flag: outside identity the attribute was already pulled;
- the attribute and binding limit loop's "pull the highest fixed-function attribute". Past a
  limit, fixed-function attributes exist only under identity, where the loop already returned
  the VertexInputLayout refusal. It is now one check that refuses;
- the dynamic-stride arm's pull: such an attribute was refused under identity, and none exists
  outside.
The per-attribute checks still run for every attribute, as before, so no error they raise moves.
The module docs' items 3 to 6 now say they refuse; no item pulls outside identity, because item
2 already pulled everything there.

No behaviour change. The pipeline::link render tests in the batch's test-fix commit cover both
domains: identity refusals for items 3 to 6 and the limits, and pulled outside. Verified at the
batch tip by the 252-row hash probe and the states play.
2026-11-22 00:17:42 -08:00
Anees Iqbal 60ee58ab1d Translator: a contained half load keeps its loaded bits, a NaN's payload included
A half moved straight from one buffer to another must keep its 16 bits: a move is not arithmetic,
so rule 1's "the device's own NaN bits" does not cover it. Under the in-shader containment check,
every RESIDENT_TABLES profile since 0890e2c0fe, the move lost them: all 2045 NaN patterns of
engine_half_moves' move 0 came back as 0x7e00 (0x7c01 to 0x7e00, for example), and
engine_native_half saw a new f32-to-f16 narrowing.

Cause: the checked load was select(inb, v, zero) on the decoded value (emit.rs load_one). For a
half, v is the widened f32 that narrow::from_bits notes with the bits it was decoded from. The
select is a new value with no note, so the store's narrow::to_bits found no known bits and
re-encoded the f32 by the device's narrowing.

Fix:
- leaf::contained is now the contained load of a leaf. For a narrow float (half, bfloat),
  narrow::select_zero also selects the bits v was decoded from (zero's bits out of bounds) and
  notes them for the result, as from_bits notes a decode's. A store of the contained value then
  writes the loaded bits.
- A chunked narrow leaf (more than four lanes) is contained chunk by chunk, so each chunk keeps
  its own bits.
- When the stored value is the loaded one, the f32 select and the decode are dead and leave the
  module (spirv::dead). When the value is computed with, the bits select is the dead one. So a
  contained load emits the same number of instructions as before.
- Both containment selects of device memory take it: load_one (storage views) and the contained
  device-address load in dynamic.rs.

The runtime's modules cannot move: the identity domains never reach either select.
- Under them every buffer slot is its device address (lower/access/mod.rs, slot lowering).
- emit::prepare's identity arm gives inb None to an unchecked access. A checked (variable)
  access gets reads_zero, which reads the zero address outside the buffer and takes no select.
- dynamic.rs bounds a device-address access only where psb_contained, which is !identity
  (lower/access/mod.rs:1426).

Not changed, because the identity domains reach them and the runtime's modules would move:
- the containment selects of local arenas (local.rs), the constant blob (blob.rs) and pulled
  vertex fetches (pulled.rs);
- a multi-root switch's phi of arm loads, which has no bits note either, checked or not.

Verification: engine_half_moves and engine_native_half are this change's proof (move 0 keeps all
2045 NaN patterns), unchanged since the batch's test-fix commit. They run in the product suite at
the batch tip, and the batch's 252-row hash probe there must be equal.
2026-11-22 00:17:42 -08:00
Anees Iqbal 2ecc7306fc Tests: the robustness deletion's 41 suite failures, by cause
The batch's first three commits left 41 product-suite failures (m3-max-66246) that are not bless
items. This commit fixes 39 of them in the tests and adds no product change. The other two,
engine_native_half and engine_half_moves, stay red until the half-move NaN fix, which is the
batch's next commit. They are a real defect: a contained half move loses its NaN bits. That
commit fixes it, and these two tests are its proof, unchanged here apart from half_moves' stale
"default" label (its policy is RESIDENT_TABLES).

A. Vertex fetch, 26 tests. The cause is 0890e2c0fe's metal::vertex::fetch_as. Outside the
identity domains every attribute is now pulled, because no buffer robustness bounds
fixed-function input (VUID-vkCmdDraw-None-02721). Before, an attribute stayed fixed function
where the description stated robustBufferAccess. Under the identity domains the fetch is
unchanged: fixed function, or refused as the format's own refusal or as VertexInputLayout. The
runtime builds every device under them (DevicePolicy::default(), rt device.rs:528), so nothing
the runtime fetches moved. The fixed-function cases therefore move to DevicePolicy::default(),
and each keeps one pulled assertion under RESIDENT_TABLES.
- pipeline::link (locations, and 7 render tests) and pipeline::compile (portability features,
  replay strides), 10 tests, rewritten.
  - Items 3 to 6 (unaligned, portability stride and beyond-stride, static strides under dynamic
    stride state) and the limit test now assert the VertexInputLayout refusal under identity,
    with the limit where one is passed, plus "pulled outside identity".
  - The format-class test asserts a signed format into uint as SignedFixedFunction under
    identity, and pulled for both classes on the tables.
- engine_stage_io, engine_link x2, engine_vertex_fetch x3, engine_primitive_ids, 7 tests,
  rewritten.
  - The projection test asserts fixed function under identity on amd-780m-radv, a native driver,
    because the portability subset refuses a constant step's stride 0. On moltenvk-m3's tables it
    asserts pulled.
  - integer_formats_feed_float_attributes: under identity, fixed function in the scaled formats,
    or the projection is refused as Format where the device lacks them (runtime-floor). Outside
    identity every attribute is pulled.
  - The label pipeline: under identity, R16G16_USCALED on the five shipped profiles, else a
    Format refusal; pulled on lavapipe's tables.
  - The fixed-function word test takes its projection under identity. It compiles the module on
    the profile's resident tables, where the interpreter binds the output by descriptor, and
    still checks every delivered word bit for bit.
  - The de-indexed and list forms gain an identity leg that still asserts item 8's move: the
    base fetches fixed function, and the variant binds no layout and pulls.
- engine_vertex_variants x4, rewritten. No domain still makes "2 modules" or "34 modules".
  Under identity FloatRGB9E5 is refused, and on moltenvk-m3 the constant step's stride 0 is
  refused by the portability stride rule. Outside identity every creation pulls.
  - Two tests are renamed to *_compiles_one_module_for_the_fetched_formats. Under identity each
    sweep is 1 module of 44 creations with FloatRGB9E5 refused; outside it is 45/45.
  - The integer sweep is renamed
    the_integer_attribute_sweep_compiles_one_module_a_creation_outside_the_identity_domains. Under
    identity: 2 per-vertex modules and 32 constant-step refusals. Outside: 64/64.
  - The notes test runs under identity and skips the refused format.
  - No longer proved: that a pulled RGB9E5 pipeline carries no DeviceVertexConversion. The
    claim was wrong in general, because a pulled normalized decode does record it
    (a_pulled_normalized_decode_notes_the_device_s_product).
- engine_graphics_binder x5. Their fixed-function halves are deleted; the binder's identity half
  has no product caller.
  - The runtime never calls the binder, and examples/api_preview.rs plans only on its
    committed_device, which is RESIDENT_TABLES.
  - Two tests are deleted whole, because they were only that half:
    an_unbindable_vertex_buffer_is_pulled_in_the_variant (an unaligned bind's pulled-vertex-buffer
    variant, its keys and its fragment push base) and a_per_bind_stride_comes_from_the_bind (a
    fixed-function binding's dynamic stride from the bind, and stride 0 without one).
  - a_render_pipeline_plans_and_draws loses the vertex_buffers, buffer_offsets and extent
    narrowing, the unaligned and far pulled variants, and the UnboundVertexBuffer refusal. Its
    descriptor, push, draw and zero-buffer checks stay.
  - a_render_plan_reads_pulled_source_buffers_by_device_address: the base already pulls, so the
    large buffer asks only for its device-address slot.
  - pulled_layouts_take_their_stride_and_share_argument_slots: layout 0 is pulled at its static
    stride beside layouts 1 and 2.
  - No longer proved anywhere: the pulled-vertex-buffer variant (item 7) and fixed-function
    vertex-buffer binding in the translator's binder.

B. Containment in the shader, 11 tests, 9 fixed here. The cause is 0890e2c0fe: robust profiles
are checked in the shader like the others.
- engine_atomics: one census for both encodings, and an assert that it is the same for both.
- engine_handles x2: the search's OpArrayLength and OpULessThanEqual are counted inside the
  search function, and the word bound gets 200 for the accesses' checks.
- engine_skeleton: the stated profile's store is checked too (ArrayLength and SelectionMerge).
- engine_volatile: a constant argument buffer is now a storage view (commit 1), so its two id
  loads carry Volatile.
- engine_arith funnel: compared against a twin kernel without the funnel, rather than against
  "no ISub in the module".
- engine_sample_coordinates x2: the pass-through proxy sees through the containment select,
  which is a move.
- engine_texture_oob::through: the texel-buffer class is [Shader].
- engine_native_half and engine_half_moves: left for the next commit, as above.

C. Profile F's per-stage storage-buffer refusal, 3 tests. The cause is a71460c948, which removed
the uniform-view fallback.
- engine_simd_matrix: a floor with fewer than 5 storage buffers a stage refuses the kernel as
  DescriptorCount.
- The engine_handles cubic test and only_non_fragment_stages run Profile F with room for the
  binding (32 storage buffers), so each still asserts what it asserted. The step-down test now
  starts from 32 rather than unlimited.

D, not a test edit. public_fixtures_engine part 4 has one expectation cell that moves:
engine/icb_indexed_extras.ll, icb_extras_wide_vertex, runtime-floor. It was Unsupported
DescriptorCount (MaxPerStageDescriptorUniformBuffers 13 > 12) and is now ok. This is a bless item
for the next pin.

Size: 593 test lines inserted and 644 deleted, after cargo fmt.

Verification: the compile job and the product suite run on this commit. Until the next commit,
the expected failures are engine_native_half, engine_half_moves, item D, and the pin-bless class
that 0df3725022 blesses.
2026-11-22 00:17:42 -08:00
Anees Iqbal 0fbe8337bc bind: an indexed draw past its index buffer is clamped on every device; the Robust arm goes
The binder had a second form keyed on robustBufferAccess2: where the device enabled it, an
indexed draw whose indices run past the bound index buffer was drawn unchanged (IndexOverrun::
Robust), and an indexed indirect draw read no arguments on the CPU. The runtime enables neither
robustBufferAccess nor robustBufferAccess2, and the translator leaves no access to either since
the previous commits, so that form goes:

- IndexOverrun has only Clamped { past_end }: index_overrun clamps to the indices wholly before
  the buffer's end on every device;
- GraphicsTemplate's stored robust_index_fetch field goes (bind/plan.rs);
- indirect_indices_unbounded holds for every indexed indirect draw.

The cost is the Clamped form's read-back: every indexed indirect draw now reads its 20 argument
bytes on the CPU (indirect_needs_arguments) on every device. It is the translator binder's
alone: the runtime never calls the binder's draw path (its only bind imports are
SamplerDescriptor and alpha_test_code; git grep of the runtime crate for IndexOverrun,
index_overrun, indirect_needs_arguments and DrawCommands: 0 hits outside tests), and no authored
case draws indirect (validation's engine and runtime routes build DrawCall::Primitives, Indexed
and Patches only; 0 hits for DrawCall::Indirect in validation and conformance).

Kept: VkFeature::RobustBufferAccess and RobustBufferAccess2 and the VUID-10247 co-enable
machinery, which validation's feature map, the runtime floor's never-enabled asserts and
with_enabled still read; their deletion is a separate change. The runtime's floor table names
only nullDescriptor, robustImageAccess and robustImageAccess2 of the robustness features.

Removed public item, with 0 hits in the consumer's checkout at bd9d6ae85a and at ad28ebd881
(git grep -w -F over *.rs, *.toml, *.md, also for IndexOverrun, index_overrun,
indirect_indices_unbounded and robust_index_fetch): IndexOverrun::Robust. api_signatures.tsv is
blessed here; docs/REFUSALS.md is unchanged. Stored: GraphicsTemplate.robust_index_fetch, under
the batch's ARTIFACT_FORMAT_VERSION bump, applied last.

Tests: bind/graphics/tests.rs and engine_graphics_binder.rs keep their tests, rewritten to the
clamped form alone; devices_by_robustness, the helper that split the devices by the feature,
goes. None was the sole proof of a kept behaviour.

Golden: the binder emits no module, so no cell is expected to move here. The .air.ll half (567
typed-pointer fixtures, which need metal-as) is unchecked per commit; the batch's golden bless on
the M3 covers it.

Verified:
- At the batch's top on unshipped's tip before this rebase (96d953bb0b plus all four commits,
  probe job m3-max-66130): the hash probe's 252 rows equal unshipped's arm at 4861c9863d
  (m3-max-65976); the golden probe's set without buffer robustness equals the base arm
  96d953bb0b (m3-max-66128), 1855 of 1855 rows, and the stated set moves only commit 2's 24
  texel-buffer rows (312 cells). That base's compile of this commit was cancelled when the base
  moved.
- Here: cargo fmt; signatures check; refusal surface regenerated. The compile job follows on the
  branch tip.
2026-11-22 00:17:42 -08:00
Anees Iqbal fcc0928ee4 Translator: the access arms the robustness deletion left constant go
With containment the in-shader check on every profile, several choices in lower/access and the
vertex fetch took one value everywhere. They go:

- Target.check (every consumer gets a placed target and its check from AccessPlan::check, which
  is Check::None only for a device-address slot with containment off, else Check::InShader);
- Access.blob is a bool; BlobLoad's checked field goes (its census name is
  access.blob.load.checked, its words estimate counts the check), and with it the checked
  fields of copy's Endpoint::Blob and Base::Blob;
- the descriptor-view arm of emit is always the in-bounds test, then the select, with the store
  guarded;
- the pulled reads' check parameter (view_read, view_read_at, prepare, prepare_within), and the
  check fields of the pulled vertex fetch, the stage-in fetch and the tessellation patch reads;
- docs in lower/access, memory/blob, link/vertex and pulled that still named robust
  descriptors.

No public item changes (api_signatures.tsv and docs/REFUSALS.md are unchanged), and no version
moves.

Tests: the fetch tests' four loops over [Check::None, Check::InShader] become the in-shader
form alone; Source::View carries no check. No test is deleted.

Golden: this commit emits what the one form already emitted, so no cell is expected to move;
the batch's top moved only commit 2's 312 cells. The .air.ll half (567 typed-pointer
fixtures, which need metal-as) is unchecked per commit; the batch's golden bless on the M3
covers it.

Verified:
- On unshipped's tip before this rebase (96d953bb0b), the same change: compile job
  m3-max-66133 green (fmt, signatures, refusals, clippy plain, m2v_gpu and m2v_cpu_icd,
  workspace Rustdoc, api-docs).
- At the batch's top on that base (all four commits, probe job m3-max-66130): the hash probe's
  252 rows equal unshipped's arm at 4861c9863d (m3-max-65976); the golden probe's set without
  buffer robustness equals the base arm 96d953bb0b (m3-max-66128), 1855 of 1855 rows, and the
  stated set moves only the 24 texel-buffer rows commit 2 names.
- Here: cargo fmt; signatures check; refusal surface regenerated. The compile job follows on the
  branch tip.
2026-11-22 00:17:42 -08:00
Anees Iqbal 556707ed79 Translator: containment is the in-shader check on every profile; Robustness goes
The translator chose a containment form from the device's buffer robustness: with
robustBufferAccess or robustBufferAccess2 enabled, a descriptor view's access carried no check
and the device bounded it. The runtime enables neither feature (its floor's feature table names
only nullDescriptor, robustImageAccess and robustImageAccess2), so that form never ran there; it
ran only on validation's committed descriptions, as stated. It goes, with the choice:

- Robustness (None, Rba, Rba2), DeviceProfile::robustness() and
  DeviceProfile::checks_buffers_in_shader(), and contain::encoding. A descriptor view's access is
  the in-shader check on every profile; Check::None remains only for a device-address access that
  nothing bounds (AccessPlan::psb_contained false).
- A texel buffer is checked in the shader on every profile (it was the device's under
  robustBufferAccess2). Images keep their device form: device_reads_texels and
  device_drops_texel_writes still read robustImageAccess2 and robustImageAccess, which the
  runtime's floor requires.
- Vertex input: outside the identity domains every attribute is pulled through a checked view;
  before, a device with robustBufferAccess fetched in fixed function. Under the identity domains
  nothing changes: fixed function, or the refusal of what it needs.
- The loop hoist loses its robustness parameter and the speculative path only Rba and Rba2
  reached: a load in the loop's entry run still moves, other loads stay.
- Validation: of_compile states buffers as Unused or Checked, the out-of-bounds contract states
  Check::Shader for a descriptor view and a texel buffer and Unchecked for a fixed-function
  attribute. BufferEncoding::Robust and Check::Robust stay as stored vocabulary: committed
  observations hold them, and no compile states them now.

Removed public items, each with 0 hits in the consumer's checkout at bd9d6ae85a and at
ad28ebd881 (git grep -w -F over *.rs, *.toml, *.md): Robustness, Rba, Rba2, robustness,
checks_buffers_in_shader (DeviceProfile, their owner, has 0 hits too). api_signatures.tsv and api_surface.rs are
blessed here; docs/API.md (the bounds bullet, the profile facts list, vertex_input) and the
runtime README's not-enabled row for robustBufferAccess change in this commit;
docs/REFUSALS.md is regenerated and unchanged. No version moves: the batch's SEMANTICS and
ARTIFACT_FORMAT_VERSION bumps are applied last, once for the batch.

Tests: the hoist's a_guarded_uniform_load_at_a_fixed_word_leaves_its_loop goes with the
speculative path; without_robust_access_only_a_load_every_entry_runs_leaves becomes
only_a_load_every_entry_runs_leaves; robustness2_selects_the_rba2_encoding keeps its MoltenVK
asserts as moltenvk_m3_derives_its_stride_and_format_usages; engine_texture_interp's
contains_texel_buffers helper goes, its tests always running N+3 threads. Rewritten to the one
form: engine_texture_oob's texel-buffer classes ([Class::Shader]), engine_texture_ulong,
engine_graphics_binder's per-device assert, the coverage tier-table and containment tests, and
the out-of-bounds contract's fixed-function test. None was the sole proof of a kept behaviour.

Golden: the table's columns are validation's committed descriptions as stated, all with
robustBufferAccess and 13 with robustBufferAccess2; no column is the runtime's. Every column's
fingerprint moves (ProfileFields loses its robustness field). Bless items: 24 rows, 312 cells,
24 in each of the 13 columns that state robustBufferAccess2 and 0 in moltenvk-m3 and
runtime-floor, every one hash to hash, in the 14 texel-buffer fixtures now checked in the shader.
The .air.ll half (567 typed-pointer fixtures, which need metal-as) is unchecked per commit; the
batch's golden bless on the M3 covers it.

Verified:
- On unshipped's tip before this rebase (96d953bb0b), the same change: compile job
  m3-max-66123 green (fmt, signatures, refusals, clippy plain, m2v_gpu and m2v_cpu_icd,
  workspace Rustdoc, api-docs).
- At the batch's top on that base (all four commits, probe job m3-max-66130): the hash probe's
  252 rows equal unshipped's arm at 4861c9863d (m3-max-65976); the golden probe's set without
  buffer robustness (the runtime's state) equals the base arm 96d953bb0b (m3-max-66128), 1855 of
  1855 rows; the stated set moves exactly the 312 cells above.
- Here: cargo fmt; signatures check; refusal surface regenerated. The compile job follows on the
  branch tip.
2026-11-22 00:17:42 -08:00
Anees Iqbal 5e3477e60a Translator: a buffer slot takes the storage view on every profile; the uniform view goes
A buffer slot took a uniform view only where containment was the device's
(contain::encoding gave Check::None, under robustBufferAccess or robustBufferAccess2): the
uniform arm of the slot's view choice and Profile F's per-stage storage-buffer fallback. The
runtime enables neither feature, so no runtime module took one. The next commit deletes the
robustness choice; memory, lower and spirv are crate-private, so its dead_code would fail that
commit on its own. The uniform view goes first, with everything that only it reached:

- the uniform forms of a view (UniformWords and UniformVec4) and their reads, and Profile F's
  fallback (fallback_view, fallback_rank). Profile F (runtime-floor without device addresses,
  below the runtime's floor) now refuses a stage past maxPerStageDescriptorStorageBuffers as
  DescriptorCount, where before it read its read-only slots through uniform views, under robust
  descriptors only;
- SlotPlan::lane_read and its planner pass, and Uniformity::among_active_lanes, which only that
  pass ran;
- the storage-view variant: LoweringInputs and VariantKey storage_view_slots, the binder's
  storage_view_variant and large_view_candidates;
- RuntimeFact::UniformViewAliasing and UniformViewRange with UniformViewChoice, and the binder's
  aliasing check with its refusal BindError::UniformViewAliased (docs/REFUSALS.md regenerated:
  binder refusals 9 to 8);
- SpecKey::RangeAtBindOffset (only uniform views declared it), BindState::view_base_alignment and
  uniform_views_at_residual, StageTable.at_bind_views and StageTable::class_alignment;
  BoundBuffer::shape, BoundBuffer::same_shape and StageTable::shape lose their
  view_base_alignment parameter;
- BufferRanges.uniform: BufferRanges::length_class and the binder's offset alignment now read
  maxStorageBufferRange and minStorageBufferOffsetAlignment alone. Nothing in the runtime crate
  reads BufferRanges, BindState, BoundBuffer, StageTable or BindShape (git grep: 0 hits); it
  reaches validation's candidate engine only;
- AccessClass::Uniform, DescriptorView (Storage, UniformWords, UniformVec4) and
  BufferForm::uniform_view; BufferForm::Descriptor loses its DescriptorView field.

The loop hoist stays: the argument table's Uniform block (lower::access::table, the spilled
push fields) still feeds it. Its docs no longer name a buffer slot's uniform view.

Removed or changed public items and the types that own them, each with 0 hits in the
consumer's checkout at bd9d6ae85a and at ad28ebd881 (git grep -w -F over *.rs, *.toml, *.md):
DescriptorView, UniformWords, UniformVec4,
UniformViewChoice, UniformViewRange, UniformViewAliasing, UniformViewAliased, RangeAtBindOffset,
storage_view_slots, view_base_alignment, uniform_views_at_residual, at_bind_views,
class_alignment, uniform_view, same_shape, AccessClass, BufferRanges, buffer_ranges, BufferForm,
StageTable, BoundBuffer, BindState, VariantKey, LoweringInputs, RuntimeFact, SpecKey, BindError.
crates/metal2vulkan/tests/api_signatures.tsv and api_surface.rs are blessed in this commit, and
docs/API.md (the uniform-view form, the bind-offset key, BufferRanges) changes with it.

Stored: VariantKey's storage_view_slots, and the codec tags of BufferForm::Descriptor (no
field), SpecKey (RangeAtBindOffset gone), RuntimeFact (two variants gone) and DescriptorView
(gone). The batch's ARTIFACT_FORMAT_VERSION bump (590 to 591), applied last once for the
batch, covers them; no version moves here.

Tests deleted whole, neither a containment proof: engine_storage_view_variant.rs (the
variant's fixed point) and engine_lane_reads.rs (the uniform view's lane choice). Deleted with
the forms they tested: the uniform-view cases of engine_access.rs and engine_binder.rs, the
slots tests of the large-view candidates and the bind-offset range, the variant's cache round
trip, and the active-lanes tests of lower/simd/uniform. The kept containment proof, a constant
buffer shorter than its window, runs on the storage form
(a_constant_buffer_shorter_than_its_window_is_contained_in_shader). Profile F's new refusal has
its test (a_stage_past_the_storage_buffer_limit_without_device_addresses_is_refused).

Golden: at the batch's top only the stated set's 24 texel-buffer rows moved, the 312 cells
commit 2 alone moved before the rebase; no other row moved on either set. The .air.ll half (567 typed-pointer fixtures,
which need metal-as) is unchecked per commit; the batch's golden bless on the M3 covers it.

Verified:
- On unshipped's tip before this rebase (96d953bb0b), the same change: compile job
  m3-max-66120 green (fmt, signatures, refusals, clippy plain, m2v_gpu and m2v_cpu_icd,
  workspace Rustdoc, api-docs). Before that rebase, this commit alone (hash probe job
  m3-max-65979) read 252 rows equal to its base's arm.
- At the batch's top on 96d953bb0b (all four commits, probe job m3-max-66130): the hash probe's
  252 rows equal unshipped's arm at 4861c9863d (m3-max-65976); the golden probe's set without
  buffer robustness (the runtime's state) equals the base arm 96d953bb0b (m3-max-66128), 1855 of
  1855 rows.
- The states-only play at the batch's top (render and compute states made and refused,
  pipelines_created, made_ahead_variants) is the coordinator's, run on the branch; it is not
  evidence here.
- Here: cargo fmt; signatures check; refusal surface regenerated. The compile job follows on the
  branch tip.
2026-11-22 00:17:41 -08:00
Anees Iqbal 0fe6627d58 Tests: the recursion dispatch keeps off the runtime's floor, as before the array went
recursive_kernels_validate_and_agree_on_every_profile ran its CPU dispatch on the profiles that had
the function-table array's four features: every committed profile but runtime-floor. The array's
deletion (2588fe9ab3) made it loop over every committed profile. On runtime-floor alone the
dispatch traps on an 8-byte PhysicalStorageBuffer read at address 128. The dispatch binds buffers
by slot, gives none an address and pushes zeros.

Evidence: the probe job m3-max-66010 dispatched per profile. 14 profiles answered the expected
words, and runtime-floor trapped. Its domains are those of moltenvk-m3 (Addressed, ResidentTable,
Table, Rba), which passes. Suites job m3-max-65974 (at 4861c9863d) reported the failure.

The L3 checks of the table kernels now run on every committed profile, runtime-floor included, and
pass there. Only the dispatch skips the floor, which is the coverage the test had before. Whether
the floor's address read is the harness's alone is unaudited.

Verified: cargo fmt. The suites run on the branch.
2026-11-22 00:17:41 -08:00
Anees Iqbal 3a59474e2c Docs: CONFORMANCE-COVERAGE.md derives the ordered fetch's 22 every-venue ledger rows
The ordered fetch's deletion (36cc1319c8) replaced 39 venue rows of the conformance ledger with 22
every-venue rows, but left the generated coverage document as it was. The suites job
m3-max-65974 (at 4861c9863d) failed the_conformance_coverage_document_is_what_the_sources_derive
on it. Regenerated with python3 -I scripts/conformance-coverage/coverage.py: the ledger row
count goes from 8041 to 8024, and the padded-blend, extended-range and rotated rows each list once.

Verified: the script's output only; the conformance suite runs on the branch.
2026-11-22 00:17:41 -08:00
Anees Iqbal fb7acf2d0e Translator: the heap planner's zero-buffer size goes with the function-table array
The function-table array's element 0, the null table, was the zero buffer, and
HeapPlanner.zero_bytes held that buffer's size. With the array gone, nothing reads it: compile job
m3-max-65957 (at efbf31ea01) failed clippy on that dead field in all three configurations. The
field goes, with its three test initializers.

Verified: cargo fmt. The compile job follows on the branch.
2026-11-22 00:17:41 -08:00
Anees Iqbal 06dbb78037 bind: depth_stencil_copy_modules goes, and the module only it reached
bind::depth_stencil_copy_modules built the draws that copy a multisampled depth or stencil aspect
without colour copies. Nothing in the tree calls it, and the consumer does not either. Its types
reach no other code, so the whole module goes with it (rule 4).

Deleted public items: depth_stencil_copy_modules, DepthStencilCopy, DepthStencilCopyModules (with
SET and SOURCE_BINDING) and StencilBit. bind/depth_stencil_copy.rs and its tests are removed.
merge_vertex_typed_module, which the interleave merge still uses, becomes private to
bind/sample_interleave.rs. bind's module doc loses its sentence about the copies.
api_signatures.tsv and the api_surface table change in this commit; the refusal surface is
unchanged.

Consumer search (reims-vgpu at bd9d6ae85a, git grep -w over *.rs, *.toml and *.md):
- 0 hits each: depth_stencil_copy_modules, DepthStencilCopyModules, DepthStencilCopy, StencilBit,
  depth_stencil_copy, SOURCE_BINDING.
- No glob import and no re-export: its only import from metal2vulkan::bind names
  ArgumentBufferLayout, ArgumentDescriptor, ArgumentLayoutError and ArgumentType, and no
  `pub use metal2vulkan` or `metal2vulkan::*` occurs.
- No macro spells any of these names: they have 0 hits in any form.

Lines: product sources +4 -400; tests -149; the two tables -25.

Verified: cargo fmt; signatures blessed (18 signatures and 3 constant values removed); refusal
surface regenerated (unchanged). The compile job follows on the branch.
2026-11-22 00:17:41 -08:00
Anees Iqbal 633073d7be Translator: the function-table heap array goes; every device reads tables from the snapshot
A visible-function table read by its resource id had two forms, chosen by four descriptor-indexing
features (runtimeDescriptorArray, descriptorBindingPartiallyBound,
shaderStorageBufferArrayNonUniformIndexing and descriptorBindingStorageBufferUpdateAfterBind):
- a set-1 runtime array of storage buffers, one table per element;
- the stage's function-table snapshot.
No runtime enables descriptorBindingStorageBufferUpdateAfterBind, so the array ran on no guest's
device. It goes (rule 2: a second form chosen by a query outside the named list; rule 4).

What changes:
- A table read by its resource id takes its words from the stage's snapshot on every device. Under
  addressed_function_tables it reads the address its directory entry holds, as before.
- Deleted (lower/access/function_table.rs): TableWords::Heap, DeclaredWords::Heap,
  TableWord.checked, heap_symbol and has_array.
- Deleted (bind): the binder's function-table array write and its arm in the homes check, the
  directory entry that named an array element, the template's snapshot flag (now the same as "not
  addressed"), and the heap elements of listed tables.
- Deleted (pipeline/link.rs): the storage-buffer heap kind of the heap layout and limits.
- Deleted public item: WriteSource::FunctionTable.
- Under HeapPlacement::ResourceId, a listed function table no longer takes a heap element, so its
  resource id is no longer checked against the heap's capacity.

Kept:
- HandleClass::FunctionTable: the class provenance gives a table's handle.
- The builder's generic rule that a non-uniform element of a storage-buffer descriptor array needs
  ShaderStorageBufferArrayNonUniformIndexing.
- DescriptorCaps.update_after_bind_storage_buffer and .non_uniform_storage_buffer, with their rt
  README Not-enabled rows. A later commit of this batch deletes them wherever only deleted tests
  read them.

Tests:
- engine_argument_tables: the snapshot tests run on every committed profile. The array form's
  tests and helpers are removed.
- engine_recursion: binds the directory and the snapshot on every committed profile.

Lines: product sources (crates/metal2vulkan src, tests excluded) +107 -302; tests and the
signature table +53 -251.

Consumer search (reims-vgpu at bd9d6ae85a, git grep -w over *.rs, *.toml and *.md):
- WriteSource::FunctionTable: 0 hits.
- function_table_snapshot: 0 hits.
- WriteSource: 0 hits, so no match on it and no glob import of it.
- FunctionTable: 21 hits, all the consumer's own testkit models.

Verified: cargo fmt; signatures blessed (one removal); refusal surface regenerated (unchanged).
The compile job and the host suites follow on the branch.
2026-11-22 00:17:41 -08:00
Anees Iqbal 63ffa20a35 Validation and tests: the last names of the ordered fetch's deletion
The comparison's native notes drop the two blend-source notes, and the golden table's fetch
subject keeps no formats field (the formats still name its row).

Verified: compile job m3-max-65913 at f2fb4673b9 named these three errors; the next compile job
follows.
2026-11-22 00:17:41 -08:00
Anees Iqbal e151457e6c Translator: the leftovers of the ordered fetch's deletion in the render compile and two tests
The render compile names the logic operation it draws (logic, the Vulkan operation or none), the
stage-I/O module re-exports no output_types, and two tests compare a refusal by its feature and
needs and take no unused profile.

Verified: compile job m3-max-65909 named these four errors (and only these) at 99c8493888; the
next compile job follows.
2026-11-22 00:17:40 -08:00
Anees Iqbal 4aee2fa9f1 Translator: the ordered fetch form goes; its computed writes are refused on every device
The framebuffer fetch had a second form chosen by rasterizationOrderColorAttachmentAccess: over
a rasterization-order input attachment, a fragment function computed writes no Vulkan blend,
write mask or logic operation gives. No runtime enables that feature, so the form ran on no
guest's device. It goes (rule 2: a second form chosen by a query outside the named list; rule 4).

What changes:
- A fetch reads its input attachment ordered between draws alone on every device, noted
  UnorderedFetchWithinDraw. Under the identity domains it reads the pushed texture
  (PushField::FetchedColor).
- These states are refused on every device: a padded extended-range attachment's blend; a write
  of some of the codes one word of an extended-range attachment holds; and a blend no Vulkan
  state gives on a rotated (ARGB8Unorm) attachment. Each refusal is FramebufferFetch, not
  implemented (lower::fragment::fetch::computed_write_refused).
- A word attachment under a partial mask takes its format's own attachment, and is refused where
  the device lacks that format.
- A private logic operation on a device without logicOp is refused naming
  PrivateRenderState(LogicOperation) and logicOp.
- Deleted: lower/fragment/input_blend.rs, word_input.rs, the shader logic operation in logic.rs,
  lower/arith/extended_range/blend.rs, pipeline/link/fetch.rs, and the arithmetic only they used
  (the fma emulation cluster, div_exact, encode_keeping).
- Deleted public items:
  - LoweringInputs.framebuffer_fetch and .logic_operation;
  - FramebufferFetchInputs, FetchedAttachment, BlendEquation;
  - GraphicsState.rasterization_order_attachment_access and
    FragmentCaps.rasterization_order_color_access;
  - metal::format::extended_range_blend, Feature::ExtendedRangeBlend and the ExtendedRangeBlend
    enum;
  - RuntimeInput::FramebufferFetch and ::LogicOperation;
  - RuntimeFact::ExtendedRangeInputBlend, ::RotatedInputBlend and ::WordInputMerge;
  - PrecisionNote::ExtendedRangeBlendSource and ::ExtendedRangeFloatBlendSource.
- The enable-set facts class VK_EXT_rasterization_order_attachment_access as described and never
  enabled.

Docs, in this commit:
- rt README: Known gaps of render encoders gets one line per refused state, each built on the
  runtime's own fetch form if a guest meets it. The Not-enabled row of
  rasterizationOrderColorAttachmentAccess goes, and so does logicOp's mention of the shader form.
- docs/API.md loses the two blend-source notes from the precision-note catalogue, the
  rasterization-order form and the word merge.
- REFUSALS.md is regenerated (reach row of ExtendedRangeBlend removed), along with
  api_signatures.tsv and the api_surface table.
- The conformance ledger: the 39 rows refused naming rasterization-order access (on llvmpipe and
  the UHD 630; on other venues the case read as lacks-feature) become 22 every-venue rows,
  refused, needs NotImplemented. The matrix replay on development confirms the scope.

Lines: product sources (crates/metal2vulkan, -air, -runtime src, tests excluded) +238 -4647;
product tests +277 -2279; validation and conformance +61 -182; docs +48 -67.

Consumer search (reims-vgpu at 71573a84c8, git grep -w over *.rs, *.toml and *.md):
- 0 hits: ExtendedRangeBlend, rasterization_order_color_access, BlendEquation,
  FramebufferFetchInputs, rasterization_order_attachment_access, framebuffer_fetch,
  extended_range_blend, ExtendedRangeBlendSource, ExtendedRangeFloatBlendSource,
  ExtendedRangeInputBlend, RotatedInputBlend, WordInputMerge, DualSource.
- Hits that are not these items: FetchedAttachment 2 (rt's DrawKind); logic_operation 8 (its
  own structs and rt's private state).
- RuntimeInput: only LinkedFunction is used.
- No glob import or re-export of a metal2vulkan module (only `use metal2vulkan_runtime as rt`).

Verified: cargo fmt; refusal surface and signatures regenerated locally. The compile job and the
host suites follow on the branch.
2026-11-22 00:17:40 -08:00
Anees Iqbal 5eca62f83b Tests: the ulong atomic refusal is matched by its feature and needs
Suites job m3-max-65712 (at 1f15134d22, the same product tree as 3716ba5c3e) failed
ulong_atomics_are_refused_on_every_device and
legacy_texture_atomics_without_the_offset_compile_alike: both compared the whole Unsupported
with Unsupported::not_implemented(ImageAtomics), which carries no location or symbol, where the
refusal names its instruction and intrinsic. They now match the feature and NotImplemented.
Test-only.
2026-11-22 00:17:22 -08:00
Anees Iqbal e489d507a1 Tests: the leftovers of the ulong atomic view in two test modules
The merged-members round trip still asserted the removed fact, and the
ulong texture tests kept an unused vk import. Found by clippy in compile
job m3-max-65676 (the library itself compiled clean there).
2026-11-22 00:17:22 -08:00
Anees Iqbal e10fa7ba23 Docs: the mesh lowering is only compiled and validated, never compared with Metal on a GPU
The rule keeps the mesh lowering (a sole lowering a supported device
could run, and large) with an honest known-gap line. The runtime README's
mesh gap said "The translator compiles mesh pipelines"; it now says the
lowering is only compiled and validated and has never been compared with
Metal on a GPU. docs/API.md's Mesh pipelines section says so before it
describes what the lowering emits, and its "Every device runs a grid of
up to 2^29 threadgroups" becomes what the lowering takes. Validation's
README says a compiled cell of an object or mesh case in the authored
compile census means it compiles, not that it draws as Metal does.

Searched README.md, docs/*.md (METAL-COVERAGE and CONFORMANCE-COVERAGE
included), the runtime, validation and conformance READMEs: METAL-COVERAGE
lists mesh render pipelines as missing, and CONFORMANCE-COVERAGE counts
Metal-side cases only, so neither reads as mesh working. Docs only.
2026-11-22 00:17:22 -08:00
Anees Iqbal 37e64a6935 Runtime README: a kernel's derivatives are a known gap of pipeline states
The rule keeps a sole lowering a supported device could run with an
honest known-gap line. The compute-derivative lowering
(computeDerivativeGroupLinear, VK_KHR_compute_shader_derivatives) stays;
device creation does not enable the feature, so a kernel that calls
dfdx, dfdy or fwidth is refused on every device as
Unsupported{ComputeDerivatives}. The Not enabled table had the row; the
known gaps of pipeline states now say it where a user reads refusals.
Docs only.
2026-11-22 00:17:22 -08:00
Anees Iqbal c78ff4022c Translator: a ulong texture's atomics are refused on every device; the 64-bit image form goes
The rule: a sole lowering under 150 lines that nothing executes is
deleted to a typed refusal. Metal's atomic_min and atomic_max on a ulong
texture lowered to OpAtomicUMin/UMax on an R64ui image, which needs
shaderImageInt64Atomics; no runtime enables it, so nothing ran the form.

texture::atomic::select now refuses the pair as
Unsupported{ImageAtomics} not implemented, on every device. Gone with
the form: TexAtomic.ulong, the R64ui slot declaration and its reads and
writes in the emitter, RuntimeFact::UlongAtomicView with its codec, name
and mechanism rows, the binder's R64_UINT view and neutral,
DeviceProfile::ulong_atomic_gaps, LeafCaps.image_int64_atomics, and
R64_UINT in the queried formats. VK_EXT_shader_image_atomic_int64 is
described and never enabled. Product lines +34 -142.

Tests: the four tests of the 64-bit form and the fact's round trip go;
ulong_atomics_are_refused_on_every_device asserts the refusal on every
committed profile; the legacy-offset test takes the refusal as a gap;
the mechanism table renumbers; the recommendations test lists
shaderImageInt64Atomics as unread. The runtime README's known gap says
the atomics are refused, and its Not enabled row for
shaderImageInt64Atomics goes (the profile reads it no more).
docs/REFUSALS.md and api_signatures.tsv regenerate.

Consumer search (reims-vgpu ad28ebd881): ulong_atomic_gaps 0,
UlongAtomicView 0, image_int64_atomics 0.
2026-11-22 00:17:22 -08:00
Anees Iqbal 3f8f9d352d Translator: the grammar items drop FPEncoding, which no 8-bit float type names
The native 8-bit float deletion left spv.rs's FPEncoding (Float8E4M3EXT,
Float8E5M2EXT) unused, which clippy refuses (dead code). items.txt drops
the enum and spv.rs is regenerated from SPIRV-Headers vulkan-sdk-1.4.341.0;
the test parser's table.rs regenerates unchanged.

Found by clippy in compile job m3-max-65654.
2026-11-22 00:17:21 -08:00