Commit Graph
2186 Commits
Author SHA1 Message Date
Anees Iqbal 7360a148bb Translator: a fragment's derivatives state the reconvergence mode only in a loop a back edge re-enters from inside a selection
A fragment entry whose only tangled instructions that depend on reconvergence take derivatives
(dfdx, dfdy, fwidth, implicit-LOD samples, LOD queries) no longer states MaximallyReconvergesKHR
(or SubgroupUniformControlFlowKHR), records Reconvergence::Guaranteed and carries no
DeviceReconvergence, on every device, except where its emitted module holds such an instruction,
itself or through a call, in the construct of a loop whose continue target two or more blocks of
the construct branch to (a continue from inside a selection, or two latches). There it takes the
mode the profile gives a tangled entry, and the note where the profile has no maximal
reconvergence. Entries with group operations or barriers keep today's behaviour.

Why: MSL 6.11.1.1 leaves derivatives undefined within nonuniform control flow, and an implicit
level or LOD query is the derivative of its coordinate, so such an instruction is Metal's only
where the quad reaches it together. Without a mode SPIR-V reconverges invocations at the merge of a
construct they entered together and all leave by it (2.2.5, Uniform Control Flow); only the
continue target of a loop entered from several blocks needs SPV_KHR_maximal_reconvergence to
rejoin the quad for the next iteration. AMDVLK 2025.Q2.1 miscompiles a large fragment function
under the mode (an 8x8-cell grid on the 780M, blockiness 9.15 against RADV's 2.87; the same play
with the mode stripped reads 2.92, job m3-max-71921), and the note logged on every device without
the feature for a case Metal leaves undefined.

How: SelectCx::derivatives marks the derivative and implicit-LOD tangled values; simd::finish
defers a fragment entry with only those to SimdPlan::quad_loops; lower::simd::quad_loop::settle
decides on the emitted module, before verification, and declares the mode with
TypedModule::declare_modes where it applies. The PrecisionNote and Reconvergence docs, the
docs/API.md catalogue entry and its Precision sentence, and the simd module doc say the same.
SEMANTICS_VERSION 2298.

Verified:
- Metal-defined reconvergence cases with the mode stripped equal them with it, and Metal, on the
  780M under AMDVLK 2025.Q2.1 and RADV (m3-max-72068), the RTX 5080 (m3-max-72069), the RTX 3090
  (m3-max-72071), the Iris Xe (m3-max-72070) and lavapipe (m3-max-72077): 0 of 4096 pixels differ
  from Metal either way. Each entry under this change reads one of the two.
- The lettering play on the 780M under AMDVLK to frame 4016 (m3-max-72116, this change against
  its base ff2b13cb96): blockiness 2.92 against the base's 9.15 and RADV's 2.87. In the same job
  under AMDVLK, the runtime's device suite (717 tests, one process each) reads 714 passed and the
  same 3 failed for base and change, 0 verdicts differing; `conformance replay --gpu` gives
  identical verdicts and lines.
- Lowering diff, card-free (m3-max-72134), on every committed profile over five recordings,
  base against change: only fragment-stage modules differ (22514 of 43708 render states, from
  906 fragment entry points); 0 vertex modules and 0 of 16160 compute modules differ; on
  nvidia-pascal-linux and runtime-floor no module differs and only the reconvergence and the
  note move. The golden table's 1079 changed cells are 83 fragment entries (!air.fragment) on
  the 13 profiles with maximal reconvergence (m3-max-72117); its bless is due at the next pin.
- Reach (m3-max-72028, m3-max-72101, m3-max-72194): on the 780M RADV profile, standing for the
  13 maximal profiles, 229 fragment entry points of the lettering recording, 906 of five other
  recordings and 3108 of fifteen more lose the mode; none still states it.
- Timing, base / change / base, each play from empty caches, GPU busy against the base mean:
  the 780M under RADV, 4017 frames (m3-max-72164), +0.07% whole play, +0.06% from frame 250, at
  most +0.96% in any 250-frame window after it; the RTX 3090, 751 frames (m3-max-72163), +0.82%,
  +1.08%, at most +1.71%, clocks alike per arm; the Iris Xe, 751 frames (m3-max-72202), -0.07%,
  -0.04%, at most -0.01%. The RTX 5080's run (m3-max-72128) read noise: its base arms' GPU
  busy stood 3.0-8.5% apart in four of five windows.
- Release translation of the largest row, the 357,837-word lettering fragment module, through
  the command line with spirv-val: 0.28 s and 43.6 MiB, as the base's 0.29 s and 43.5 MiB
  (m3-max-72178). The slowest single pipeline of a recording compiles in at most 0.5 s on a loaded
  host, and its process peaks at 436 MiB (m3-max-72169, m3-max-72177); five recordings' batch,
  75 runs a side interleaved, takes 0.44% longer than the base's (m3-max-72134).
- Tests (engine_quad_loops): derivatives in selections, after merges, after a loop and in a
  one-latch loop state no mode and no note on every committed profile; a two-latch loop around a
  sample or dfdx takes the profile's mode and, without maximal reconvergence, the note; a
  fragment quad operation keeps the mode. With the routing switched off,
  derivatives_outside_a_re_entered_loop_state_no_mode_and_no_note fails and the other two pass
  (m3-max-72117). Gate at this commit (m3-max-72200): fmt, clippy in every configuration, Rustdoc,
  the suites, the doctests and lavapipe's quad_control pass, but for the golden table's bless;
  `conformance replay --cpu` on lavapipe, reconvergence cases included, reads the same as on
  62ab49b966 line for line, and holds the ledger.
2026-11-23 14:19:33 -08:00
Anees Iqbal 62ab49b966 Conformance ledger: the reconvergence rows on the Iris Xe
The Iris Xe (RPL-P, Mesa ANV; job m3-max-72186) answers the four
trilinear sites of reconvergence-handle-choices exactly as every AMD
venue does: 1128, 1136, 2240 and 490 elements, each one step of a half,
on the second source only. Everywhere else it matches Metal, so four
rows are scoped to "Iris(R) Xe". The llvmpipe diagonal rows now list
every GPU replayed that answers Metal's there. CONFORMANCE-COVERAGE.md
regenerated.
2026-11-23 13:59:31 -08:00
Anees Iqbal 17802357be Conformance ledger: the AMD trilinear rows hold on every AMD venue
The four trilinear rows of reconvergence-handle-choices were scoped to
the 780M. The RX 550 (POLARIS12, job m3-max-72170) and the RX 7900 XTX
(NAVI31, job m3-max-72171) under RADV answer the same four sites with the
same counts (1128, 1136, 2240 and 490 elements, each one step of a half)
as the 780M under RADV and AMDVLK, and match Metal everywhere else. So
the rows are now scoped to "AMD Radeon", which every one of those venue
names holds. The RTX 2080 (job m3-max-72171) matches Metal on both cases.
CONFORMANCE-COVERAGE.md regenerated.
2026-11-23 13:59:31 -08:00
Anees Iqbal baae603de4 Conformance ledger: the llvmpipe diagonal rows say what differs, and point at nothing private
The two level-and-pair rows on llvmpipe (rc_loop, rc_break) pointed at
a bug list outside the repository. Each now says, on its own, what
differs: the fine pair along the full-screen triangle's diagonal
x + y = 62 to 63, the same with and without MaximallyReconvergesKHR. It
also says where it was measured (LLVM 23.1.1, 256 bits, AVX2) and which
drivers answer Metal's. Only the text field changed, so neither row's
identity (case, verdict, site, answer) moved. CONFORMANCE-COVERAGE.md,
which quotes the rows, was regenerated.
2026-11-23 13:59:31 -08:00
Anees Iqbal 2a8cfdec04 Docs: CONFORMANCE-COVERAGE.md regenerated for the reconvergence ledger rows and declarations
The doc derives from the ledger and from each module's declarations as
well as from the recordings. It went stale at dbcc0a89df (the
reconvergence module stopped declaring notices: modules declaring a
notice 43 -> 42) and at 853a406696 (18 ledger rows, 7969 -> 7987).
884a70ab0d's body says coverage.py --check still passed there. That is
wrong: the check failed there, for these two causes. It passes at this
commit.
2026-11-23 13:59:31 -08:00
Anees Iqbal 5216a5cde1 Conformance: Metal's answers for the reconvergence cases, recorded on the M3; coverage regenerated
reconvergence-constructs and reconvergence-handle-choices were recorded
on the reference M3 Max (macOS 27.0.1, 26A434) by `conformance record`
at a1ffe24d32 (job m3-max-72140, after the build m3-max-72139). Each
case ran 3 times with 1 distinct outcome, and the validated leg ran.

A script over the recordings checked Metal's nearest samples against
the module's hash model, and rc_pick's fine pair too: every draw
matches. That is 4096 pixels for each full-screen draw and 896 for
rc_pick over the small triangles. The module's test makes the same
check in Rust.

docs/CONFORMANCE-COVERAGE.md was regenerated by
scripts/conformance-coverage/coverage.py.
2026-11-23 13:59:31 -08:00
Anees Iqbal 932ef756df Lowering: a quad-only kernel takes its quads from the subgroup at the size the device gives below 32
The 32 lanes of a Metal simdgroup are needed only by operations that read outside a quad. A kernel
whose every cross-lane operation is a quad operation (lower::simd::quad_only: some group operation,
each of quad scope, and no simdgroup-scope operation, AGX or matrix multiply-add, or subgroup-scope
barrier or fence) now takes the Direct tier with full subgroups and no required size where the
kernel stage runs full subgroups of its operations and its narrowest subgroup is below 32 lanes
(device::subgroup::quad_free, read from the stage's size range alone). Its requirement
(quad_requirement) sets ALLOW_VARYING_SUBGROUP_SIZE where the stage can take a size, and a local
size that is a multiple of the stage's largest size (VUID-VkPipelineShaderStageCreateInfo-flags-02758);
a threadgroup that is not runs the emulated-simdgroups variant, as a pinned kernel's does. Such a
kernel pins nothing, so the widest-pin rule does not weigh it. The pin to 32 stays where 32 is the
device's narrowest size.

Why it is exact: a quad is four subgroup lanes from a multiple of 4, all in one subgroup (Vulkan
9.27.9), and a compute dispatch runs one subgroup size (9.5.2); the kernel's simdgroup builtins
derive from the linear index (SubgroupId * SubgroupSize + SubgroupLocalInvocationId, reading the
SubgroupSize builtin where no size is pinned), and its quad operations from SubgroupLocalInvocationId
& 3 and & ~3, so every size of 4 lanes or more gives Metal's quads.

The guard min >= 4: a quad must be four lanes of one subgroup. A stage whose narrowest subgroup is
1 or 2 lanes could split a quad across subgroups, so such a stage keeps the tier its class takes.

A kernel with compute derivatives keeps the tier its class takes: their quads need its
two-dimensional local size, which the flattened tiers refuse (ComputeDerivativesWithSimd). Without
this exclusion lavapipe's quad kernels with derivatives, which run emulated today, would be refused.

Where it applies among the committed profiles: the four Intel ANV profiles (8 to 32: multiple 32,
varying), lavapipe and gate-lavapipe-x86_64 (8: multiple 8) and gate-lavapipe (4: multiple 4). Not
on NVIDIA (32), RDNA (32 to 64), moltenvk-m3 (its kernel stage takes no size, so it runs the API's
32 alone) or runtime-floor (no quad class).

Measured on the Iris Xe (RPL-P, ANV), job m3-max-71702, the lane-only form of this change (E: the
base at eda92e1207, Q: this form, E2: the base again; cold plays of the consumer's recording to
frame 345): the regression row's kernel took Q in all 21 of its constant sets (15832 dispatches,
100%); per dispatch E 1.6018 ms, Q 0.7314 ms, E2 1.6006 ms (Q/E 45.7%); values E/Q and E/E2 0
differing of 261 buffers; translation 18 s and 0.92 GiB peak against 17 s and 0.92 GiB. The
driver's executable statistics (job m3-max-71726): Q compiles at SIMD8 (SIMD16 for one state),
15 to 50% fewer instructions than the emulated form, against about 2800 spills a state when pinned
to 32.

SEMANTICS_VERSION 2297 (modules change on the profiles above); ARTIFACT_FORMAT_VERSION 595
(SubgroupRequirement gains `varying`).

Tests: device::tests::subgroup (the predicate over size ranges, the guard, and the committed
profiles it takes), engine_simd (a quad-only kernel's requirement on every committed profile, and
the flattened kernels' constraint), engine_quad_ops (the quad fixture's kernels in the Direct tier at
8 on lavapipe and at 8, 16 and 32 on an Intel profile; the emulated variant on lavapipe),
engine_dispatch (derivatives beside a quad keep lavapipe's emulated tier), and the runtime's
every_device_runs_a_quad_only_kernel_at_the_size_it_gives under a device cfg.
2026-11-23 12:02:56 -08:00
Anees Iqbal c54fa438a2 Player: a dump holds each texture a listed command buffer's compute encoders bind
--dump-command-buffers wrote every buffer a listed command buffer's
encoders named and every colour attachment its render passes stored, so
a texture a compute pass wrote showed only through a later pass that
sampled it. A play that parts between two drivers in a render pass that
samples a compute pass's textures could not say which of the two passes
parted first.

dumps::Stores now keeps the compute encoders made and not yet ended,
and each texture such an encoder binds (setTexture:atIndex: and
setTextures:withRange:, a nil one left out) is a part to dump: its first
level and slice, read once the command buffer completed, as an
attachment's parts are, into cbC-objT.bin with the cover "-". A texture
both stored and bound holds each part once, in Part order. An argument
encoder's setTexture:atIndex: is none: its receiver is no compute
encoder. docs/REPLAY-STREAM.md and the module docs say what a dump holds.

Test: a_listed_command_buffer_dumps_the_textures_its_compute_encoders_bind
(one bound texture, a range with a nil, a texture bound twice, a render
encoder's fragment texture and an unlisted command buffer's compute
texture left out).
Verified: clippy -D warnings over the workspace with all features, and
the validation suite, the new test among them (job in the land line).
2026-11-23 11:55:36 -08:00
Anees Iqbal 06c8ebccd6 Player: a tessellation factor scale of 1 plays as nothing, any other is a skipped render command
The player refused setTessellationFactorScale: ("not played on a render
encoder"), so a recording that sets the scale stopped at its first
setter. The runtime's render encoder has no scale setter: Metal reads
the scale only in a patch draw through a post-tessellation pipeline
state that enables it (tessellationFactorScaleEnabled), and the runtime
refuses every such state at its making (RenderPipelineKind::Tessellation),
which the play counts as a skipped render pipeline state.

render::factor_scale reads the setter's scale: Metal's default of 1
plays as nothing, and any other scale is a skipped render command of
kind TessellationFactorScale, counted in the report's headline with its
first frame and call. This is faithful only while the runtime refuses
every scale-enabled state; once it builds the scale, its encoder takes
the setter and the player passes the scale on. The code comment and
docs/REPLAY-STREAM.md say so.

The recording that met it (m3-max-71779, read in place, no card): 185
scale setters, every one at 1, the first in frame 409; 0 of its 1668
render pipeline records enable the scale, so no state there is refused
for it.

Test: a_tessellation_factor_scale_other_than_1_is_a_skipped_render_command
(1 as a float and a double, 2 and 0.5, and a scale that is no float).
Verified on msi: clippy -D warnings over the workspace with all features,
and the validation suite, the new test among them.
2026-11-23 11:18:21 -08:00
Anees Iqbal 1f81d53c30 Player: a compute pipeline record's stage input plays as the kernel's
The player refused every compute pipeline record whose stageInput was not
nil ("a stage input"), so a recording that makes a kernel with a
[[stage_in]] parameter stopped at that state's frame. The runtime takes
the stage input (ComputePipelineDescriptor::stage_input); only the player
lacked it.

translator::stage_input reads the record's stageInput, {layouts,
attributes, indexType, indexBufferIndex}, into the translator's
StageInputDescriptor the way vertex_descriptor reads a vertex descriptor:
layouts and attributes at their indices, a stride of 2^64 - 1 as
MTLBufferLayoutStrideDynamic, Metal's raw step functions, attribute
formats and index type through their enums, and Metal's unset layout for
a buffer an attribute reads that no layout names. Nil stays no stage
input. A raw value the enums lack, or a key the form does not hold, is
the player's refusal. A descriptor the runtime refuses is the runtime's
typed error: a gap or a translation refusal counts as a skipped compute
state in the play's report, any other error ends the play with it.
docs/REPLAY-STREAM.md states the form.

Test: a_compute_pipeline_record_s_stage_input_is_read (the record form,
a dynamic stride, a buffer no layout names, nil, and an unknown key).
Verified on msi: clippy -D warnings over the workspace with all features,
and the validation suite, the new test among them.
2026-11-23 11:03:24 -08:00
Anees Iqbal acda405b30 Player: a dump holds each colour attachment its command buffer's render passes stored
A play asked to dump command buffers (--dump-command-buffers) wrote only
the buffers their encoders named, so a draw's output reached no dump. It
now writes, once a listed command buffer completed, each colour
attachment its render passes stored, as cbC-objT.bin beside the buffers'
dumps, with a cover of "-", so compare-dumps reads them unchanged: a
texture an attachment names under MTLStoreActionStore or
StoreAndMultisampleResolve, a resolve texture under MultisampleResolve or
that one, and an Unknown store action as the encoder's
setColorStoreAction:atIndex: decides it. The dump holds the parts the
passes stored (level, slice and depth plane, or the resolve's), one after
another, each laid out as a check reads a texture's first level and
slice; a part the backend cannot read (a multisample texture stored
without its resolve) is an .unread file.

Colour only: a texture of a combined depth and stencil format reads back
one aspect at a time, through a copy with that aspect's blit option,
which this read does not make. The stream doc and the command's help say
so.

The backend gains Backend::read_texture_part; the runtime's backend reads
a part as its check reads level 0 (the CPU's read, or a blit's copy of a
Private texture), the check's read unchanged.

Verified: by the jobs named in the landing report.
2026-11-23 10:20:31 -08:00
Anees Iqbal 60a6b2746e Docs: the memory-class line measures by two whole plays on the RX 7900 XTX
29b659121e measured the memory-class line by the RTX 3090's frames 366
and 367 (about 378 s), from two arms that exited 124 at their caps on a
card whose driver then wedged (d876f56b82 added that). The planner
asked for a clean pair instead: whole plays, exit 0, on one card. On
the RX 7900 XTX the integrated-made recording took 257.2 s of compute
(m3-max-71531, all 430 frames) and the discrete-made recording of the
same benchmark 10.7 s (m3-max-71625, all 345 frames). The wedge
sentence goes too: it is a lab artifact of those killed plays, kept as
a row in the bug list, not a property of recordings.

Verified: the docs check follows as a job.
2026-11-23 10:15:23 -08:00
Anees Iqbal d876f56b82 Docs: the two killed plays on the RTX 3090 were followed by its driver's GSP timeout
After lane kernmap's two plays of the Intel-made compute recording on
um870's RTX 3090 were stopped at their time limits inside frame 368
(m3-max-71535, 09:28-09:41, and 71553, 09:42-09:57), the card's
telemetry froze from the first sample after the second (09:57:33) and
the driver logged Xid 119 (a GSP RPC timeout, fn 76) at 10:08:36, naming
no process; the node was rebooted. The consumer read its journal and
job log: no guest run touched the card from 08:34:40 until then, and
the driver's out-of-memory group at 09:57 is routine at card open (13
times that day). The planner ruled it a lab artifact of those plays, no
row, written beside the memory-class line.

Verified: the docs check follows as a job.
2026-11-23 10:14:45 -08:00
Anees Iqbal 29b659121e Docs: a recording is a timing source only on a card of its own memory class
Lane kernmap played the consumer's GPU compute benchmark recording, made
on an Intel integrated card, on the RTX 3090 (pin R; m3-max-71535 and
71553, P0, both capped inside frame 368, 0 refused). Frames 366 and 367
alone took about 378 s of GPU-busy time, against 257.2 s for the whole
play on the RX 7900 XTX and 74.3 s on the integrated 780M. The
consumer's own guest on the 3090 runs the same benchmark's workloads in
37.1 s of GPU time in all (native 33.4 s), and its recording of the
same run on the discrete AMD card is 1.3 GB, against this one's 25.3
GB: the Shared storage an integrated guest builds on. The planner ruled
the 3090's frames play-only, and that a recording times only on its own
memory class. The replay doc now says so beside the timing verdict
rule.

Verified: the docs check (workspace Rustdoc, -D warnings) follows as a
job.
2026-11-23 10:03:25 -08:00
Anees Iqbal 9a11fbd543 Docs: the replay player makes and executes no indirect command buffer
docs/REPLAY-STREAM.md said that only an indirect command buffer, "which
the runtime does not build", would read a pipeline state's resource ID.
The runtime builds indirect command buffers; the player is what does
not: making one is "not played on a device" and executing one "not
played on a render encoder" (new_runtime/mod.rs, render.rs), typed
refusals that end the play. The doc now says so beside the refusal rule,
and names what would read a pipeline state's ID: an argument buffer's
pipeline-state member, which the runtime refuses at the making of a
state whose function reads it (rt README, known gaps). The player's
comment on that ID drops the same stale reason.

Verified: the docs check (workspace Rustdoc, -D warnings) follows as a
job.
2026-11-23 09:41:53 -08:00
Anees Iqbal e8a3feef6b docs: CONFORMANCE-COVERAGE.md without the level-sizes-storage gap row
The ledger row went with the storage levels' form; the generated coverage document counted it.

Checked by: scripts/conformance-coverage/coverage.py --check (the conformance suite's
the_conformance_coverage_document_is_what_the_sources_derive failed on it in m3-max-70944).
2026-11-23 09:04:38 -08:00
Anees Iqbal ed4b0ecd76 rt: storage textures written or read at a run-time level, through runs of set 1's level elements
What: under the identity domains a storage slot written, read or size-queried at a level other
than the constant 0 indexes a run of set 1's storage-image array instead of being refused as
Unsupported{IdentityDomains} ("an encoder value the function reads as TextureLevels(S)"). The
translator pushes the bound texture's level count (PushField::TextureLevels) and the run's first
element (the new PushField::TextureLevelBase, beside it), states no StorageTextureLevels or
StorageTextureLevelViews fact, and an access at level l takes element
first + min(l, max(n, 1) - 1) of the array, NonUniform, inside l < n. A texture of one level
pushes its own index, nil 0 with count 0.

The runtime's binding 1 grows by 65,536 level elements past its 65,536 textures, 4,096 runs of 16
(floor::LEVEL_ELEMENTS, floor::LEVEL_RUN). The first dispatch or draw that binds a texture of more
than one level to such a slot (the encoder's checks, compute and render stages alike) gives it a
run: a single-level storage view of each level, of its storage element's type (a cube's level as
the 2D array of its faces, a view's from its own first level), written at the run's elements. A
later bind takes the texture's lock and pushes the same two words: no Vulkan call. The run goes
back through the pool and reaper once the texture is released and its work retired: elements null,
views destroyed (Gauges::level_elements). Every run held, or a texture of more than 16 levels, is
the new Limit::LevelElements { max: 4096 }, and the dispatch or draw does not run. The floor's
storage-image limits and both totals rise by 65,536: storage 196,608, per-stage resources 327,688,
pools 351,680; every lab device's profile is far above (llvmpipe 1,015,808 storage, the least).

SEMANTICS_VERSION and ARTIFACT_FORMAT_VERSION bump in the branch's last commit (a new PushField).

Why: 17 guest kernels in 6 libraries were refused at state creation by this form.

Docs: REFUSALS.md and the signatures table regenerated, RESOURCE-ID.md (binding 1 past 65,536),
API.md (storage levels under identity), the runtime README (Set 1, the floor table, the known-gap
line replaced by the Limit), the runtime-floor profile's limits, and the conformance ledger's
level-sizes-storage row removed.

Checked by: engine_texture_levels' identity test and the runtime's storage_levels device tests
(red at 6ad1c33124: jobs m3-max-70886 and m3-max-70892 on lavapipe), engine_identity's
a_storage_slot_written_at_a_run_time_level_is_an_element_of_its_run; the lane's jobs report the
runs per card.
2026-11-23 09:04:38 -08:00
Anees Iqbal 17473a1a42 Player: a render encoder's residency declarations play through the runtime
The render encoder's arm played its eight residency forms (useResource:usage:,
useResources:count:usage:, useHeap:, useHeaps:count:, each with stages: or without) as nothing,
"as the runtime's render encoder has none". The runtime's RenderCommandEncoder has use_resource
and use_heap now, so they play through it as a compute encoder's do: each resource of the call,
or of its list, through use_resource with the call's usage; each heap, or each of its list,
through use_heap. The stream records each C array and its count as one list, so the usage is
argument 1, and the stages come last; the runtime's render encoder takes no stages, so they are
not read.

What each read before, and now:
- Render encoder, all eight forms: before, no argument and no runtime call; a skipped object they
  named was not counted. Now: the resource ({Buffer: object} or {Texture: object}) or heap of
  argument 0, each of a list; the usage at argument 1; a skipped object is a skipped call, each
  of a list as its own, as docs/REPLAY-STREAM.md says of skipped_calls.
- Compute encoder, the four forms: unchanged in what they read; one resolver (NewRuntime::uses)
  now serves both encoders, and heap_of, which only the compute arm called, is gone.
- The usage: before, 1, 2 or 3, any other value refused. Now MTLResourceUsage's option set of
  read (1), write (2) and sample (4), any other bit or none refused. Without the sample bit, a
  render encoder's useResource:usage: of read | sample, which played as nothing before, would
  now be refused.
- objects_named, which the unwritten count reads a render or blit encoder's call by, and which
  notes the objects a command buffer's encoders name (resource indices owed, placed buffers' and
  no-copy Managed buffers' users, tiled textures' takes): before, bare objects and lists only, so
  a residency declaration's {Buffer: object} or {Texture: object} named nothing. Now it names the
  resource too, on compute and render encoders alike.

docs/REPLAY-STREAM.md: render and compute encoders play their residency declarations through
the runtime's encoder, the stages forms as those without; the unwritten count's reaching calls
include a residency declaration's resource.

Tests: the commit before this one (red: the skipped-object device test and the unwritten test).
2026-11-23 09:02:13 -08:00
Anees Iqbal 3e9cd15b0a Player: a release of an object its device's release dropped plays as nothing
Metal's objects keep their device, so a program may release its device before what it made: a
guest recording's last two calls release the device and then the host's display library made on
it. The player drops everything a device made at the device's release, and the library's release
that followed found no object and stopped the play as an invalid stream, after every frame had
played. The player now keeps the ids a device's release dropped, and the stream's own later
release of one removes it from that set and plays as nothing; the backend released it once,
with the device. Ids are never reused (docs/REPLAY-STREAM.md, section 4), so the set holds only
objects whose release may still come. A second release of such an object, or the release of an
object no call made, still stops the play.

Verified: an_object_released_after_its_device_plays_as_released_with_it and the replay tests in
the job named in the lane's report; no local build.
2026-11-23 08:59:40 -08:00
Anees Iqbal 15af4d5de0 Player: --dump-command-buffers takes a list of ranges and single ids
A play that should dump only the command buffers holding a changed kernel's dispatches had to
dump every command buffer between the first and the last of them: on a recording whose workloads
interleave, tens of gigabytes the compare then reads for nothing. The option now takes LIST:
FIRST..LAST ranges (both ends held) and single ids, joined by commas, in any order
(CommandBufferList, in dumps.rs beside the dumps it selects). Ranges that overlap or touch are
merged and a lookup is one ordered-map search, so a list of thousands of command buffers costs
the play nothing per call. A single FIRST..LAST range reads as before; anything else stops the
play before it starts, as a bad range did.

Before: the dump test helper passed 20..=29 as a RangeInclusive, the only form there was.
Verified: the red tests from the previous commit (a_dump_list_holds_its_ranges_and_ids_and_
nothing_between, a_play_dumps_the_listed_command_buffers_alone) run in the job named in the
lane's report; no local build.
2026-11-23 08:48:02 -08:00
Anees Iqbal 340cbf5591 Docs: HalfTexelConversion's recorded bound names the driver that keeps a 32-bit texel past 65504 at 65504
What: the half-texel-conversion note's recorded bound (PrecisionNote::HalfTexelConversion's doc and
docs/API.md's catalogue entry) now states both answers past +-65504 for a 32-bit float texel read into
`half`. Metal saturates a sample and takes a read to the infinity. The device's rounding takes both to the
infinity. AMD's open Linux driver (AMDVLK 2025.Q2.1, Radeon 780M) keeps both at +-65504, against the 16-bit
float controls the entry declares. Documentation only: no module, refusal or note changes.

Why: under AMDVLK, half-texel-nans-r32f/rg32f/rgba32f's read() sites answered 0x7bff for the largest finite
float texel where Metal answers 0x7c00 (42, 85 and 171 elements a site). The note's text named only the
mirror case (RADV's infinity where Metal saturates a sample), so the static note did not cover what that
driver answers.

How verified (gem10's Radeon 780M; probe branch steelbrain/amdvlkconf-probe, never lands):
- m3-max-71424, built on 7024d568df: every differing element of the four half-texel-nans cases under RADV
  and AMDVLK, read one by one.
  - Under AMDVLK every element is a NaN-encoding difference except the largest-float texel's: read 0x7bff
    against Metal 0x7c00, and the nearest sample 0x7bff equal to Metal's.
  - Under RADV every element is a NaN-encoding difference except that texel's nearest sample: 0x7c00
    against Metal 0x7bff, the case the note already named.
  - The kernels are byte-identical under both drivers. Both declare RoundingModeRTE, DenormPreserve and
    SignedZeroInfNanPreserve for 16 bits, and OpImageFetch -> OpFConvert half carries NoContraction.
- m3-max-71434: a standalone 4x4 repro (our own SPIR-V and C).
  - Under AMDVLK, OpFConvert to half of 65536, 70000 and FLT_MAX gives 0x7c00 from a storage buffer and
    from an R32_SFLOAT texel buffer, but 0x7bff from an R32_SFLOAT 2D image fetch.
  - RADV gives 0x7c00 in every form, and 65519 gives 0x7bff in every form.
  - The Vulkan spec makes OpFConvert correctly rounded, by IEEE 754 roundTiesToEven under RoundingModeRTE,
    so the driver's 2D-image form is its own deviation. A draft report is staged for the owner.
- The old runtime's modules cannot change: this commit touches doc text only.
2026-11-23 08:36:11 -08:00
Anees Iqbal 82d1c62eb5 Player: the plural residency declarations play and count as their single forms
A compute encoder's useResources:count:usage: and useHeaps:count: were refused ("not played on a
compute encoder"), so a play stopped at the first one; a guest recording on the Iris Xe stopped
at frame 290 of 430 there. They play now as Metal defines them: each resource of the list as
useResource:usage: with the call's usage, through the runtime's use_resource, and each heap of
the list as useHeap:, through use_heap. The stream records each C array and its count as one
list (docs/REPLAY-STREAM.md), so the usage is argument 1.

What each read before:
- The compute encoder read useResource:usage: alone (its resource as {Buffer: object} or
  {Texture: object}, the usage at argument 1) and refused both plurals.
- The covers rule and the unwritten count read useResource:usage:'s resource with as_object,
  which takes only a bare object, so a recorded {Buffer: object} wrote and uncovered nothing in
  them; both plurals fell through as calls that only name objects. They read the resource now as
  the stream records it (Value::as_resource), and each resource or heap of a plural as its single
  form.
- The render encoder reads none of its residency declarations' arguments (it plays them all as
  nothing), so it read no usage wrongly.

The player's resolvers gain held (a resource value) and block_of (a heap id), which resource and
heap_of now call. docs/REPLAY-STREAM.md says compute encoders play the four forms through the
runtime and that the unwritten count, the skipped calls and the covers rule read the plurals as
their single forms.

Tests (the two commits before this): the device test of a compute encoder's four forms, the
unwritten test of the plural and of the singular on the format, and the covers test of the
plurals. Not run here: no local builds; to be checked on development.
2026-11-23 08:21:07 -08:00
Anees Iqbal 30d426774d Translator: a kernel's floor tail folds into its pushed fields again (revert of the split)
The split (3a4fe0d314, with its tests c2d505c30c) made a kernel return at entry where its floor
tail holds what the consumer never pushes, in place of the select per pushed field. At pin S
(3bc285acaa) a guest's run of a GPU compute benchmark on the Iris Xe (8086:a7a0, ANV, Mesa
26.2.6) failed the benchmark's own output validation in its first workload, where the same run at
38c5f2e96a passed and every other vendor's run at S passed (3090, RX 7900 XTX, Radeon 780M
RADV). R..S holds the split alone. Until the cause is named, every stage folds the tail as at
38c5f2e96a, which passed on that card.

This commit undoes both commits' changes to lower/emit.rs, lower/push.rs, the arena and identity
tests and docs/API.md section 5; SEMANTICS_VERSION 2293 -> 2294, as every kernel under a floor
tail lowers as at 38c5f2e96a again. The split returns as its own change with its Iris value proof.
2026-11-23 08:03:41 -08:00
Anees Iqbal 3a4fe0d314 Translator: a kernel's floor tail returns at entry again; a render stage's folds into its other pushed fields
Since 059835018a every stage folded its tail's test into each other pushed field through a
select. A kernel's entry also returns invocations before its body where its dispatch passes its
grid (dispatch::emit_entry), so a return at entry is a kernel's own shape, and the selects cost
kernels on three vendors. A fragment stage has no other return at its entry; AMD's open driver
(AMDVLK 2025.Q2.1) died making one whose body ran under the never-taken return, which is what the
fold removed.

Now the stage kind decides it, the same on every device:
- Stage::Kernel loads its push fields in placement order, then returns where the tail holds what
  the consumer never pushes (EmitCx::emit_tail_guard, lower::push::return_never_pushed), as
  before 059835018a. The tail's read is in the first block, and everything the kernel does after
  the return depends on it.
- A render pipeline's stage (vertex, fragment, object, mesh) keeps the fold as shipped
  (EmitCx::fold_tail, lower::push::fold_never_pushed): no branch on the tail.
- EmitCx::tail_test reads the tail and makes its test for both; load_fields loads the fields a
  filter takes, in placement order.
- Docs: lower/push.rs, lower/emit.rs, the arena test's module doc, docs/API.md section 5.

Same pushed bytes, same placement, no interface change.
2026-11-23 06:26:25 -08:00
Anees Iqbal e59c621e48 rt: an observing kernel's whole grids, threadgroup dispatches and indirect dispatches run its plain module again; its partial-threadgroups variant runs ragged grids only
This restores 28e1026b3d's routing, in a new commit past four that changed it:
- 6453edbea7 ran an observer's whole grids on its partial-threadgroups variant;
- f090d99c9a added its indirect dispatches;
- 9a01f1e8ee kept the plain module only where the variant's vote word passed the limit;
- a103b4dc5a lowered the variant alone unless keeps_plain held.

The variant's predicated walk and partial-group answers cost each whole grid. The series was
measured at 3.5% slower a dispatch on an RX 7900 XTX when it landed (README known gap,
m3-max-67284), and the guest's GPU fall on the 3090 lies in 28e1026b3d..f979769faf, which holds
the series.

- encoder.rs decide(): the observer route goes. A dispatch runs choose()'s module: whole grids,
  threadgroup dispatches and indirect dispatches the plain module, a ragged grid the variant, and
  a threadgroup that is not whole SIMD groups the emulated variant. decide() takes the device's
  threadgroup memory bytes alone, for the vote word's refusal site. The ragged grid's
  threadgroup memory check is unchanged: a ragged grid whose lengths with the variant's vote word
  pass the limit is still Limit::ThreadgroupMemory (9a01f1e8ee's refusal, kept).
- pipeline.rs: an observing kernel's state lowers its plain module and its variant beside it,
  always (Partial::Alone and keeps_plain go). Its main pipelines at the declared size are two,
  as before the series: the plain module's (main_key, now the whole module's by decide) and the
  variant's ragged grid (ragged_key). finish_pipeline makes both, a kernel past the stage bound
  makes both at the creation, and a first use of either is an unfinished-pipeline wait. No
  variant is made lazily at a first ragged grid.
- Metrics::partial_variant_whole_grids stays, and reads 0. The conformance runner's
  dispatch-forms line prints only where it is above 0.
- Docs: the rt README's compute pipeline states (the routing, and the main pipelines), with the
  known-gap bullet the series added (3.5% XTX, 2.7% Iris) gone; docs/API.md section on the
  variant's regions; the Metrics docs; decide(), choose(), dispatch_threads and pipeline.rs's
  module docs.

No translation changes: the translator's modules and keys are the same, so there is no SEMANTICS
or ARTIFACT bump and no bless. Only rt files change.

Tests (red at 8a2f9109aa, green here):
- every_device_runs_an_observing_kernel_at_its_own_threadgroup_size: its whole grids,
  threadgroup and indirect dispatches add 0 to partial_variant_whole_grids, its ragged grids
  count in partial_variant_ragged_grids, and the creation lowers two modules.
- every_device_keys_a_dispatch_by_the_pipeline_it_runs: the whole, threadgroup and indirect
  entries share the plain module's key; the ragged ones take the variant's.
- every_device_finds_made_what_prepare_dispatch_made: a ragged grid and u32::MAX threads each make
  the variant's pipeline.
- every_device_keeps_a_kernel_that_reads_across_rows_after_a_barrier_at_its_own_size and
  every_device_makes_a_declared_bound_s_grids_with_the_state: a declared size makes two pipelines
  with the state, and its whole and ragged grids make nothing and wait for nothing.
- kernel_map's shared-content test: the observing content lowers twice.
The ragged-grid tests stay as they were:
- every_device_runs_a_stage_in_kernels_partial_threadgroup;
- every_device_runs_a_1024_thread_observers_ragged_grid_in_the_limit_less_its_vote_word;
- every_device_runs_a_kernel_without_a_vote_word_at_a_length_past_its_answer;
- every_device_runs_an_observer_on_its_plain_module_where_the_vote_word_passes_the_limit.
2026-11-23 06:16:29 -08:00
Anees Iqbal c6feccf773 Translator: a kernel that reads a stage-input region takes its partial-threadgroups variant
plan_partial_groups refused a kernel's partial-threadgroups variant wherever it had a stage-input
descriptor, so rt refused every dispatchThreads grid that is not whole threadgroups of a kernel
with a [[stage_in]] attribute (Gap::PartialThreadgroups at the translator's site). The probe over
the 11,580 indexed kernels (m3-max-70807) counted 62 such kernels on amd-780m-radv,
nvidia-rtx50-linux and intel-irisxe-anv alike; a consumer's first-time setup meets one of them.

The refusal goes and nothing is added to any module: the fetch already stays inside the grid.
An invocation past its threadgroup's threads returns in dispatch::emit_entry, which the entry
runs before stage_io::emit_entry's fetch. Where the body holds a workgroup barrier the variant
walks it predicated instead, so such an invocation does fetch, but its position in the
threadgroup is lin unflattened over the threads left (local_pos), so along x and y, the only axes
a step reads, it is inside the grid, and its element is one a Metal thread there fetches too; it
runs none of the body. A kernel that does not observe its partition now takes the grid-tiles
variant, whose invocations past the grid return before the fetch as well.

SEMANTICS 2290: the variant of a stage-in kernel was a refusal and is now a module, under the
same key. No plain module changes.

The two tests of 9089b4eea2 turn green: the translator's interpreter run over a source buffer
ending at the last thread's element and a region that clamps nothing traps on any fetch past the
grid, and rt runs both kernels' partial threadgroup of 25 in 1,024.
2026-11-23 04:48:01 -08:00
Anees Iqbal a4cb24f20e Conformance: read-write-srgb-unorm-views' Metal timing, and llvmpipe's two rows
The case's recording now carries native Metal's timing on the M3 Max, macOS 27.0.1 (job
m3-max-70889, conformance times --write; 23 calls), which every case keeps
(times::every_case_is_timed::every_case_carries_its_timing).

The lavapipe replay (job m3-max-70875, llvmpipe LLVM 23.1.1) matches Metal at every site but the
view's read-back on both backings: 438 of the 1024 words one f32 ulp apart (0x33 reads
0x3e4cccce, Metal 0x3e4ccccd). That is the device's own conversion of an 8-bit code
(device-texel-conversion), the same one read-write-tier-held's llvmpipe rows hold, so the ledger
holds the two sites for llvmpipe with that row's words. The swizzle's bytes, by getBytes: and in
the buffer, match Metal exactly there.
2026-11-23 04:33:03 -08:00
Anees Iqbal 684ce1ab7b Conformance: Metal's recording of read-write-srgb-unorm-views
Recorded on the M3 Max, macOS 27.0.1 (build 26A434), job m3-max-70866 on 29dbc6290a: three runs
folded into one outcome, and the API validation layer's run ran. Metal writes the RGBA8Unorm_sRGB
texture through its RGBA8Unorm view on both backings: the swizzle's bytes are the fill's codes in
yxwz order exactly, by getBytes: of the texture and, over the buffer, in the buffer's own bytes
(rows at the texels' pitch of 64 bytes), and the view's read gives each code over 255. Plain and
over a buffer answer alike.

docs/CONFORMANCE-COVERAGE.md regenerated (one more recording and metal_run case; an SDK item
moves from loosened to not loosened).
2026-11-23 04:27:58 -08:00
Anees Iqbal 312f2866a9 rt: a shader-write texture whose own format does not store takes the storage usage for its views of a format that does
A texture made for shader writes in a format the device does not store (the 8-bit sRGB formats on
every committed Vulkan profile), written through a view of a listed format the device does store
(its unorm sibling), was Gap::StorageElement, case Absent: the image never had the storage usage,
so the view had no storage element. Metal writes it.

The texture's image now takes the storage usage for those views, with
VK_IMAGE_CREATE_EXTENDED_USAGE_BIT (Vulkan 1.1: a usage "supported for at least one of the formats
a VkImageView created from the image can have"), where the device's image format query makes that
image. The decision is the image's, at its creation, from the existing queries alone:

- plan() plans the texture extended where its usage has shader write, it is not multisampled, its
  own format does not store and a format it lists for its views does (view_formats now says so);
  it keeps the extended plan only where the query made it with exactly the plain plan's usage plus
  the storage usage and the same resolves, attachment reads and cube flag (Plan::keeps), else it
  makes the plain plan, as before;
- in place over a buffer (check_over), the linear image is extended where the linear query makes
  it and each listed format's linear tiling holds what storage keeps of its optimal tiling; where
  the plain linear image holds but the extended one does not, the texture stays in place, plain,
  and no copy is made for it. The counted copy form, where a texture over a buffer already took
  it, takes the plan the optimal query took;
- an extended image is at home in the general layout (a storage view's), and its own format's
  views take the usage that format holds (VkImageViewUsageCreateInfo,
  VUID-VkImageViewCreateInfo-usage-02275), so the texture's own sRGB views carry no storage usage;
- a surface plane's image keeps the surface's own rule and is never extended.

What the storage usage costs these images, where the query can say: nothing. Plan::keeps takes the
extended image only where the query keeps every other usage, flag and sample count, so no usage is
ever dropped for it; the test prints each device's image usage. What the query cannot say
(compression or a slower layout for the general home on a given driver) is unaudited.

Where the device does not make the texture extended (optimal query plainly, or in place where the
linear query refuses the extended image and the plain one holds), the texture is made as before and
the dispatch is still Gap::StorageElement, now with the new case StorageElementCase::Unextended in
place of Absent: the view's format is one the device stores and the image lists it, so the gap is
the image's missing extension, not the format's storage. A consumer log then tells "the device
made no extended image" from "the format has no storage on this device". Absent stays for the
texture's own views and for views of formats the device does not store; a surface plane's view is
never Unextended (its image is made by the surface's rule).

The test every_device_writes_an_srgb_texture_through_its_unorm_view now names
StorageElementCase::Unextended in its refused arm. docs/REFUSALS.md (the sites' function renamed
plan -> planned) and the API signatures table (the new variant) regenerated; the runtime README's
view-format and storage-element entries describe the rule.
2026-11-23 04:27:21 -08:00
Anees Iqbal f3bb94275b rt: a bind of a texture reached through its views alone to a texture slot is TextureWithoutIndex
A texture made with no index although its usage reaches shaders (Device::new_texture_for_views,
Device::new_heap_texture_for_views, a surface's or a Direct3D 11 surface's plane made with no
index) is reached through its views, each with an index of its own. Bound directly to a
function's texture slot, a dispatch or draw pushed its resource id, index 0, set 1's null
descriptor, so every read answered zero with no refusal (the consumer saw a D3D11 luma plane read
0.0 for every texel this way). ComputeCommandEncoder::set_texture and RenderCommandEncoder's
set_vertex_texture and set_fragment_texture (the runtime's only texture-slot binds) now refuse it,
binding nothing: Refusal::TextureWithoutIndex { index }, the slot's index. The check reads the
texture's own stored facts at the bind (no index, and its descriptor's usage reaching shaders by
the creation rule); nothing is looked up and nothing runs per draw or dispatch.

A texture no shader reaches (a depth or stencil target whose usage asks neither shader reads nor
writes) also has no index, and still binds: Metal binds it, its usage asks no shader read, and a
read of it answers the null descriptor. The previous commit's test expected that case refused;
it now expects it bound, so a guest's bind of such a texture to a slot its function does not read
meets no refusal.

Texture::gpu_resource_id says what an index-free texture's id is (index 0) and that a shader
reading it from bytes (an argument buffer) reads the null descriptor; nothing refuses that, as
the call returns a ResourceId. ResourceId's encoding is unchanged. The runtime has no argument
encoder, no texture-slot range call and no indirect-command texture bind, so the binds are the
whole Result-returning surface; an attachment read of an index-free texture is already
Gap::Draw (FetchedAttachment).

REFUSALS.md and basis.rs regenerated; the runtime README's texture and compute-encoder entries
updated.
2026-11-23 02:54:00 -08:00
Anees Iqbal eb275a1e87 rt: Refusal::TextureWithoutIndex, and a test that binds a texture made without an index (red)
A texture made without an index (Device::new_texture_for_views, a surface or Direct3D 11 plane
with no index, a depth or stencil target no shader reaches) bound to a function's texture slot
pushes resource id 0, set 1's null descriptor, so every read answers zero with no refusal. This
commit adds the refusal the binds will return, its basis line, REFUSALS.md and the signature
table, and the device test bind_without_index, which binds such textures to compute, vertex and
fragment slots and expects the refusal with the slot's index. The binds do not refuse yet, so the
test is red here; the next commit makes them refuse.
2026-11-23 02:54:00 -08:00
Anees Iqbal 1080a17fc1 Docs: CONFORMANCE-COVERAGE.md counts MTLDevice.maxThreadgroupMemoryLength
Device::max_threadgroup_memory_length (5a03a60b6c) made maxThreadgroupMemoryLength an
implemented Metal item, and the generated coverage document was not regenerated with it:
implemented items 636 -> 637, reachable 635 -> 636, of the reachable not exercised 77 -> 78
(no conformance case compares the answer against Metal yet).

Verified: coverage.py --check reads "as derived" after the regeneration; it failed at
904700de35 in development's suites (m3-max-70632, conformance 1,028 of 1,029).
2026-11-23 02:41:37 -08:00
Anees Iqbal 5a03a60b6c rt: Device::max_threadgroup_memory_length, Metal's maxThreadgroupMemoryLength less the vote word
The answer is the device's maxComputeSharedMemorySize less the 4-byte vote word a kernel's
partial-threadgroups variant may take beside its threadgroup memory, rounded down to 16, and at
most Metal's 32 KiB: 32,752 on a device of 32,768 bytes (AMD's drivers on the 780M, lavapipe,
MoltenVK on the M3), where a Mac answers 32,768; 32,768 on RADV, NVIDIA and ANV. A guest that
sizes its threadgroup memory from it (a length it sets, or source it compiles at run time) runs
its ragged grids, where 32,768 is refused (Gap::PartialThreadgroups for static memory,
Limit::ThreadgroupMemory for a length). The word is one constant, pipeline::VOTE_BYTES, which the
module interface's vote word reads too.

It changes only the answer: every dispatch is still checked against the device's own limit. An
emulated SIMD group's scratch varies by kernel and is not counted; the runtime README records it
with the refusal a kernel past the answer keeps, and the unaudited cost to a guest that rounds the
answer down to a power of two.

Tests: the scan test reads the answer and checks its formula; a kernel whose variant takes no vote
word runs [25,1,1] and [1024,1,1] in [1024,1,1] with a length of 32 KiB, past the answer
(every_device_runs_a_kernel_without_a_vote_word_at_a_length_past_its_answer). METAL-COVERAGE and
the api_signatures table are regenerated. Not yet run.
2026-11-23 02:31:24 -08:00
Anees Iqbal f17e07ad07 rt: StorageElement names its case and backing; PartialThreadgroups and ThreadgroupMemory name their site and static bytes
A refusal's sentence stays as it was (the known-gaps ledger keys on it); the new facts are typed
fields.

- Gap::StorageElement gains `case` (StorageElementCase: Absent, WriteWithoutFormat,
  ReadWithoutFormat) and `backing` (TextureBacking: Texture, Buffer, SurfacePlane, D3d11,
  Drawable; a view answers its parent's). TextureObject::storage_gap computes both at the four
  sites, and use_resource keeps it for a declared write. SurfaceImage's `general` flag, which only
  a Direct3D 11 import set, is named `d3d11`, and a surface plane's image keeps it.
- Gap::PartialThreadgroups gains `site` (PartialThreadgroupsSite): VoteWord { static_length, max }
  where the translator refused the variant for its vote word, Translator for its other refusals,
  SimdGroups { width } where the threadgroup is not whole SIMD groups of the variant. The cache
  directory keeps why with the refusal (m2v-refused-vote beside m2v-refused), so a warm boot names
  the site too.
- Limit::ThreadgroupMemory gains `static_length`, the state's staticThreadgroupMemoryLength.
- The translator's vote-word refusal is built through Unsupported::needs_any_of, so the refusal
  table derives its basis.

docs/REFUSALS.md and the api_signatures table are regenerated. Tests: the scan test's shape (i)
at 32,768 reads Limit::ThreadgroupMemory with static_length 0 and the limit; shape (ii) reads
PartialThreadgroups at the VoteWord site with its 32,768 static bytes against the limit; the
vote-word test reads the static length; storage_element, texture_buffers and read_write_tier read
the case and backing. Not yet run.
2026-11-23 02:31:24 -08:00
Anees Iqbal ac5c562a08 Translator: a deep kernel's WorkgroupSize parts are plain specialization constants, written with every other key its threadgroup decides from one call
AMD's open driver AMDVLK (2025.Q2.1, its LLPC compiler) sizes a compute workgroup from the
WorkgroupSize composite's parts as declared, and reads an OpSpecConstantOp part as 1, while the
body sees the right value: every Spec-form kernel, whose deep-threadgroup form made each part an
OpSpecConstantOp Select over IMul products of LocalSize, ran one invocation per workgroup there.
The Vulkan spec allows such a part (VUID-WorkgroupSize-WorkgroupSize-04426: a specialization
constant or a constant), so this is the driver's bug; the form here is right on every device.

- Such a kernel's WorkgroupSize parts are the plain specialization constants
  SpecKey::WorkgroupSize(axis) (codec member appended).
- One public call, pipeline::threadgroup_constants(size), returns every key a kernel's
  threadgroup size decides: LocalSize on each axis, FlatLocalSize, DeepThreadgroup and the
  WorkgroupSize parts (the threadgroup, or one row of it deeper than DEEP_THREADGROUP). The
  runtime writes exactly those keys from it (Constant::Threadgroup, whose membership is the
  call's own key set), in place of four separate computations. docs/API.md section 3 names it.
- The builder refuses an OpSpecConstantOp WorkgroupSize part (ConstRule::WorkgroupSizeOp), so no
  form can declare one again; serialize test a_workgroup_size_part_is_never_a_spec_constant_op
  covers the old deep shape and two others, and the deep engine test asserts the parts are the
  new keys.
- rt test every_device_runs_every_thread_of_each_workgroup_deep_or_not: an owned kernel stores
  i + 1 at each linear thread index for a deep [1,1,96] threadgroup and two shallow ones.

Evidence so far: rt's probe with the composite's op parts folded to plain constants (job
m3-max-70461, the RX 7900 XTX; m3-max-70462, a Radeon 780M) cleared 66 of the 67 rt device
tests that failed on AMDVLK; the 67th, quad_control's helper test, fails the same with and
without, a fragment-stage defect of its own.
2026-11-23 01:45:17 -08:00
Anees Iqbal 4c438ca2c6 Translator: under the identity domains a command buffer's field is plain data
An argument buffer's command_buffer member holds, under the identity domains, its word: the
gpuResourceID the program or the host wrote there, the device address of the records
(lower::access::icb). The byte rule of memory::provenance::objects treated it as an opaque
object, so any access other than the exact handle load that might reach its 8 bytes was
Unsupported{ArgumentBufferObjects}: an index past the structure by a signed run-time index, whose
offsets run back to 0, and, once such a buffer's address escaped, every run-time dereference.

Metal lays a Tier 2 argument buffer out as the equivalent C structure (macOS 13 and later), into
whose member the host writes gpuResourceID ("Handle of the GPU resource suitable for storing in an
Argument Buffer", MTLIndirectCommandBuffer.h), and whose contents the GPU and the CPU may both
modify. A plain access of those bytes reads or writes that word, which is all Metal defines of
them. So under the identity domains a command buffer's field is not opaque for either rule
(ObjectLayouts::of takes `words`, from the profile's pointer domain); a pipeline state's field
stays opaque, and under the resident-table domains, the validation executor's, nothing changes.

Tests: the objects rule's unit test (a command buffer's field is opaque only without its word),
and engine_identity_icb's an_access_past_an_encoder_is_a_plain_access_of_its_command_buffers_word
over the owned fixture icb_encoder_tail: both entries compile and validate under the identity
domains on lavapipe and moltenvk-m3, and the resident tables still refuse them.
2026-11-23 01:17:56 -08:00
Anees Iqbal 80187ce5d1 Refusals: the three program-scope shapes Metal was measured to take declare metal-takes
ProgramScopeResource, ProgramScopeSharedSlot and ProgramScopeLinked are refusals Metal does not
make: an Apple M3 Max under macOS 27.0.1 runs each (potluck jobs m3-max-70268 and m3-max-70306).
Each declares it as its doc comment's last line, so the refusal surface counts them under
metal-takes (3 translator rows, from 0). ProgramScopeRead stays derived (ours): Apple's compiler is
not seen to write such a read. docs/REFUSALS.md regenerated; refusal_surface.py --check passes.
2026-11-23 00:51:11 -08:00
Anees Iqbal 058fd25a7b Translator: MSL 3.2 program-scope buffer bindings become buffer parameters; other shapes refused apart
What: `!air.global_bindings` decodes into `AirAbi::global_bindings` (`GlobalBinding`: the
global, and its node's role, type information and name, read by the parameter-node decoder;
the node's index is -1). Canonicalization (`canon::global_binding`, beside the global
built-ins) makes each plain load of a bound buffer's pointer (device or constant space, one
stated slot) a read of a parameter: the entry's own parameter of the binding's role and type
where it takes one, else one appended, shared by the bindings of one role and type. Lowering
then binds it where a `[[buffer(n)]]` parameter binds; the runtime binds nothing new.

Why: the whole module was refused as ProgramScopeBinding (78 functions in 1 library of the
private corpus on runtime-floor and gate-lavapipe: kernels, one constant struct buffer each,
read only by plain loads of its pointer). Metal fills a bound global from the executing stage's
own argument table. Measured on an Apple M3 Max under macOS 27.0.1:
- m3-max-70268: a kernel's globals read and write the buffers bound at their indices;
  reflection lists each as a binding at its index; a parameter and a global of one type at one
  index, and two globals of one type at one index, read the one buffer; a vertex and a fragment
  function reading one global each read their own stage's buffer at its index.
- m3-max-70306: Metal also takes a bound texture and sampler, bound threadgroup memory, a bound
  sampler array, and a linked visible function of another library that reads a bound buffer.

What stays refused, each a refusal of its own (docs/REFUSALS.md regenerated):
ProgramScopeResource (a texture, sampler or threadgroup memory, one or an array),
ProgramScopeSharedSlot (a binding at a slot an entry parameter or another binding binds with
another role or type), ProgramScopeLinked (bindings in a linked or dynamic-library module),
ProgramScopeRead (a read of a bound buffer other than a load of its pointer, which
`xcrun metal` 32023.922 does not write). ProgramScopeBinding is gone: a consumer's exhaustive
match on Feature breaks, and a consumer's AirAbi literal needs the new field (git grep of the
consumer's checkout at aed8655a62: 0 hits for ProgramScopeBinding and for `AirAbi {`).

Tests: the ABI decode of a binding (a node with a parameter's index, or a global that is not the
externally initialized undef constant, is malformed); canonicalization over a kernel with three
bound buffers (two appended parameters, one shared with the entry's own) and the refused
shapes; linking and dynamic-library refusals.
2026-11-23 00:51:10 -08:00
Anees Iqbal 3c86a2a45f Translator: a vertex function's slice and viewport index are stored as it writes them
Metal requires the same [[render_target_array_index]] and [[viewport_array_index]] at every
vertex of a primitive ("If values differ, the behavior and value passed to the fragment function
are undefined.", the Metal Shading Language specification), and Vulkan asks the same of Layer and
ViewportIndex (VUID-VkPipelineShaderStageCreateInfo-stage-02596 and -02597). The translator stored
an index only where the function's structure showed it the same among a primitive's vertices
(uniform_varyings over the raw index varyings) and refused every other one,
NotImplemented(LayeredRendering), on every device. A program that keeps Metal's rule keeps
Vulkan's with the index stored as written, and one that breaks it has no Metal answer to match,
so plan::index_store now stores the index to its builtin wherever the device stores it from a
vertex function (shaderOutputLayer, shaderOutputViewportIndex, both in the floor), whatever the
structure shows; a device without the output is refused needing it, as before. The store keeps
index < count ? index : 0 against the pushed length and viewport count, and an index never written
is still stored as 0. uniform_varyings now lists user varyings alone (the raw index keys decided
nothing else), and uniform_index is gone.

Where a program breaks Metal's rule the layer or viewport is the device's choice: the runtime
README's layered line and docs/API.md (section 4 and section 10's accepted differences) say so in
one sentence, the viewport paragraph and set_viewports no longer name a geometry stage, and
docs/REFUSALS.md is regenerated (LayeredRendering is now a device refusal alone). The runtime's
layered device test draws rt6_per_primitive's three triangles into slices 1, 1 and 2 through
viewports 0, 1 and 1 of a 2D array, checking every texel, in place of the refusal it asserted.

SEMANTICS_VERSION 2283: modules for such functions instead of the refusal, and uniform outputs
without the raw index keys.
2026-11-23 00:13:45 -08:00
Anees Iqbal 0eb982e471 Runtime floor profile, conformance notices and ledger rows for the LOD-clamp variants
The committed runtime-floor profile (and its generator's RUNTIME_FLOOR block) states the
floor's raised sampler limits: 24,000 maxPerStage and maxDescriptorSet
UpdateAfterBindSamplers, 286,144 maxUpdateAfterBindDescriptorsInAllPools.
tests::floor::the_floor_profile_states_exactly_the_floor failed without it on lavapipe
(job m3-max-70138) and on the 780M, Iris Xe and RTX 3090 (m3-max-70152, -70153, -70151).

The two sampler-bind-lod-clamps cases declare pixel-sampler-scaling, the static note of a
sample through a runtime sampler slot, which fired on every venue (same jobs). The kernel
case takes the ledger's dispatch_type row every compute-pass case of the rt side takes.
compute-plural-texture-and-sampler-binding now compares its four-bindings site on
lavapipe, which reads lavapipe's one-ulp 8-bit conversion, as compute-inline-bytes does
over the same texture and kernel: a llvmpipe row. The cards compared it exact.
2026-11-23 00:11:46 -08:00
Anees Iqbal 29e54794ca Runtime: a sampler state bound with LOD clamps of its own samples with them
A bind's LOD clamps (setSamplerState:lodMinClamp:lodMaxClamp:atIndex:, its
vertex and fragment forms and the range forms) that read otherwise than the
state's own were Gap::LodClamps. Metal takes the call; on the M3 Max
(conformance cases sampler-bind-lod-clamps-kernel and -fragment) the pair
replaces the state's clamps, a lower bound above the upper reads at the upper's
level, and a plain bind afterwards reads the state's own clamps again.

How: such a bind takes the state's variant of the pair, the state's descriptor
with the pair as its clamps, its device samplers from the shared sampler table,
placed at a variant element of set 1's sampler arrays. The three sampler arrays
grow from 4,000 to 8,000 elements in the runtime's layout; elements 4,000 to
7,999 are the variants'. Shaders declare the heap arrays unsized, so the
translator is unchanged: a slot's sampler index is the runtime's push, and an
argument buffer's sampler index of 4,000 or more still reads element 0, so no
program-written ID reaches a variant. A state keeps its 16 most recently bound
variants; a new one past them takes the place of the least recently bound one
no command buffer holds, and where work holds all 16 the new one is held by its
command buffer alone. Past 4,000 live variants a bind is
Limit::LodClampVariants { max: 4000 }. The lod_clamp_variants gauge counts the
live variants. A NaN bound, which Metal documents no answer for, binds the
state as it is.

The floor's sampler limits rise to 24,000 (maxPerStage and maxDescriptorSet
UpdateAfterBindSamplers) and 286,144 (maxUpdateAfterBindDescriptorsInAllPools);
the lab's least are 500,000 (MoltenVK on the M3 Max) and 1,048,576 (Intel UHD
Graphics 630 on Windows), and Vulkan requires 500,000 of each with
descriptorIndexing.

Gap::LodClamps goes; REFUSALS.md, basis.rs, the signature table, the Metal and
conformance coverage pages regenerate. The validation replay plays clamped
binds (no skipped_clamped_samplers). The ledger drops three rows the clamped
binds now answer (compute-plural-texture-and-sampler-binding steps 11 and 14,
render-state-unread-slots). The compute single clamp form's coverage row named
set_sampler_state; it names set_sampler_state_with_lod_clamps.

Tests: a kernel samples through the binds as Metal reads them; a state's 16
kept variants filled past that; the 4,000 variant elements filled past their
capacity; the gauge flat across a bind and retire loop and zero at device
drop. Verified: see the lane's report (jobs named there).
2026-11-23 00:11:19 -08:00
Anees Iqbal 3c5485a207 Conformance: compute-imageblock-sizes declares the SIMD-group access note and its dispatchType row
The runtime's pipeline of a4_imageblock_extent records the static simdgroup-access-order
note on every device, which the card replays announced at the notices site (RTX 3090,
Radeon 780M, Iris Xe: m3-max-70084, 70085, 70086); the case declares it, as
compute-threadgroup-memory-reads-zero does for its kernel, and every value still compares
exactly. The encoder's dispatchType is the consumer's own on every venue, the same ledger
row the other compute-pass cases carry. Every byte of the output compared equal to
Metal's on the three cards.
2026-11-23 00:09:51 -08:00
Anees Iqbal 809f791396 Conformance: compute-imageblock-sizes' Metal recording, and the coverage it adds
Recorded on an Apple M3 Max, macOS 27.0.1 (26A434), job m3-max-70065: three runs, one
outcome, the validated leg ran with nothing announced, and the timing kept. Metal's 832
bytes equal the fixture's answer at each extent: the dispatch before the encoder set a
size read 1 by 1 (its cell and the extent 1, 1), then 4 by 2 and 4 by 4, every byte past
each dispatch's words still its guard.

docs/CONFORMANCE-COVERAGE.md regenerated: MTLComputeCommandEncoder's
setImageblockWidth:height: is now an implemented item the Metal leg exercises (29
implemented, 26 exercised).
2026-11-23 00:09:50 -08:00
Anees Iqbal 58148264f8 Conformance: compute-imageblock-sizes, one encoder's dispatches before any imageblock size and at two it sets
A compute step for setImageblockWidth:height: on both sides, and a case that runs
a4_imageblock_extent three times in one encoder: before the encoder sets a size (one
thread, Metal's 1 by 1), then at 4 by 2 and at 4 by 4, each one threadgroup of the
imageblock's extent, into a guarded slot each. The case's test holds Metal's recorded
answer equal to the fixture's own at each extent.

The runtime README states the size as a specialization: each size a kernel runs at is
one VkPipeline made at prepare_dispatch or at the dispatch, a first-use wait, where Metal
changes the size with no compile (m3-max-69983); prepare_dispatch and dispatch_variant
take the size. REPLAY-STREAM and VALIDATION say the player and the engine candidate set
it; the ledger row for the state's imageblock length drops the dispatch refusal.

The recording follows in its own commit (taken on the M3).
2026-11-23 00:09:50 -08:00
Anees Iqbal afbcfec9a7 Runtime: the compute encoder's imageblock size; a kernel's explicit imageblock is dispatched
ComputeCommandEncoder::set_imageblock_size is Metal's setImageblockWidth:height:. The encoder
keeps the size, 1 by 1 until a call sets one (Metal's size for an encoder that never sets one),
and a dispatch of a kernel that reaches an explicit imageblock runs at it: the translator's
SpecKey::ImageblockWidth and ImageblockHeight are specialized per VkPipeline (Constant::Imageblock),
as a threadgroup memory length is. The dispatch's refusal (Gap::KernelInput naming
RuntimeFact::ImageblockSize) goes.

- encoder: Sizes carries the encoder's threadgroup memory lengths and imageblock size to decide()
  and threadgroup_memory(); Lengths holds the imageblock size for a kernel that reaches one (0 by
  0 otherwise, so other kernels keep one pipeline whatever the encoder set), and its cells
  (w x h x cell bytes, rounded to 16) count in Limit::ThreadgroupMemory with the lengths.
- pipeline: Variant keeps its Lengths (the key is ([u32; 3], &Lengths, bool)); an imageblock
  kernel has no main pipeline, as a kernel that takes a threadgroup memory length has none;
  keeps_plain counts the imageblock as encoder-sized memory.
- Refusal::ImageblockSize: a side that is not a power of two (0 included) or more than 1024
  cells, whatever the state's maxTotalThreadsPerThreadgroup, as Metal's validation layer stops
  them at the call (probe crates/metal2vulkan-conformance/probes/imageblock_size_rules.m, job
  m3-max-70002, M3 Max, macOS 27.0.1).
- prepare_dispatch and dispatch_variant take the imageblock size as a fourth argument ([1, 1]
  where the encoder set none); a size the encoder would refuse makes nothing and answers None.
  The consumer's two call sites take the argument (planner, through main).
- Validation: the engine candidate sets a case's explicit imageblock size and passes it to
  prepare_dispatch; KernelImageblock narrows to a tile pass's implicit imageblock (the runtime
  builds no tile function). No executor ABI bump: no recorded row ran an explicit imageblock
  case, which the requirement refused. The replay player plays setImageblockWidth:height:, and the
  pre-pass passes each dispatch's size.

Form (step 0, jobs m3-max-69983, m3-max-69984): Metal compiles nothing for a new size (a new
size's first dispatch 202-312 us median against 205-228 us second use and 222 us at the control
size, a state's make 15-20 ms); a pushed size would size the Workgroup arena at Metal's 1024
cells on every dispatch. A new size here is one VkPipeline make at its first dispatch, a known gap.

Tests: tests::imageblock (replacing tests::kernel_input): a dispatch never sized runs 1 by 1; one
encoder runs 4 by 2 and 4 by 4, each read back, two first-use variant waits and no main
pipeline; the setter's refusals.
2026-11-23 00:09:50 -08:00
Anees Iqbal 39498a602f Translator: a vertex function's slice or viewport index it never writes is stored as 0
A vertex function that declares [[render_target_array_index]] or [[viewport_array_index]] and
never writes it returns the index undef (Apple's compiler inserts nothing into the returned
struct's field). The translator took undef as divergent among a primitive's vertices (each use of
OpUndef may read another value) and refused the function, NotImplemented(LayeredRendering).
Metal gives such an index no value, so an index undef at every return
(stage_io::returns_undefined: an undef or poison inserted there, a member of one, or a member no
insertion writes into one) is stored as 0 wherever it is stored (PlannedOutput::unwritten: the
Layer and ViewportIndex builtins and their raw varyings), the same at every vertex, as Vulkan
asks (VUID-VkPipelineShaderStageCreateInfo-stage-02596 and -02597), and uniform_varyings lists
it among the uniform outputs. The offset of a draw of one amplification and the count each
index is held below apply as to any written index. The member walk returns_no_nan used is
shared (returned_member); its answers are unchanged.

SEMANTICS_VERSION 2282: modules for such functions instead of the refusal.
2026-11-23 00:09:50 -08:00
Anees Iqbal 82f0ceca53 Identity domains: a storage cube written or read by face is the 2D-array element of its faces
The translator declares every storage cube and cube array as the 2D array of its faces, at layer
6 * cube + face (cube_as_array). Under the resident-table domains the binder supplies that view.
Under the identity domains no class held it, so a kernel that writes a cube by face was refused
with "texture argument S: a type the identity arrays hold no element of". In the private corpus
on runtime-floor that refusal covered 30 guest functions alone, and 6 more together with a
sampled cube read by face.

Now:
- Translator: identity_class takes a storage declaration that views a cube as an array as the
  2D-array storage class, and a storage cube states no ImageViewShape fact under the identity
  domains. A sampled cube read by face (access::read or access::sample) still has no class and
  stays refused.
- Runtime: a cube's or cube array's storage element, for a texture and for a texture view, is a
  VK_IMAGE_VIEW_TYPE_2D_ARRAY view of its 6N layers (storage_view_type). Vulkan takes that view
  of any cube-compatible image, so every device gets the same form, at no copy and no cost. The
  sampled element stays the cube view.
- docs/API.md states the storage element a consumer holds for a cube. The runtime README says
  what a cube's storage view is, and its identity-domain gap list keeps only sampled cubes read
  by face.
- The same README list adds the refusal of a storage texture written at a run-time level, with
  what Metal does on Intel Macs: an owned kernel's writes at levels 1 and 2, read from a buffer,
  landed exactly on a Radeon Pro 5300M and a UHD 630 under macOS 26.7.1, with Metal's
  validation off, with API validation, and with shader validation (job m3-max-70040, probe built
  in m3-max-70037).

Under the resident-table domains nothing changes: both translator changes apply only under the
identity domains.
2026-11-23 00:09:48 -08:00
Anees Iqbal 059835018a Translator: the floor's tail folds into each other pushed field through a select, not a never-taken return
The floor's tail guard read the tail in the first block and returned where it held a value the
consumer never pushes, so every stage that pushes more than one field ran its whole body under a
never-taken branch. AMD's open driver (AMDVLK 2025.Q2.1, LLPC) dies in vkCreateGraphicsPipelines
making a fragment stage of that shape whose loop holds convergent instructions under
MaximallyReconvergesKHR (an implicit-LOD sample and an f32-f16-f32 round trip): the setup
streams' render content 295d5723 ([65] RG16Float, 1 sample) died on the Radeon 780M, and the
owner's Windows driver died making the same stream's states.

Now the stage reads the tail in its first block, tests it as before (lower/push.rs
tail_never_pushed), and each other field read from its push member is, as every use of it
recalls it, its member's value where the test fails and the null of its type where it holds
(fold_never_pushed, EmitCx::fold_tail): a select per field, no branch, no return. The tail's load
lives while any other push read does, which is what the tail is for (a driver that uploads push
bytes up to the highest one a stage reads). A tail field of the stage's own folds into the others
alone. The fields read from their members load first, then the tail folds, then the spilled and
derived fields, which may read through the folded parameter block's address. Same pushed bytes,
same placement, no interface change.

- lower/push.rs: emit_tail_guard becomes tail_never_pushed (the test) and fold_never_pushed.
- lower/emit.rs: load_push_fields loads, folds (fold_tail), then loads the rest; emit_module no
  longer calls a guard.
- SEMANTICS_VERSION 2280.
- Test: the_floor_s_tail_folds_into_the_other_pushed_fields_with_no_branch (one select per
  other pushed field, no branch on the tail's test, one return), which fails on the guard.
- Docs: lower/push.rs, PushField docs, docs/API.md section 5.
2026-11-22 23:09:52 -08:00
Anees Iqbal a677cb74b3 docs/API.md: the bicubic catalogue's RGBA16Float figure names what lavapipe measured at the edges
What: the precision-note catalogue's largest RGBA16Float difference under the bicubic filter
note now also gives 4.73e-4, measured on lavapipe in the authored bicubic edge cases
(bicubic-edges-of-random-texels-in-a-12x10-rgba16-float, at values in [1, 2), where a half step
is 9.77e-4), at normalized and at pixel coordinates alike. The conformance case's 3.74e-4 stays.

Why: the catalogue changes with the behaviour it describes. The pixel-coordinate form beneath
this commit put those cases through the runtime, and their largest RGBA16Float difference is
above the listed figure. The normalized column of each case shows the same difference, so it is
the note's arithmetic, not the pixel form.

Verified: read from the bicpix lane's run m3-max-69926 on lavapipe at 86bea53a4e (the same tree
as these commits before their rebase): all 7 cases NotedDifference, the pixel column equal to the
normalized column on 64 of 64 lanes in the candidate and in Metal.
2026-11-22 22:54:13 -08:00
Anees Iqbal 12f8a9f06a Identity domains: a bicubic sample at pixel coordinates
The identity domains refused every function that samples a 2D texture through a bicubic
constexpr sampler at pixel coordinates ("a bicubic filter at pixel coordinates"), though its
lowering is the normalized sample's with no position step: a pixel coordinate is already in
texels, so the emulation reads the coordinate itself, the level-0 size by OpImageQuerySizeLod of
the bound image (which under the identity domains is the slot's set-1 element), and the format's
treatment from the slot's PushField::BicubicTexels, as at normalized coordinates. Nothing in it
reads state the identity domains do not source, so the refusal goes: SamplerPlan::bicubic_pixel
and BICUBIC_PIXEL_FORM are deleted. Metal's front end admits pixel coordinates only with clamping
modes (MSL 2.10), and a mirrored axis at pixel coordinates stays refused by bicubic::check, as on
the resident-table domains. A bicubic sample of a 1D texture keeps its own refusal.

The runtime README's known gaps and docs/API.md no longer list the form.

No SEMANTICS bump of its own: 2278, beside the shared bicubic switch fix, covers both.

Metal reads the two forms alike: in the committed M3 observations of the three bcu_address cases
(macOS 26.7 and 27.0.1), the clamp-to-edge and clamp-to-zero samples at pixel coordinates equal
the same samplers' samples of the same point at normalized coordinates, bit for bit, on 64 of 64
lanes each. The sample keeps PrecisionNote::BicubicFilterArithmetic, as at normalized
coordinates.
2026-11-22 22:54:11 -08:00