Commit Graph
10615 Commits
Author SHA1 Message Date
Anees Iqbal b770cc4af7 Translator tests: engine_texture.rs drops the FamilyStrategy import the nil-arm census read
The nil-arm test (removed one commit back) was its only user (s.words()); clippy's
unused-imports failed the lib test build at 4d40d42166 (job m3-max-86868).
2026-12-04 18:12:42 -08:00
Anees Iqbal 004794d5e2 Translator: the nil-arm census analysis goes; the presence constant it read is gone
lower/texture/absent.rs walked the body for the blocks the default ResourcePresence
specialization never runs and counted their words under the census key
texture.is_null.absent_arm, for an output-size gate to except them. That constant is gone: a
static slot's is_null reads its resource ID's element (emit::identity_id), a run-time value no
driver folds at pipeline creation, so the walk's premise is false and its key named words the
module runs like any other.

Deleted: absent.rs (absent_arm, ABSENT_ARM), TexturePlan::absent_arm, its call at the end of
select, Plan::census's arm split, StrategyCensus's doc of the key, the texture module doc's
nil-arm paragraph, and engine_texture.rs's nil-arm kernels and their test
a_nil_textures_arm_is_counted_apart, with queries_and_null_checks's assertion that its kernel
keeps no arm. texture::declare's doc named presence constants it no longer declares. The
output-size exceptions file the test named (validation/budgets/output-size-exceptions.json)
does not exist; validation's budgets read no census key.

What moves: the strategy census alone. An instruction of a nil texture's arm now counts its
words under its own strategy, as every other instruction does, and no texture.is_null.absent_arm
entry is made. Module words, refusals, requirements, interfaces and notes do not move (the walk
fed the census alone), so SEMANTICS_VERSION stays: its doc lists what a bump covers and the
census, reporting only, is not in it. The walk's meter charge goes with it.

Search at 9db78abe7d: git grep -n 'absent_arm\|ABSENT_ARM' -- crates: absent.rs, texture/mod.rs,
select.rs, artifact.rs's doc and engine_texture.rs; nothing outside the translator (no
validation, runtime, script or doc reader).
2026-12-04 18:12:42 -08:00
Anees Iqbal 7a94ef0733 Translator: a heap's storage conversions go; the converted arm read a handle no lowering reads
bind::heap::member_storage_format admitted a storage heap member viewed through a converting
alias (SwizzleBgra, SrgbEncode, SrgbEncodeBgra) where bind::heap::storage_conversions listed its
texel class and red-blue order, for the texture lowering to convert by the handle's class
(lower::texture::heap_storage_conversions). That lowering is gone: a heap element's storage
class is Identity (lower::texture::storage_class), and an argument buffer's texture is the
element its resource ID's index names in its class's array. So the arm and its list go:

- member_storage_format refuses every aliased member, as it refused an aliased one the list
  did not name. Its only caller is tier_read_gaps, over Metal's read-write tier formats
  (device::metal::READ_WRITE_TIER1/2_FORMATS), none of them sRGB or blue-first, so none takes a
  converting class (metal::format::storage_choice gives SwizzleBgra to BGRA8Unorm and
  BGR10A2Unorm and the SrgbEncode classes to the sRGB formats alone): the arm never held for
  any input that reaches it, and tier_read_gaps answers the same on every profile.
- StorageConversion, storage_conversions and its test a_heap_converts_by_class_and_red_blue_order.
- metal::format::red_blue_exchanged, read only by them, and its test
  a_red_blue_exchange_is_a_blue_first_format_s.
- pipeline::artifact::PrecisionNote::SrgbTexelDecode's doc named the deleted lowering: it now
  says a slot's SrgbEncode read decodes, and an argument buffer's texture converts nothing.

Search at 9db78abe7d: git grep -n 'storage_conversions\|StorageConversion\|red_blue_exchanged'
-- crates docs: the definitions, member_storage_format, the two tests and three doc mentions;
git grep -n heap_storage_conversions: the two docs alone, no definition.

The runtime-sources inputs move: crates/metal2vulkan/src/bind/heap.rs and
crates/metal2vulkan/src/metal/format/mod.rs are in crates/metal2vulkan-validation/build.rs's
list. No output changes: no lowering read the list.
2026-12-04 18:12:41 -08:00
Anees Iqbal 4e5d9ff609 Translator: SlotPlan::presence and ConstexprArray::words go, set and never read
- lower::texture::SlotPlan::presence: select set it for a slot's is_null; nothing read it. A
  slot's presence is its resource ID's (emit::identity_id), which the IsNull strategy reads
  without the plan's flag.
- lower::sampler::ConstexprArray::words, each candidate's sampler word, and
  constexpr::sampler_word, its only writer. Nothing read the words: a constexpr sampler array is
  matched by its first handle and its candidates' state words, and each candidate's index is
  pushed (PushField::ConstexprSampler). sampler_word could fail only where state_of fails on
  undecodable words, which finish's constexpr_desc still runs for every candidate, so no input
  changes outcome; descriptor's filters never fail (min_mag answers every filter).

Search, at 9db78abe7d: git grep -n '\.presence\b\|presence:' -- crates/metal2vulkan/src: the
field, its initializer and the one write; git grep -n 'sampler_word(' -- crates: select.rs:642
alone for constexpr::sampler_word (the others are emit::sampler_word, a separate function); no
reader of ConstexprArray.words (git grep -n '\.words\b' over lower/sampler). Behaviour: none;
translation output unchanged (golden tables untouched).
2026-12-04 18:12:41 -08:00
Anees Iqbal 8ec9d3858b Translator tests: the profile docs say Device::from_queries, not the resident-table domains
Six test docs still named the resident-table domains, which are gone: every committed profile
is now derived by Device::from_queries alone (pipeline::testing::profile,
spirv::testing::committed_profiles). Each says that now:

- engine_rate_map.rs profile_with, engine_rotated_colors.rs devices, fuzz_interp.rs
  CpuInterp::new, public_fixtures_engine.rs (module doc), api_surface.rs device: the profile
  as Device::from_queries derives it.
- engine_workgroup_layout.rs (module doc): its two profile sets are both from_queries', the
  committed description as stated and without its pipeline-robustness feature
  (identity_profiles), not the resident-table and the identity domains.
- api_surface.rs device_under named a policy parameter it does not take.

Comments only; no code moves. Search: git grep -n 'resident-table domains' -- crates at
9db78abe7d: 6 hits, 0 after.
2026-12-04 18:12:41 -08:00
Anees Iqbal 47fec71d2a Validation player: command-replay refuses an option given twice, and section 10 lists every option
options() now refuses an option a command line gives twice, "--NAME is
given twice", before anything runs: exit status 2 and the usage
printed, as for an option the subcommand does not take. Before, the
second value replaced the first in the map with nothing said, so a
script that spliced options after its own (`--until-frame X
${PLAY_ARGS}`) played the splice's value unnoticed. The module doc and
with_options' doc say so.

docs/REPLAY-STREAM.md section 10 named the options each subcommand
takes only in part, though it said each takes "the options its usage
names". Its play synopsis now lists all twenty, adding --state-log,
--state-threads, --state-keys, --state-digests, --prepass-width and
--dump-command-buffers with --dump-dir. A paragraph after the
states-only one now says what the state options and --prepass-width do,
from the module doc. dump and shapes show [--blobs DIR]. The rule now
reads: each option once, none it does not take.

Callers audited at development 039f7a9350 for an option given twice
(the 9db78abe7d audit of unknown options covered the same callers): the
orchestration's round script and its leg scripts, every orchestration
job script that runs the player, the scripts of every carry repository
at its HEAD (104 invocations in all), the consumer's tree (no caller),
CI, CONTRIBUTING.md and the docs (none runs the player), and the
in-tree tests. No invocation names an option twice. Where options are
spliced from the environment, the values on record don't repeat an
option either: PLAY_ARGS (--check-presents), PLAYARGS (empty or
--managed two-copy) and UNTIL (becomes --until-frame, in scripts that
do not pass --until-frame themselves). Three splices have no recorded
value and stay unaudited: FS_PLAY_ARGS, EXTRA and PARGS.

Verified: the red commit's every_subcommand_refuses_an_option_given_twice
fails at its parent (lavapipe-free run, job m3-max-86867: 1 passed, 1
failed). The jobs for this commit are named in the lane's report.
2026-12-04 18:12:41 -08:00
Anees Iqbal 824f34b68e Validation tests: command-replay refuses an option given twice, and compare-dumps an option it does not take (red)
command-replay's options() refuses an option a subcommand does not take
(62e9d045c3), but an option given twice still goes into its map in
silence, the last value winning: `play ... --until-frame 3 --until-frame
5` plays to frame 5. A script that splices options from its environment
after its own (`--until-frame X ${PLAY_ARGS}`) would play the splice's
value with nothing to say so. A repeated option should be a bad command
line instead.

replay_options::every_subcommand_refuses_an_option_given_twice runs each
of the six subcommands with one option given twice, required or not
(play --until-frame, dump --stream, shapes --blobs, snippet
video-surfaces --handle, compare-dumps --a, compare-plays --frame), and
expects exit status 2, a standard error line "--X is given twice", no
play report and no snippet written. Red here: dump, shapes and the
snippet run to exit 0, and play writes its report.

every_subcommand_refuses_an_option_it_does_not_take now runs
compare-dumps too (--frame), the one subcommand it left out. It passes
here, as the refusal is in place; its red is a negative control, the
fix's commit names it. The two tests share their setup and their checks.
2026-12-04 18:12:41 -08:00
Anees Iqbal a6de987639 Runtime: the narrowed attachment-read counter and its per-draw rectangle go; the narrower form is not taken
The UHD 630 numbers answer the question attachment_read_copy_bytes_after_barrier_narrowed was
added to size (9db78abe7d): a form whose memory barrier forgets only the rectangle bounding the
pass's draws' scissors would remove at least half the attachment-read copy bytes, or it is not a
lane. On Intel's Windows driver 101.2145 for the UHD Graphics 630 (Windows 11, the consumer's
x86-64 guest, no feedback loop), whole-boot counts at a test tree with the split:
- desktop boot (130 s, 15,678 copies, 72,587,189,668 bytes): after barrier 56,148,113,276,
  narrowed 25,369,581,904, so the form would remove 30,778,531,372 bytes, 42.4%;
- 40 s 1080p H.264 playback (25,551 copies, 138,558,378,988 bytes): after barrier
  75,057,769,016, narrowed 39,566,419,316, so it would remove 35,491,349,700 bytes, 25.6%.
Both under the planner's 50% bar, so the form is not built and the count that sized it is
deleted (rule 4), with what fed it: shadow::Held's dropped areas, rendered rectangle and
may-write flag, Held::drew and Held::narrowed, held_texels, Area::meet, the per-draw update in
draw() and the scissor_of helper it shared with drawn_through (inlined back as before). Held keeps
one flag for the moment counters. The other five split counters (own pixel, whole texture, first
in pass, after barrier, beyond held) stay: the consumer prints them.

The README's sentence on the counter becomes the measured shares (card, driver, OS; no job ids).
The signatures table loses the field. The device test and the host test drop the narrowed column;
the host test of the narrowed texels goes with the code it tested.

Verified: pending (clippy x3, rustdoc, lavapipe rt suite).
2026-12-04 18:12:41 -08:00
Anees Iqbal acb5680cca Runtime README: KosmicKrisp's indirect patch draws, the one-instance overrun the driver's source shows and why the runtime keeps one form
Lane kktess read the driver's source (Mesa 26.3.1, kk_cmd_draw.c kk_launch_tess, kk_tessellation.cl):
for an indirect tessellated draw the vertex and control-point grids are computed as thread counts and
dispatched as threadgroup counts. The control-point work past the last instance's patches writes into
the same allocation as the draw's vertex outputs, so a one-instance indirect patch draw carries the
overrun too; the bare repro's one-instance draws were right 8 of 8, so this is a source read, not a run.

The forms weighed (instance count folded into the vertex count, one indirect command per instance,
a direct draw, device-generated commands) each either write a new indirect command from the guest's
arguments, which Vulkan allows only outside a render pass (VUID-vkCmdDispatch-None-10672 and the
copy, update and fill VUIDs), so every indirect patch draw on every device would copy the arguments
and end and restart its pass, or read the counts back, or need a query-chosen form past the floor.
The known gap stays; the lane parked on its trigger. Docs only; no job.
2026-12-04 18:12:41 -08:00
Anees Iqbal 4075d137fa Runtime: the attachment-read copies' bytes parted by read, by moment, and what a narrower form would copy after a barrier
What: six Metrics counters part attachment_read_copy_bytes, the copies a draw makes into a
shadow on a device without the attachment feedback loop (and for a surface plane, a texture in
place over a buffer without the feedback usage, a Direct3D 11 plane, on every device):
- by read: attachment_read_copy_bytes_own_pixel (a slot read only at the fragment's own pixel,
  or a fetched colour attachment) and attachment_read_copy_bytes_whole_texture (every level and
  layer the texture reaches); the two sum to attachment_read_copy_bytes;
- by moment: attachment_read_copy_bytes_first_in_pass (the shadow has held nothing since its
  pass began), attachment_read_copy_bytes_after_barrier (a memory barrier after draws, or a
  fetching draw after draws, left it holding nothing) and attachment_read_copy_bytes_beyond_held
  (it holds something and the draw reads past it); the three sum to attachment_read_copy_bytes;
- attachment_read_copy_bytes_after_barrier_narrowed: for each copy after a barrier, what a form
  whose barrier forgets only the rectangle the pass's draws rendered would have copied: what of
  the copy lies in the rectangle bounding the scissors (cut to Metal's render area) of the
  pass's draws since the shadow began to hold what it held, in the attachment's level and layer,
  plus what of it the shadow did not hold when the barrier dropped it; the whole copy where one
  of those draws may have written memory (Draws::writes_memory, or an indirect command buffer's
  execution), which may reach the image other than as its attachment. At most the after-barrier
  part.
No copy is added, removed or resized.

Why: the consumer's Intel UHD 630 under Windows, which has no feedback loop, counts tens of
gigabytes of these copies in a desktop boot and a video playback. A narrower form, a barrier that
forgets only the rendered rectangle, is a lane only if it would remove at least half the bytes;
the existing two counters cannot say. The rectangle counts from the shadow's first copy after it
held nothing, not from its last copy: a later copy only adds areas, and the areas copied earlier
are stale where the draws between rendered.

How: shadow::Held keeps what it held at the barrier, the rectangle and a may-write flag;
Held::narrowed works out the kept texels by inclusion and exclusion over at most eight held
areas, only at a copy after a barrier. The per-draw cost is one rectangle update for each shadow
of a pass that has one (Held::drew at the draw's end); a pass with no shadow does nothing more.
No speed is measured.

Verified, at dd1913401b (this tree; the message alone changed since):
- lavapipe (llvmpipe, LLVM 23.1.1), job m3-max-86812: the runtime suite under --cfg m2v_cpu_icd,
  1025 passed, 4 skipped. Among them
  d3d11_reads::every_device_parts_the_bytes_it_copies_into_a_direct3d_11_planes_shadow, which
  drives the shadow route on every device through a Direct3D 11 plane (R8Unorm, 16 x 8): an
  own-pixel read under a small scissor, a whole read, a memory barrier, a draw under another
  small scissor, a whole read; it asserts copies 3, bytes 280, own pixel 24, whole texture 256,
  first in pass 24, after barrier 128, beyond held 128, after barrier narrowed 60. And three host
  tests in tests/shadow.rs (moments, the narrowed texels over overlapping held areas, a
  may-write draw, another level or layer; the parts' sums).
- Red control, lavapipe, job m3-max-86813: this tree with the six split adds removed; the
  device test failed with [3, 280, 0, 0, 0, 0, 0, 0] against [3, 280, 24, 256, 24, 128, 128, 60].
- clippy --workspace --all-targets --all-features -D warnings: plain job m3-max-86814,
  --cfg m2v_gpu job m3-max-86815, --cfg m2v_cpu_icd job m3-max-86816. rustdoc -D warnings,
  scripts/api-docs and the signatures check: job m3-max-86817.
- The signatures table is blessed (six Metrics fields); refusal_surface.py wrote no change.
Not run: a device without the feedback loop through any route other than the Direct3D 11 plane.
2026-12-04 18:12:41 -08:00
Anees Iqbal b996b27a99 Translator tests: a texel's undecorated nudge sum floors to the code fused or not
extended_unorm::mapped takes a texel's code as floor(w + (nudge - 384)) with
the sum undecorated, so a device may fuse the code space's product into it,
fma(u, m, nudge - 384), rounding once from the exact product. The exact
sum's fraction stays near 1/128 to 0.992 for a BGRA10_XR field and
0.5 +- 0.016 for a BGR10_XR one, far past one rounding's error, so the
floor cannot cross an integer.

a_fused_texel_sum_floors_to_the_code now holds that for every code of both
formats, each of a BGRA10_XR field's 64 low-bit patterns and a BGR10_XR
code widened by replicating its bits included: the sum is formed exactly in
i128 (steps of 2^-46) and rounded once to the nearest f32, ties to even, and
its floor, and the unfused sum's, is the code less 384. A later edit that
moves a nudge or the scale off those margins fails it. The module docs and
mapped's comment say why the sum stays undecorated.

Test-only: the emitted code is unchanged, so no SEMANTICS_VERSION bump; the
runtime-sources hash is unchanged (c9ff784a...).
2026-12-04 18:12:41 -08:00
Jacob McSwain 74e4ad9d3a Translator: accept the module flags Apple's Metal shader converter writes
Shaders made by Apple's Metal shader converter could not be translated. The converter writes four
module flags the translator did not know, and an unknown flag is refused with Abi(UnknownKey).

The four flags:
- agx.allow_mismatched_component_counts (an i32, 0 or 1)
- irc.version_major, irc.version_minor, irc.version_patch (integers; 3.0.0 in the shaders seen)

What changes: the decoder accepts these flags and ignores them, as it treats wchar_size,
frame-pointer and the debug-info flags. It still checks them:
- each flag appears at most once;
- the agx flag is 0 or 1;
- the version parts are integers.
Anything else is refused as before. No public API changes.

Evidence:
- A new fixture with these flags compiles to the same SPIR-V as the same shader without them, on
  all 15 profiles: the flags change nothing in the translation.
- converter_module_flags_are_checked_and_dropped and the kernel_converter_module_flags fixture fail
  without this change.
- Of 12 converter-made shaders, 8 carry these flags. They now get past the flags, but each stops at
  a different, unrelated refusal; none compiles with this change alone.

Version: SEMANTICS_VERSION 2386 -> 2387, because inputs refused before can now compile.

Golden table: left for the bless on development; golden_hashes_match_the_table lists the fixture's
15 new cells. The fixture's expectations row is included.

Not run: device tests, the Windows clippy legs, the CI matrix.
2026-12-04 19:36:27 -06:00
Anees Iqbal a71ba816e3 Runtime README: the extended-range known gaps state card, driver and OS, not lab job ids
scripts/api-docs (CI's API reference step) refuses a lab job id in the prose docs, and
e849ae4665's two known-gap bullets cited six. They now name each measurement's card, driver and
OS: RX 7900 XTX (RADV, Mesa 26.2.6, Linux), Iris Xe (ANV, Mesa 26.2.6, Linux), RTX 3090 (NVIDIA
620.70.06, Linux), and KosmicKrisp (Mesa 26.3.1) on an Apple M3 Max, macOS 27.0.1. The ids stay
here: the GPU-time arms m3-max-86672 (XTX), 86676 (Iris), 86692 (3090); KosmicKrisp creation
m3-max-86686 and 86724; ANV creation m3-max-86719. Found by the pin Z prepush m3-max-86741
(STEP api_docs EXIT=1); the grep over the four prose files is now empty.
2026-12-04 12:24:13 -08:00
Anees Iqbal 01c1d0525c Pin Z bless: golden hashes at e849ae4665
The golden hash table re-blessed at development e849ae4665 (SEMANTICS_VERSION 2386: the pixel
sampler's single quotient sample and the extended-range decode's straight-line select moved the
artifacts). M3 job m3-max-86734 (bless-job.sh): inventory, golden, printouts, the AIR fixtures'
metallib half and the opened chains each exit 0; only golden_hashes.tsv changed (725 rows). The
engine inventory, the printouts and the opened chains are unchanged. The authored compile census
at dc3e7e5add (m3-max-86670) changed no table row; its run at e849ae4665 is in the merge check.
2026-12-04 12:16:34 -08:00
Anees Iqbal e849ae4665 Runtime README: the extended-range decode's price as a select, and the largest guest function's first creation with it
What: the known gaps of textures say what the straight-line decode costs.
- The bullet that described the per-site branch and its price now describes the select: every
  float sample, gather and read maps its lanes and selects where the word names BGR10_XR or
  BGRA10_XR; a texture of another format pays the arithmetic and the select, and a
  robustness-bounded read its in-range test. Its GPU-time price against the branch, base
  dc3e7e5add against 14d30efdfe, four alternated rounds' p50 medians: RX 7900 XTX (RADV,
  m3-max-86672) +0.3% sampling, +2.7% constexpr_sampling, +0.8% texture_read; Iris Xe (ANV, Mesa
  26.2.6, m3-max-86676) +0.5%, +1.3%, -0.2%; RTX 3090 (m3-max-86692) +0.1%, +0.8%, 0.0%. It says
  these predate 571a22f97a's uncontracted difference.
- A new bullet: one guest fragment function of 318 float samples, first created with every driver
  cache off, takes 23 s on KosmicKrisp (Mesa 26.3.1, Apple M3 Max; m3-max-86686 at 14d30efdfe and
  m3-max-86724 at 571a22f97a) and 9.2 s on ANV (Mesa 26.2.6, Iris Xe; m3-max-86719 at 571a22f97a),
  against 14 to 18 s and 4.0 s for the same function without the map (pin W, the same jobs and
  main's three earlier KosmicKrisp tables). Both are past the 5 s ceiling, as at W.

Why: the planner's ruling for pin Z: if Z ships the select form, its creation cost is stated as
measured, beside the row already owed for that variant.

Verified: the figures are the named jobs' lines; KosmicKrisp's 0 MTLLibrary failures at both W and
571a22f97a (m3-max-86724). Docs only; no code changes.
2026-12-04 12:11:12 -08:00
Anees Iqbal e64cf97918 Translator: an extended-range filter's difference w - 384 is NoContraction again, so no device fuses the code space's product into it
What: the straight-line decode (14d30efdfe) moved alpha's clamp after the difference, which made
the difference's operand the product w = u * m itself, and dropped the difference's NoContraction.
The RTX 3090, the RTX 5080 and KosmicKrisp then fused the two into fma(u, m, -384): n rounded once
from the exact product, where Metal's code space rounds w first. A nearest sample's w is the code,
so the fused n was a fraction off it, and the decoded value with it. The difference is decorated
again, as at pin X. A texel's floor (reads, gathers) was unaffected: floor(u * m + nudge - 384) is
the code less 384 fused or not.

Why: the replays at 7459e4d8ba moved 14 cells, the same counts on the RTX 3090 (round
7459e4d8ba-1204-1147, job 86698), the RTX 5080 (86700) and KosmicKrisp (86694): the samples of
extended-swizzles-bgr10xr (0ag1, ar10, bgra, gggg, rgba; sl and sn) and extended-swizzles-bgra10xr
(0ag1, bgra, gggg, rgba; sl), e.g. bgr10xr gggg/sn 336 elements at X, 504 now on the 3090.
Lavapipe (job 86688) showed none: it does not contract.

Test: a_runtime_samplers_implicit_sample_is_one_sample checks, on every committed profile, that the
module's one difference of 384 is decorated NoContraction; it fails without this change.
SEMANTICS_VERSION 2386. runtime-sources.sha256 unchanged.
2026-12-04 12:11:12 -08:00
Anees Iqbal 9a5aa02725 docs: the API guide's extended-range paragraph says the decode selects without a branch
What: docs/API.md's BGR10_XR / BGRA10_XR paragraph describes the straight-line decode of 14d30efdfe:
every lane mapped and selected where the word names one of the formats, no branch; the sum alone
decorated NoContraction; a slot's test, flags and constants made once per binding in the function's
first block; a robustness-bounded read testing its operands at every such read. No code changes.

Evidence for 14d30efdfe (generated code identical at 7459e4d8ba and here):

Words, runtime-floor, the largest variant 3f4cca857dfa (m3-max-86685, .json sidecars included):
W 162,351; pin X's per-site branch at dc3e7e5add 211,959; 14d30efdfe 176,844, about 175,630
without sidecars against W's 161,140 (+9.0%, under the 177,254 bar). The decode costs 14,493 words
over W where the branch cost 49,608, about 46 words a site over its 318 sites, the per-binding
decodes included. On the other 14 profiles: 170,128 (the RADV and ANV ones), 170,112 (the two
RTX 50), 170,100 (the three lavapipe), 176,880 (Pascal), 197,547 (moltenvk-m3). Small rows:
54f0489eefb5 1,692 (dc3e7e5add 1,680), 2a423fb525e7 2,394 (2,403).

GPU time of a float texture that is not extended-range, the harness's sampling (sample_down, a
runtime sampler), constexpr_sampling (sample_up) and texture_read (texels_out, a read the device's
robustness bounds, which now pays its in-range test at every read), base dc3e7e5add against
14d30efdfe: four rounds, the arms' order alternated each round, 200 timed runs each, the median of
the four GPU p50s in microseconds, the four's range in brackets:
- RX 7900 XTX, RADV (m3-max-86672): sampling 16.05 (16.00-16.10) -> 16.10 (16.10-16.40), +0.3%;
  constexpr_sampling 29.95 (29.90-30.30) -> 30.75 (30.40-30.90), +2.7%; texture_read
  45.40 (45.40-45.40) -> 45.75 (45.70-45.80), +0.8%.
- Iris Xe, ANV (m3-max-86676): sampling 394.90 (393.70-395.70) -> 396.90 (394.70-398.60), +0.5%;
  constexpr_sampling 820.60 (818.60-821.80) -> 831.45 (827.70-837.40), +1.3%; texture_read
  1564.25 (1561.70-1566.30) -> 1561.10 (1557.20-1566.40), -0.2%.
- RTX 3090, NVIDIA's driver (m3-max-86692): sampling 61.80 (61.70-61.80) -> 61.85 (61.80-61.90),
  +0.1%; constexpr_sampling 65.90 (65.80-66.00) -> 66.45 (66.30-66.60), +0.8%; texture_read
  134.65 (134.60-134.70) -> 134.65 (134.60-134.70), +0.0%.
Every workload is within 3% on each card; the XTX's constexpr_sampling, +2.7%, is the closest.

Check m3-max-86665 at 14d30efdfe: 3907 passed, 1387 skipped. Lint m3-max-86683 at 7459e4d8ba:
fmt, clippy plain, m2v_gpu and m2v_cpu_icd, rustdoc all clean.
2026-12-04 12:11:12 -08:00
Anees Iqbal acbafb52f3 Translator: identity_id's crate re-export goes, nothing outside its module reads it now
What: lower::texture no longer re-exports emit::identity_id; its callers are emit.rs itself and
words.rs, which names it by path. The extended-range decode (14d30efdfe) read a slot's word through
the re-export and now reads it through identity_word.

Why: rustc's unused_imports warning, seen in the harness arm build m3-max-86667; warnings are errors
in CI.

Verified: cargo fmt; the build is the lint job that follows.
2026-12-04 12:11:12 -08:00
Anees Iqbal 19bcc2dd2d Translator: an extended-range texture's decode is straight-line, its test made once per binding
What: a float sample, gather or read of a sampled image no longer branches on the texture's word at
each site. The site computes Metal's value of every lane (the code space, a texel's code whole, the
clamp, the two products and their sum) and selects it where the binding's decode maps the lane: no
block, branch or phi of its own. The decode (the word's test folded into its bits, the lanes' flags,
the scale, the bounds and a texel's nudge) is made once per texture slot, lanes kind and source, in
the function's first block (EmitCx::extended_decode, from the slot's word, a push field loaded
there); a heap element's at its site, from its handle. A read the device's robustness bounds still
selects 0 for a code lane outside the image, now at every such read.

The arithmetic is X's, rearranged where the bits are provably the same:
- the clamp moves from the code w to n = w - 384, alpha's bounds [0, 510]: w - 384 is exact on
  [384, 894] and rounds below 0 and above 510 outside it (clamping_the_difference_clamps_the_code,
  every f32 near the bounds, every 64th elsewhere in [0, 1024));
- a texel's floor takes its nudge less 384, so it is n itself: every code of both formats, the low
  six bits of a 16-bit field and NVIDIA's replicated 10-bit codes (the module's tests);
- a lane that is not alpha's is clamped to +-65536, finite, so no device's float controls change it;
- the sum keeps NoContraction, which forbids combining it with a product or factoring n out of it;
  the products and the difference drop theirs (n has two uses, and the products feed only the sum).

Why: pin X's per-site arm (58988c6b83) put a test, a branch, a merge and a phi on each of the 318
float samples of the largest variant 3f4cca857dfa, +49,608 words at runtime-floor over pin W
(m3-max-86625: W 162,351, e1dd48a92b 211,959). KosmicKrisp failed that variant's MTLLibrary
(m3-max-86641: W 18 s, e1dd48a92b 100 s and a refusal) and Iris Xe took 9.3 s against W's 4.0 s
(m3-max-86640).

The affine lead does not hold: fma(u, fl(m/510), fl(-384/510)) misses Metal's quotient for 834 of
the 1024 BGR10_XR codes and 543 of the BGRA10_XR codes (543 and 575 with lavapipe's reciprocal
conversion), so the exact form stays.

Tests: a_runtime_samplers_implicit_sample_is_one_sample also asserts no OpSelectionMerge and no
OpPhi on every committed profile; the module's tests cover the shifted floor and the clamp. The
ARM_WORDS estimate is 48. SEMANTICS_VERSION 2385. runtime-sources.sha256 unchanged (none of its
listed sources moved). docs/REFUSALS.md unchanged.

Turnip limits read from Mesa 26.3.1 for the 196,608 sampled-image floor of 50b05dbce2: no targeted
driver sits between 131,072 and 196,608 (Turnip tu_device.cc:1080/1089 16,777,216; RADV
radv_physical_device.c:1998/2007 8,388,606; ANV anv_physical_device.c:1463/1472 201,326,592, ARL
33,554,432; lavapipe lvp_device.c:1160/1169 1,015,808; KosmicKrisp kk_physical_device.c:731/743
2^20).
2026-12-04 12:11:12 -08:00
Anees Iqbal 0fdcf9833d Runtime README: a Direct3D 11 plane's own-pass reads were zero in a video playback too
The known gap for a Direct3D 11 plane's attachment reads said the frequency was near zero by one
desktop boot. The consumer's playback boot on the Intel UHD 630 (Windows 11, its tree at pin W
with the plane-import diagnostics; job m3-max-86661, build 86658) played a 40 s 1920 x 1080 30 fps
H.264 clip made on our hosts for 41 s in a video player: rt-diag plane-passes 0 in every shape
(one plane, both planes of one picture, with depth or stencil, with a colour attachment not a
plane, a plane as a resolve target, planes of more than one picture) at all five counts writes;
934 pictures drawn, 2,053 Direct3D 11 plane submissions; fatal 0, lost-device 0. The line now
names both runs and stays "expected", since two workloads are not every guest.
2026-12-04 11:59:16 -08:00
Anees Iqbal dc3e7e5add Conformance ledger: NVIDIA's render-then-sample-magnified-linear row returns, the device's own linear filter
What: the NVIDIA venue's render-then-sample-magnified-linear row, as 2a406a848e removed it (pin W's
text): a linear magnified sample of a rendered 8-bit target, 30 elements a code from Metal's, the
device's own answer under device-sampling and device-color-conversion. docs/CONFORMANCE-COVERAGE.md
regenerated.

Why: 2a406a848e dropped the row as stale at pin X, where a runtime pixel sampler's second sample
moved this case's filter. With the pixel sampler back at W's single quotient sample (50b05dbce2), the
device's own linear filter shows again: the RTX 5080's replay at e1dd48a92b (job m3-max-86636)
reports exactly this row, 30 elements differ (U8), the largest difference 1, and nothing else
unexpected.

Verified: the 5080 replay above; the row's fields are the replay's line. The RTX 3090's replay at the
same sha is still running.
2026-12-04 11:35:41 -08:00
Anees Iqbal fde349e7b2 Translator tests: a constexpr sampler's device sampler is checked made, not for the deleted unnormalized field
Fix forward for a3b78a142a: engine_identity's
a_constexpr_sampler_is_the_set_1_element_its_pushed_index_names asserted that the constexpr
sampler's vk::SamplerDesc was not unnormalized, and that field is gone with the form. The test
still makes the device sampler and holds the PixelSamplerScaling note. Found by the build of
job m3-max-86604 (E0609, metal2vulkan lib test). Test-only; no version moves.
2026-12-04 11:35:41 -08:00
Anees Iqbal 0494e2543d Translator: the unnormalized sampler form nothing makes once the twins went is deleted
The runtime's unnormalized twins were the last maker of a device sampler with
unnormalizedCoordinates (8fb26059c7 and 27a6c1ebd3 kept the form for them alone). With the twins
gone in the previous commit, nothing builds such a sampler, so the form goes (rule 4):
SamplerUse::unnormalized and SamplerUse::with_unnormalized, vk_sampler's unnormalized arm (the
invariant check, the nearest mip mode at [0, 0], the dropped anisotropy and bias),
metal::sampler::unnormalized_reads, vk::SamplerDesc::unnormalized (its key, its codec field and
ash_interop's unnormalizedCoordinates, which is now always false), and their tests.

Consumer: reims-vgpu at 9889a815bb names none of them (git grep -w over its Rust sources:
with_unnormalized 0, unnormalized 0, SamplerUse 0). The signature table loses the two fields and
the method. The codec change rides on ARTIFACT_FORMAT_VERSION 615 of the previous commit (one
tip); metal/sampler.rs, vk/structs.rs and ash_interop/convert.rs are runtime inputs, so
runtime-sources.sha256 is re-pinned; RUNTIME_VERSION 2579 of the previous commit covers it, and no
run reaches a removed arm.
2026-12-04 11:35:41 -08:00
Anees Iqbal f3a820799e Translator and runtime: a runtime pixel sampler samples once, at the quotient, as at pin W
The planner's ruling on pin X's fragment growth (12-04). The level-0 arm that 8f69218029 put on
every implicit sample and gather through a runtime sampler slot (a test of the slot's word, a
second, explicit level-0 sample through the state's unnormalized twin, and a branch with a phi)
doubled large fragment shaders: the largest corpus variant went from 161,140 to 318,071
runtime-floor words, and its pipeline creation from 4.0 s to 28.1 s on the Iris Xe and past
300 s on KosmicKrisp. What it bought was last-bit filter weights of a linear downscale, never
another texel.

Translator: a slot sample or gather is the one W form again. The pixel coordinate reaches the
device's normalized sampler as the coordinate over the level-0 size, chosen in ALU by the slot's
word (and its texel centre for a nearest pixel state), under PrecisionNote::PixelSamplerScaling.
Gone: Sampling::level_zero, the level-0 test and value, TextureSlot::level_zero_samplers (and
its codec field), LEVEL_ZERO_ELEMENT, UNNORMALIZED_TWIN_ELEMENT, SamplerWord's
UNNORMALIZED_FILTERS, UNNORMALIZED_LINEAR, UNNORMALIZED_MODES and reads_unnormalized, and
emit's offset_texels, which only the level-0 value read. The follow-ups go with it: c99bf0c6c3's
linear-only test and its red test, 69a3254e1a's DeviceSampling paragraph on the unnormalized
sampler's sub-texel step (no form reaches that sampler now), b58c67e981's count, 77e2a4f187's,
9fe45f0043's and a86f5ed62b's test counts. The translator test
a_runtime_samplers_implicit_sample_is_one_sample holds a fragment's implicit slot sample to one
implicit sample and no explicit one on every committed profile (at X the level-0 arm's explicit
sample made it fail).

Runtime: set 1's sampled array holds the textures and their second elements, 131,072, and the
plain sampler array 8,000 again: no unnormalized twins, no level-0 elements, no level-0 views
(Gauges::level_zero_views and its harness and replay entries go, with tests/level_zero.rs and
83bb95724d's bind check). The floor's descriptor limits are what those arrays need: sampled
images 196,608 (textures, second elements, read texture buffers), samplers 24,000, per-stage
resources 393,216 plus the attachments, all pools 417,216; X asked 262,144, 32,000, 458,752 and
490,752. These still hold the second elements on every device at the floor, so
Capabilities::attachment_reads stays always true and 7a6b0d10bc stays: no guest-visible answer
moves (W's own floor, 131,072 sampled images, would have made it a per-device answer again).
runtime-floor.json and regen_device_profiles.py state the new floor.

Docs: PixelSamplerScaling's doc and its docs/API.md entry keep W's text without the level-0
clauses; the measured line names the cards: a linear downscale by 8 through a slot within
0.88/255 of Metal's on KosmicKrisp and RADV, 0.95/255 on the Iris Xe, 1.19/255 on the RTX 3090
and 1.375/255 on lavapipe (the ledger rows' largest differences). The runtime README, RESOURCE-ID
and the pixel_samplers module doc drop the level-0 elements and twins.

Ledger: the pixel-downscales rows return on the seven venues (RX 7900 XTX, Radeon 780M, RX 550,
NVIDIA, Iris Xe, llvmpipe, Apple M3 Max) and the pixel-samplers slot rows on five cards and
lavapipe, from 24cb048066, ed46bdbfc5, 82b7d9e4a2, bb7661f09a and 0c70839937's removed lines;
the frac/slot rows that said ours read as the device's own answer under note
pixel-sampler-scaling. Coverage regenerated. The replays at this tip are the check.

Versions: SEMANTICS_VERSION 2384 (slot samples lose the level-0 arm), ARTIFACT_FORMAT_VERSION 615
(TextureSlot's codec loses level_zero_samplers), RUNTIME_VERSION 2579 (set 1's sizes, no twins or
level-0 elements, the floor's limits); runtime-sources.sha256 re-pinned. The signature table and
api_surface lose the removed items; docs/REFUSALS.md is unchanged (refusal_surface --check).

Consumer: reims-vgpu at 9889a815bb names none of the removed items (git grep -w: 0 hits each for
LEVEL_ZERO_ELEMENT, UNNORMALIZED_TWIN_ELEMENT, level_zero_samplers, level_zero_views,
reads_unnormalized, UNNORMALIZED_LINEAR, UNNORMALIZED_FILTERS, UNNORMALIZED_MODES).
2026-12-04 11:35:41 -08:00
Anees Iqbal af66b8a4e2 Runtime README: a view of another format leaves its shadow's first copy
The README said the shadow is of the attachment's format and that the pass's clear stands for
the first copy into it. The encoder takes the clear only where the shadow's format is the
attachment's (render_encoder.rs, Shadowed::cleared); the shadow keeps its texture's format, so
an attachment that is a view of another format copies at its first read as well. The Render
encoders section and the known gap for a device without the attachment feedback loop now say so,
with the two copies the view test asserts (d95c47603b; seen as (0, 2) on the Intel UHD 630,
Windows, job m3-max-86637).
2026-12-04 11:35:21 -08:00
Anees Iqbal d95c47603b Runtime tests: a view of another format reads its attachment's shadow through two copies
every_device_reads_its_attachment_through_a_view_of_another_format expected the shadow route to
copy once: the pass's clear standing for the shadow's first copy, the read after the barrier
copying. The shadow keeps its texture's format (RGBA8Unorm), and the encoder lets a pass's clear
colour stand for a copy only where the shadow's format is the attachment's
(render_encoder.rs, Shadowed::cleared), so an RGBA8Unorm_sRGB view's first read copies too:
two copies, which is the runtime's intended form (a clear of the UNORM shadow with the sRGB
view's colour would store other bits).

Seen on the Intel UHD 630 (Windows, driver 101.2145, no attachment feedback loop), job
m3-max-86637: "loop reads and copies (0, 2)"; the other 1027 tests passed, 5 skipped. Every
device the lab runs with the loop takes the (2, 0) arm, unchanged. The test now expects (0, 2)
on the shadow route; its rerun is the UHD 630 leg at the next pin's tip.
2026-12-04 11:33:55 -08:00
Anees Iqbal 9c689f0eb3 AGENTS.md: rule 2's attachment feedback loop clause names the Direct3D 11 plane
Rule 2's clause for the attachment feedback loop said a device without the loop reads a render
target through a counted copy of that target. Since 1baee4fb75 a Direct3D 11 plane's image takes
only its texture's bind-flag usage, never the loop usage, on every device, so a draw that reads
such a plane in its own pass takes that same counted copy on a device that has the loop too. The
clause now says so: "a device without it, and on every device a Direct3D 11 plane, whose image
takes only its texture's bind-flag usage, reads a render target through a counted copy of that
target, recorded as a known gap".

It adds no query and no form chosen by a device, so rule 2's count of fourteen stands. The
runtime README's known-gaps entry for the plane states the same route.

The owner approved this clause as worded (Telegram 3777, "A", relayed verbatim by the bridge
session), on the planner's proposal after the 181 lane landed.
2026-12-04 11:27:53 -08:00
Anees Iqbal 63df44554b Runtime README: a Direct3D 11 plane's own-pass reads are expected near zero, not verified
The known-gaps entry for a Direct3D 11 plane read as an attachment of its own pass (1baee4fb75)
gains how often that happens: expected near zero for decoded video, not verified. The one count
on file is the consumer's 93 s Windows desktop boot on the Intel UHD 630 (rt at 865592b96b), whose
plane-pass diagnostic counted no render pass over a plane in any shape; that boot drew two video
pictures, so it bounds desktop use, not playback. On a device with the attachment feedback loop
each such draw now pays the counted shadow copy; the count bounds that cost until a boot that
plays video reports it.

Docs only; verified by reading the entry in place.
2026-12-04 11:21:24 -08:00
Anees Iqbal 9150343e26 Runtime: an attachment view of another format keeps the sampled usage where the image loops; a Direct3D 11 plane's import reads compatibleHandleTypes
An attachment view in a format other than its image's (a texture view of another format, a
texture whose views are extended, a surface plane under a texture of another format) was made with
the image's usage that the format holds, masked to the attachment usages and the feedback usage
(VkImageViewUsageCreateInfo). That mask dropped VK_IMAGE_USAGE_SAMPLED_BIT. A pass whose draw
reads such an attachment renders it in VK_IMAGE_LAYOUT_ATTACHMENT_FEEDBACK_LOOP_OPTIMAL_EXT, which
enables the feedback loop for it (Vulkan's "Non-Overlapping Access Between Resources"), and
VUID-VkRenderingAttachmentInfo-imageView-10780 asks such a view for the feedback usage, an
attachment usage, and the sampled or input attachment usage. The view now keeps the sampled usage
where it keeps the feedback usage; elsewhere its mask is as before. Not Windows-only: any device
with the attachment feedback loop.

Red, then green, under the Khronos validation layer 1.4.363.0 on the Radeon 780M (RADV PHOENIX,
Mesa 26.2.6, VK_EXT_attachment_feedback_loop_layout present), the same tests in both:
- red, this tree without the attachment view change (job m3-max-86610, archive built in job
  m3-max-86606): view_loop_reads and d3d11_reads both fail, two
  VUID-VkRenderingAttachmentInfo-imageView-10780 each ("imageLayout is
  VK_IMAGE_LAYOUT_ATTACHMENT_FEEDBACK_LOOP_OPTIMAL_EXT, but image view usage is
  COLOR_ATTACHMENT|ATTACHMENT_FEEDBACK_LOOP"): the RGBA8Unorm_sRGB view, and the R16Uint plane under
  an RG8Unorm texture made with the feedback usage;
- green, this tree (job m3-max-86609, archive built in job m3-max-86607 from a commit of this tree
  but the README): 2 of 2 pass, no message.
Lavapipe (llvmpipe, Mesa 26.2.4, which has the loop), this tree, job m3-max-86608: 81 tests run
(the attachment read, view, surface, plane and shadow tests), 81 passed, 948 skipped by the filter.

Tests: view_loop_reads (new, every device of a device cfg): an RGBA8Unorm render target made for
views of other formats and its RGBA8Unorm_sRGB view at an index; a pass over the view reads it at
its own pixel, through the loop on a loop device (2 loop reads, no copy), else its shadow (1 copy),
every texel exact. d3d11_reads' control, the plane made with the feedback usage beside, now covers
the chroma plane (R16Uint image, RG8Unorm texture) too. Its stand-in image is moved once to the
general layout by a command buffer of the test's own before its texture is made, as Direct3D 11
leaves its texture (the layout every acquire of a plane names), and its usage assertion compares
raw flags (ash's flags have no Debug here): both fix the previous commit's test, which did not
compile under a device cfg and, run, met VUID-vkCmdBeginRendering-pRenderingInfo-09592 against
its undefined stand-in (lavapipe job m3-max-86589, the 780M job m3-max-86595).

compatibleHandleTypes: the Direct3D 11 import's image format query
(VkPhysicalDeviceExternalImageFormatInfo of VK_EXTERNAL_MEMORY_HANDLE_TYPE_D3D11_TEXTURE_BIT) read
only IMPORTABLE. VUID-VkImageCreateInfo-pNext-00990 asks the handle types an image is made with to
be among the query's compatibleHandleTypes; a usage the query answers otherwise is now one the
import does not offer, so a plane none of whose usage it offers is Limit::NoImport, as before for
one not importable. Windows only: compiled by the Windows clippy named on landing; the Windows rt
leg (UHD 630) is main's to run.

The runtime README says the attachment view's usage, and the Direct3D 11 import's compatible
handle types. The runtime-sources pin is unchanged (3b7da9e9...); docs/REFUSALS.md regenerates
unchanged.
2026-12-04 11:19:10 -08:00
Anees Iqbal 1baee4fb75 Runtime: a Direct3D 11 plane takes only its bind flags' usage, never the attachment feedback loop's
A Direct3D 11 plane's image (Device::import_d3d11_surface, on Windows) took the usage its
texture's bind flags give (0x17 for RENDER_TARGET | SHADER_RESOURCE) and, on a device with the
attachment feedback loop, where its texture was a render target shaders read, also
VK_IMAGE_USAGE_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT (0x80017), the one usage Direct3D 11's description
has no counterpart for. Vulkan states no rule for an image over memory another API made with
other parameters than that API's (its rule for an import of Vulkan's own export is the same image,
VUID-VkMemoryDedicatedAllocateInfo-image-01876). The consumer's issue 181 (device lost on AMD's
legacy Windows driver while work touches imported planes, its logs counting 134 to 20,261 loop
reads over all attachments) points here; nothing shows this is 181's cause, and the lab's Windows
card (UHD 630) has no loop, so no lab device has run a plane made with the loop usage.

The plane's image now takes exactly the usage its bind flags give, on every device: the import
asks no feedback usage and makes none. A draw that reads such a plane as an attachment of its own
pass takes the route rt already has for a surface plane whose image took no feedback usage
(Device::surface_texture): a copy into the plane's shadow, on a device with the loop as on one
without it. One form, no query added, nothing keyed. The cost: on a loop device such a draw pays a
counted copy (Metrics::attachment_read_copies), recorded in the runtime README's known gaps of
render encoders; the import's section and the attachment reads' copy paragraph say so.

How often a draw reads a plane it renders to, from a files read of the consumer (reims-vgpu
development 9889a815bb, read only): the consumer's own work over the planes is copies and clears
(render passes with no draw); the guest's render passes over a video plane are counted by its
boot diagnostics (rt-diag plane-passes) with no count on file, and no counter of the consumer's
splits the loop reads by planes. Not settled by the files; expected rare for decoded video.

Tests: d3d11_reads (new, every device of a device cfg): planes made as d3d11_plane_texture makes
them but for the import (no Direct3D 11 off Windows), an R8Unorm luma and an R16Uint chroma under
an RG8Unorm texture, of usage 0x17, read at their own pixel by draws of a pass over a view of each:
one copy into the shadow and no loop read, one plane submission, every texel exact; the control,
the luma with the feedback usage beside on a loop device, reads through the loop. The Direct3D 11
usage test (Windows) now imports under a render target shaders read and asserts the usage is the
bind flags' exactly, the textures not looped. Verified by the jobs named on landing.

The runtime-sources pin is unchanged (3b7da9e9...): no translator file moved. docs/REFUSALS.md
regenerates unchanged.
2026-12-04 11:19:10 -08:00
Anees Iqbal 1156d66df8 Runtime: a command buffer whose submission is a Managed copy-in counts no stage
A command buffer with nothing for the GPU that takes a Managed buffer's copy-in has the copy-in as
its submission and completes after it. Its retirement gives it one GPU time, at its queue's last end
or its kernel end, whichever is later, as Metal reports a command buffer with nothing for the GPU,
and it fed those same times to the runtime's stage metric. So the copy's whole GPU run was counted
in gpu_end_to_handler, with its steps and tail, the figure the round and the plays read as
completion latency. The perf audit found it on the gb-3090-r3 play on the RX 7900 XTX: 52 command
buffers over 16 ms. One copy-in it dumped was 274 MB and 38.8 ms of GPU time, about 7 GB/s (jobs
m3-max-86564, m3-max-86566). The copy itself is Metal's didModifyRange: point on a discrete GPU;
only its attribution was wrong.

The submit thread now marks such a command buffer as its group goes. For each copy-in that
Captured::take hands to a lead, the finished member with that lead's number gets
Gpu::copy_in_only, if it has nothing for the GPU. An empty command buffer has one segment, so it is
always among the finished. Retirement leaves a marked command buffer out of scheduled_to_gpu_start,
gpu_run and gpu_end_to_handler, and out of the behind, steps and tail sums that go with them. Its
commit_to_scheduled still counts. What the guest sees does not change: gpu_start_time and
gpu_end_time are still one time, computed as before. A command buffer with nothing for the GPU that
took no copy-in counts as before.

Why leave it out rather than count the copy-in's own timestamps as its run:
- runtime_command_buffer_gpu_nanos already counts the copy-in's run as the runtime's own, and its
  doc says that is no Metal command buffer's gpu_run.
- A member of a group sent member by member retires before the copy-ins of its submission, so its
  retirement could not read their timestamps without moving the copy-ins' retirement.
- gpu_run would then differ from the command buffer's own gpu_end_time - gpu_start_time, which
  stays Metal's answer.

Test: empty_commit_takes_named_ranges (tests/managed.rs) now asserts the stage counts the command
buffer added: [1, 0, 0, 0] where its one submission was the copy-in, [1, 1, 1, 1] otherwise. Its
existing assertions show the path ran: 256 bytes captured, one submission, one runtime command
buffer.

Red: at 6f6e322f16 (scratch; development plus the test alone), on lavapipe (llvmpipe, LLVM 23.1.1;
job m3-max-86583), the declared-buffer and no-effects-dispatch tests fail in the two-copy view, each
counting [1, 1, 1, 1]. 39 of the 41 selected tests passed and 2 failed.
Green: at e6bdfe999a (scratch; this tree on development), on lavapipe (job m3-max-86581), the
runtime's Managed, gpu_span and stage-histogram tests passed: 41 passed, 986 skipped (filtered).

Docs: the doc of Metrics::scheduled_to_gpu_start and the runtime README now name this exclusion.
runtime-sources.sha256 does not change, because no input of its fingerprint changed (pin-compute.py
reads 3b7da9e9).
2026-12-04 11:09:57 -08:00
Anees Iqbal 29933a21f9 Conformance ledger: the NVIDIA venue's half-texel-nans widened rows hold the RTX 5080's answer beside the RTX 3090's
What: the NVIDIA rows of half-texel-nans-r16f, -rg16f, -rgba16f, -r32f, -rg32f, -rgba32f and
-rg11b10f at case/words/widened list two answers, the RTX 3090's and the RTX 5080 Laptop GPU's, and
say which run each came from. The 5080 narrows a 32-bit texel to half as Metal does and differs from
Metal in NaN bits alone; the 3090 keeps a 32-bit texel's own bits through the half read, its existing
difference under native-half-conversion. The same module runs on both.

Why: pin X's round read the 5080's replay red on these 7 sites (m3-max-86484), against rows recorded
on the 3090; the 5080 replay was last run at pin T. Planner ruling: alternatives in the NVIDIA rows
if every differing word is a NaN on both sides.

Verified: the words of the 7 cases at a0db12ed89 on both cards (scratch probe, not committed: 3090
m3-max-86496, 5080 m3-max-86497), against Metal's recording of each case: the 5080 differs from
Metal in 9,644 widened words, every one a NaN in both answers, its counts equal to its replay's
(558, 1111, 2216, 641, 1279, 2559, 1280); the 3090 differs in 9,983, of which 1,193 in the three
32-bit cases are not a NaN on either side (a denormal for Metal's ±0, FLT_MAX for Metal's infinity,
1/3 unrounded), its existing rows' counts. The other 28 columns are equal on both cards.
2026-12-03 19:03:00 -08:00
Anees Iqbal 2a406a848e Conformance ledger: the XR families' extended-swizzles rows on the RX 7900 XTX, Iris Xe and NVIDIA venues; NVIDIA's render-then-sample-magnified-linear row goes
What: 132 rows, 44 for each card venue (RX 7900 XTX, Iris(R) Xe, NVIDIA), of extended-swizzles-bgra10xr
and -bgr10xr: the 44 sites the llvmpipe rows (58988c6b83) and the Apple M3 Max rows (35ca0e4606) hold,
each with its card's own answer and the llvmpipe row's cause: a sample past the edge through a
border address mode reads the device's border in code space, and a BGRA10_XR linear sample filters in
the fields' low 6 bits, the runtime's known gaps, not built (one parked fix row). The NVIDIA venue
covers the RTX 3090 and the RTX 5080 Laptop GPU, whose answers are equal at all 44 sites. The NVIDIA
row of render-then-sample-magnified-linear at case/sampled/texels goes: both NVIDIA cards now answer
Metal's texels there. The commit that made them match is not named (expected: the nearest pixel
sampler's texel centre, c99bf0c6c3; unaudited). docs/CONFORMANCE-COVERAGE.md is regenerated.

Why: pin X's short round read every card replay red on these lines (xtx m3-max-86478, iris 86482,
3090 86483, 5080 86484); at pin W the three card replays were green. main/ad recorded the llvmpipe
rows alone, and no merged check or pre-push set ran a card replay.

Verified: the answers are the four replays' own, at a0db12ed89. The card replays with these rows are
this pin's pre-push proof.
2026-12-03 18:59:00 -08:00
Anees Iqbal a0db12ed89 Pin X bless: the golden cells and the census differences by the commit that moved them
The bless commit c4bcc45c28 left its attribution pending on the M3's jobs. This commit carries it and changes
no file.

The authored compile census at the bless differs from pin W's in 162 cells (18 of them regressions), and none
is unexplained. Each attribution point was checked out on the M3 and its census blessed alone against its own
tree's table (m3-max-86314 over 17 points, m3-max-86420 splitting 27a6c1ebd3..e649629fde at 5 more), and the
tables were diffed in history order. Most points also move the artifacts_at product line, which is not counted
below. The last table equals the one c4bcc45c28 commits.
- 41438f2693, a depth cube's read by face samples its cube view: 9 cells from refused (IdentityDomains) to
  compiled.
- 58988c6b83, BGR10_XR and BGRA10_XR textures held as UNORM codes: 1520 artifacts move in 304 cases.
- The span ending at 43f22a5661 (8f69218029, the level-0 elements): 360 artifacts move in 72 cases.
- The span ending at c99bf0c6c3 (a nearest runtime pixel sampler keeps its texel centre): the same 360 cells
  move again, none back to its artifact before 43f22a5661.
- f514d6f283, a bicubic sample of a format with no bicubic treatment is the runtime's limit: 18 cells, 2 cases
  on 9 profiles, from compiled to not_supported{tooling_requirement:bicubic_texels}. The two public
  engine/bcx_rules cases bicubic-8-bit-normalized-and-srgb-sums-near-the-rounding-tie (63d0f152) and
  bicubic-rounding-of-random-float-and-srgb-texels (cbf5dd18) bind RGBA8Unorm_sRGB textures that their kernel
  samples through a bicubic constexpr sampler, which the runtime refuses at dispatch (Gap::BicubicTexels); the
  intended refusal, classified as the runtime's limit.
- 7948443887, object and mesh functions need the mesh extension's two stages and the two indirect draw features
  together: 135 cells in 15 cases change the MeshShading refusal's label to name every feature.
- 8a80dd27df, an object function reads its draw's group counts at an address: 90 of those cells go to
  compiled, and 45 change label.
- ecdce9a3b5, a mesh pipeline without an object function draws through a launcher task stage: 24 artifacts move
  in 6 cases.
- 07d9577c20, the mesh stages no longer require drawIndirectCount: 60 artifacts move and 15 cells change label.
- 8fb26059c7, aea7564c29, fbf7edb539, e649629fde, ee45758ba9, 5bfaa69869, f7c56cd4d2, 3e3deb25b9, 27a6c1ebd3,
  763caf0270, b01d5e529d and 970e710e4c move no cell.

The golden hash table moves from pin W's (865592b96b) to the blessed one by these commits. Each attribution
point was checked out on the M3 and blessed alone (m3-max-86313, and m3-max-86372 at c226c542b2, which takes
the place of f7c56cd4d2, whose library tests do not compile), and the tables were diffed in history order.
The last table equals the one c4bcc45c28 commits.
- ee45758ba9, SEMANTICS 2371, a sparse read through a sampler reads its texel: 2 rows added
  (a2_sparse_read_through's .ll and .air.ll).
- 41438f2693, SEMANTICS 2372: 30 cells in 2 rows (unk_read_depth_cube).
- 58988c6b83, SEMANTICS 2373: 10808 cells in 723 rows.
- 5bfaa69869 (SEMANTICS 2374): the semantics line alone.
- The span ending at 43f22a5661, SEMANTICS 2375: 3277 cells in 219 rows.
- The span ending at c99bf0c6c3, SEMANTICS 2376: 3277 cells in 219 rows, and the runtime-floor profile line.
- The span ending at c226c542b2 (SEMANTICS 2377) and 3e3deb25b9 (SEMANTICS 2378): the semantics line alone.
- e649629fde, SEMANTICS 2379, the identity domains lower object and mesh functions: 1212 cells in 82 rows.
- 763caf0270, SEMANTICS 2380: 8 rows added, and 15 profile lines.
- 8a80dd27df, SEMANTICS 2381: 282 cells in 32 rows.
- ecdce9a3b5 (SEMANTICS 2382): the semantics line alone.
- 07d9577c20, SEMANTICS 2383: 176 cells in 88 rows.
- 27a6c1ebd3, b01d5e529d and 970e710e4c move no cell.
In all, 19062 cell moves, and 10 rows added.
2026-12-03 18:30:39 -08:00
Anees Iqbal 303638b080 Conformance ledger: half-texel-nans' rows on KosmicKrisp; the runtime README's unexplained-rows bullet goes
What: 12 rows of venue Apple M3 Max for what KosmicKrisp (Mesa 26.3.1) answers in half-texel-nans:
- 9 rows of R16Float, RG16Float and RGBA16Float at a nearest sample, a read and a read through a
  sample (515, 1026 and 2045 elements): every differing element is a NaN in both answers, the
  device's NaN bits (rule 1), Metal's texel bits kept where the device answers 0x7e00.
- 3 rows of R32Float, RG32Float and RGBA32Float at a nearest sample (42, 85 and 171 elements):
  0x7bff in Metal's answer, 0x7c00 in the device's, a texel past 65504 that Metal saturates and the
  conversion takes to the infinity of its sign (PrecisionNote::HalfTexelConversion), as the other
  venues' rows at these sites record.
Each row names its notes and marks the cause of the move as expected, not verified: the device
converting in the shader rather than in its texture unit since the extended-range select
(58988c6b83) follows every float sample. docs/CONFORMANCE-COVERAGE.md is regenerated. The runtime
README's bullet listing these rows as seen and not explained goes: no KosmicKrisp replay row is
left unlisted.

Why: the planner ruled these rows, with no code change, on a counted compare of the words the case
reads at 41438f2693 and at 58988c6b83 (a scratch probe, not committed): 0 of 147,456 words differ
on lavapipe (86398), the RTX 3090 (86400) and the RX 7900 XTX (86401); on KosmicKrisp (86403,
86421) 11,056 differ, 10,758 NaN to NaN and 298 the single pair 0x7bff to 0x7c00. llvmpipe's
nearest-sample rows exceed its read rows by the same 42, 85 and 171 elements.

Verified: the rows' answers and first elements are KosmicKrisp's own, from a replay of the eight
cases at 4e7f66642e (m3-max-86425, an Apple M3 Max). The runtime-sources pin is unchanged.
2026-12-03 18:21:27 -08:00
Anees Iqbal 4e7f66642e Runtime README: the Mac host's unrecorded conformance rows are the 12 half-texel-nans rows alone
The XR families' 62 KosmicKrisp rows are recorded in known-gaps-rt.tsv by the commit before this
one (extended-swizzles 44, xr-blend, xr-gamut, xr-gradient and xr-masked 18), so the known-gaps
bullet that listed 74 rows seen and not explained now names the 12 half-texel-nans rows that stay
unrecorded for that venue.

Verified: the M3's KosmicKrisp replay with those rows (m3-max-86387, an Apple M3 Max) printed 12
unexpected lines, every one half-texel-nans. The runtime-sources pin is unchanged (README only).
2026-12-03 18:04:49 -08:00
Anees Iqbal 35ca0e4606 Conformance ledger: the XR families' rows on KosmicKrisp
What: 62 rows of venue Apple M3 Max for what KosmicKrisp (Mesa 26.3.1) answers in the XR
families, the same gaps the other venues' rows record:
- 18 rows of the device's blend of the codes (PrecisionNote::ExtendedRangeBlend and
  ExtendedRangeBlendWindow) and its resolve (DeviceRoundedResolve): xr-blend (4), xr-gamut (9),
  xr-gradient (3), xr-masked (2). The two premul blends differ from the other venues past the
  window (the largest difference 53,463 against 24,637), unexamined against Vulkan's clamp of a
  fixed-point source, as their rows say.
- 44 rows of extended-swizzles-bgra10xr and -bgr10xr, with the llvmpipe rows' cause: a sample
  past the edge through a border address mode reads the device's border in code space, and a
  BGRA10_XR linear sample filters in the fields' low 6 bits (the runtime's known gaps, not built).
docs/CONFORMANCE-COVERAGE.md is regenerated.

Why: the replay of KosmicKrisp at development (m3-max-86361) listed them as unlisted; the planner
ruled both families rows, the extended-swizzles fix a bug row of its own.

Verified: the answers are KosmicKrisp's own, from that replay. The replay of the whole ledger on
KosmicKrisp with these rows (m3-max-86387, an Apple M3 Max): 12 unexpected, every one
half-texel-nans (not these families), 0 of the 62.
2026-12-03 18:03:36 -08:00
Anees Iqbal d15b9922ad Multisample bytes test: a 16-bit depth cleared to 0.25 may hold either code nearest it; the KosmicKrisp gap line goes
The red on KosmicKrisp (Mesa 26.3.1) on the Apple M3 Max was the test's, not the driver's. The word
its region row read outside the region, 1048575232, is 0x3E7FFD00: code 16383 read as 16383/65535,
not 0x3E7FFFC0 as the gap line said. The split test's new row, the 4-sample Depth16Unorm cleared to
0.25 and read with no copy, reads it too (M3 leg job m3-max-86335 at 9e6ec32898, build
m3-max-86328):

  cleared, no copy, 8 x 8: 256 of 256 samples are not Metal's ... the words read: 0x3E7FFD00 x 256
  4 x 3 at (2, 1) of 8 x 8: 208 of 256 ... the words read: 0x3E7FFD00 x 208

So the device's clear converts 0.25 (16383.75 in codes) to 16383, and the copy's load and store keep
it exactly. Vulkan's "Conversion From Floating-Point to Normalized Fixed-Point" (3.10.2) returns
"one of the two unsigned binary integer values ... closest" (it should round to nearest), and the
test took only 16384. A sample the clear leaves now holds either code nearest 0.25 * 65535, each
still read within 1e-7 of its code; inside units stay exact. Metal's own code for this clear is not
recorded.

The runtime README's KosmicKrisp bullet in the known gaps of blit encoders (353bf003e8) described a
driver fault that is not one, and goes. The module docs' list items no longer open with a link
followed by a colon, which clippy under --cfg m2v_gpu and m2v_cpu_icd read as a link reference
definition (doc_nested_refdefs; job m3-max-86330 at 9e6ec32898).

Test and docs only: no version bump; the runtime-sources pin is unchanged (3b7da9e9...). Verified by
the jobs named on landing.
2026-12-03 17:53:47 -08:00
Anees Iqbal 2bc14c3443 Multisample bytes test: the 4-sample Depth16Unorm region row in a test of its own, beside the clear read with no copy
On KosmicKrisp (Mesa 26.3.1) on the Apple M3 Max the 4 x 3 Depth16Unorm region row fails (the
runtime README's known gaps of blit encoders), and since the M3 leg reads known gaps by exact test
name, that one row darkened the whole test there: its stencil rows, its whole-texture rows and the
128 x 128 all-codes row, which never ran on that device because the test stopped at the region row.

The row moves to every_device_reads_the_clear_of_a_multisample_16_bit_depth_alone_and_outside_a_region_copied_in,
beside a new row that clears the same 4-sample texture to 0.25 and reads every sample with no copy.
One run on the device tells which driver step leaves the outside samples' value: the clear (or the
fetch of a cleared image) if that row reads it too, the region's load and store if it reads a code.
Each device's rows now all run and print what the kernel read (M2V-READ: the count, the first, and
each distinct word read with its count) before any read is checked, so a failing row no longer hides
the rows after it.

Not widened: the clear's expectation stays code 16384, though Vulkan 3.10.2 also lets a device
convert 0.25 to 16383. Allowing it only outside the region needs the inside test bound apart
(several lines); the one-line form would also accept 16383 for an inside unit of value 16384, which
FragDepth's (c + 1/4) / 65535 does not allow.

Test only: no version bump; the runtime-sources pin is unchanged (3b7da9e9...). Verified by the jobs
named on landing: clippy plain and --cfg m2v_gpu, the rt suite on lavapipe, and one M3 leg.
2026-12-03 17:53:47 -08:00
Anees Iqbal bf519653bf Runtime README: the Mac host's conformance replay families not yet recorded, and a depth clear's conversion with no note
The M3's KosmicKrisp conformance replay at development c4bcc45c28 (job m3-max-86361) differs from
Metal's answers in 74 rows that known-gaps-rt.tsv does not list for that venue; it differed in none
at pin W (round 865592b96b). Three families: extended-swizzles of BGRA10_XR and BGR10_XR (44 rows),
the xr-blend, xr-gamut, xr-gradient and xr-masked cases (18), and half-texel-nans (12). The planner
ruled that pin X does not wait for them: the line says what is seen, not why, and the next pin
carries a fix or a recorded row with its cause per family.

A clear's depth conversion: KosmicKrisp clears a Depth16Unorm texture to 0.25 as code 16383 (M3
leg m3-max-86335: 0x3E7FFD00 = 16383/65535 on all 256 samples of a clear with no copy), which
Vulkan's fixed-point conversion allows; rounding to nearest gives 16384. No static note covers a
clear's conversion, so the README says so; none is built for this pin (planner). Docs only: no
version moves, and the runtime-sources pin is unchanged.
2026-12-03 17:50:35 -08:00
Anees Iqbal c4bcc45c28 Pin X bless: golden hashes, engine inventory, the mesh_simd printout, opened chains and the authored compile census
Blessed at 970e710e4c on the M3 (bless m3-max-86311: inventory, golden, printouts, link half and
opened chains each exit 0; census m3-max-86312, census-exit 0); development's tip 353bf003e8 adds
a README line alone, which moves none of these tables.

- golden_hashes.tsv and public_fixture_expectations_engine.tsv: the cells W..X moved (the
  attribution commit names each moving commit).
- air_input/mesh_simd.txt: the printout of the mesh branch's new fixture.
- opened_chains.txt: 28 contexts enable VK_EXT_mesh_shader with taskShader, meshShader and
  multiDrawIndirect (members +3, extensions +1); the two without the extension are unchanged.
- authored-compile.tsv: 322 rows (AUTHORED_COMPILE_CENSUS_VERSION 11), among them the two bicubic
  cases' 18 cells, compiled to not_supported{bicubic_texels}, and the mesh functions that now
  compile.
2026-12-03 17:37:45 -08:00
Anees Iqbal 353bf003e8 Runtime README: on KosmicKrisp the samples outside a region copied into a multisample Depth16Unorm texture do not keep their code
The Mac host's device leg (KosmicKrisp, Mesa 26.3.1, on the M3 Max) fails
tests::multisample_bytes' 4-sample Depth16Unorm part row since pin V (rounds at 133c992dad and
865592b96b, job m3-max-86090): 208 of 256 samples, exactly those outside the 4 x 3 region at
(2, 1), read 0x3E7FFFC0 (262143 / 2^20), which no 16-bit code gives (Vulkan 3.10.1: c / 65535;
16384 is 0x3E800080, 16383 0x3E7FFD00). Inside the region every code reads right, and the
whole-texture and stencil rows pass there.

The copy renders the region alone (rt blit/samples.rs: render area and scissor the region, the
depth loaded and stored); Vulkan's load and store operations update only values within the render
area (8.5 "Render Pass Load Operations", 8.6 "Render Pass Store Operations"), so the outside
samples keep the clear's code, as the RTX 3090, RX 7900 XTX, Iris Xe and lavapipe read them. A
files-only read (lane kkd16) found no path of ours that reads the outside samples in another
form: one OpImageFetch through one view reads inside and outside alike, and the copy-out reads
the region alone. Recorded as a known gap with no second form; which driver step leaves the
value (the clear, or the copy's load and store) is not isolated. Docs only: no version moves,
and the runtime-sources pin is unchanged.
2026-12-03 17:29:56 -08:00
Anees Iqbal 970e710e4c Runtime README: the XR branch's price says which cards measured before NoContraction
The line read as if the RTX 3090 and the RX 7900 XTX kept the map's operations uncontracted, a
per-card form. NoContraction is on every device (58988c6b83); those two cards' timings (85290,
85291) were taken before it, and all three cards' before the gather's nearest code. Docs only.
2026-12-03 17:22:50 -08:00
Anees Iqbal b01d5e529d Versions: ARTIFACT_FORMAT_VERSION 614 and RUNTIME_VERSION 2578 for the mesh pipeline
The mesh branch (devpolicy) bumped both past an older base; its rebase onto main/s3 and
then onto main/s4 collapsed them into the stack's own numbers (ARTIFACT 613 is the interface
deletions' 27a6c1ebd3, RUNTIME 2577 is s3's). Mesh changes the artifact encoding (its stage
facts and pipeline fields) and the runtime's behaviour (mesh states draw, the floor's mesh
features, a mesh draw under a past depth range refused as Viewport), so each takes the next
number. SEMANTICS 2383 is already past the stack's 2378. Stack staging only; no code moves.
2026-12-03 17:07:18 -08:00
Anees Iqbal 24dadff1ad Runtime README: on the RX 7900 XTX a mesh draw's cost is any task stage's, not the launcher's
The XTX's one-group launcher draw took 8 times a one-triangle vertex draw,
and the row could not say whether the launcher's shape or any task stage
costs it. The cost test's new row answers on the card: a one-group draw of
a state with an object function, whose task stage is the guest's
function, took 74,560 ns where the launcher's took 64,720 ns and the
triangle 7,920 ns. The known gap says so, and its XTX figures are now that
one run's: 8.2 times, and 1.39 times at M 256 against M 4 (221,120 and
159,280 ns; 2.39 ns a group).

Verified: RX 7900 XTX (RADV, Mesa 26.2.6), job 86149 at 50a3d29e17, carry
8840414fd2, mesh_costs_print_per_card unvalidated, medians of nine
command buffers.
2026-12-03 17:05:48 -08:00
Anees Iqbal e667052521 Runtime tests: the mesh cost test's doc comment wrapped at 100 columns
Comment only; no behaviour changes. Verified: cargo fmt --all.
2026-12-03 17:05:48 -08:00
Anees Iqbal df4d351048 Runtime tests: the mesh cost rows time a one-group draw of an object state too
On the RX 7900 XTX (RADV, Mesa 26.2.6, job 86024) a one-group mesh draw
through the launcher took 63,560 ns against a one-triangle vertex draw's
7,920 ns, 8.0 times; on the RTX 3090 it took 0.84 times. The row cannot
tell whether that cost is the launcher's shape or any task stage on that
driver. mesh_costs_print_per_card now also times a one-group draw of a
state with an object function (mesh_draws_object, 1 object thread), whose
task stage is the guest's function, not the launcher: printed as
"object 1 group N ns" beside the launcher's row. Nothing asserts on time.

Verified: see the job named in the handover.
2026-12-03 17:05:48 -08:00
Anees Iqbal 6b0f0ab72d Runtime: a mesh draw under a viewport depth range past [0, 1] is refused as Viewport
The handover from pr2627-c: the second of it and devpolicy to land carries
the mesh rule, the fold where the mesh function writes no per-primitive
viewport index and a typed refusal where it does, and until that fold
exists a mesh draw under a past range is refused as Viewport, under the
same row. pr2627-c landed first (1d6054b189), and its twin (d2a12e948c, in
the stack this branch now sits on) folds the range into a vertex function
alone, so a mesh draw has nothing to fold.

The encoder's route now answers DrawKind::Viewport for a mesh state where
the range shows, as it does under the Clamp mode, so a mesh draw reads its
refusal from the one field every draw reads and no twin is attempted. A
mesh state lowers none of its functions apart from its compile, so its
fragment function from AIR is taken to read [[position]]'s z or w
(Content::reads_position_depth, set when the content is made): its draws
under such a range are refused with or without a depth attachment, and a
fragment function the consumer compiled answers its own.

No red commit: rebased onto the twin, RenderPipelineState::folded already
answered Viewport for a state with no vertex descriptor (its let-else), so
a mesh draw was refused at bind_content before this change. The route
makes it the draw's one check and keeps the twin out of the mesh path.

Docs: set_viewport, DrawKind::Viewport, and the runtime README's twin
known gap and Gap::Draw list. docs/REFUSALS.md regenerated (no change
expected: the refusal's sites are the same). runtime-sources.sha256
re-pinned.

Test: tests::mesh_state::on_device::
a_mesh_draw_under_a_depth_range_past_0_1_is_refused draws a mesh state of
mesh_draws under [0, 2] (refused, Gap::Draw Viewport) and under [0, 1]
(drawn, one launch counted).

Verified: see the job named in the handover.
2026-12-03 17:05:48 -08:00
Anees Iqbal 1382f98b52 Runtime README: the mesh cases as compared on each GPU, and the form's costs
The mesh known gap said the lowering had never been compared with Metal
on a GPU. It now says what was: the conformance suite's 44 cases of mesh
pipelines, recorded on an M3 Max under macOS 27.0.1, replayed on lavapipe
(Mesa 26.2.4), the RTX 5080 Laptop (NVIDIA 615.71.09), the RTX 3090
(NVIDIA 620.70.06), the Radeon 780M and the RX 7900 XTX (RADV, Mesa
26.2.6), each answering 9 exact, 5 announced, 29 refused as the ledger
lists and 1 divergent: mesh-barrier-readers, whose fragment-stage
barriers the M3 answers outside its family's supported set (feature set
tables, note 3), so the header's order is kept. It names the device test
that draws an object grid past the task total in pieces, and the venues
it ran on, since no conformance case draws one.

The planner asked for the launcher's cost and the idle invocations' cost
at the state's maximum M as known-gap rows, on the RTX 3090 and the RX
7900 XTX, with the ratios: the 3090's one-group launcher draw is 0.84
times a one-triangle vertex draw and its 65,535 groups of 4 threads 1.01
times as long at M 128 as at M 4; the XTX's are 8.0 times and 1.39 times
(at M 256). The sentence that no replay stream or live session used one
is dropped: the bullet already says so.

Verified (jobs, carry b11f9ecd63 built at 19bf5ff006):
- lavapipe, mr6 85972: 9 exact, 5 announced, 1 divergent, 29 refused;
  ledger drift 0; the pieces test passed.
- RTX 5080 Laptop 85920, RTX 3090 85935, Radeon 780M 85955 (carry
  999b3e4cdf at 26d0420861): 9, 5, 1, 29 each; RX 7900 XTX 86024: the
  same.
- Pieces test (4,194,305 object threadgroups, one counted in pieces,
  nothing drawn whole) with the validation layer: RTX 3090 86010, Radeon
  780M 86017, RX 7900 XTX 86024.
- Costs, mesh_costs_print_per_card unvalidated, medians of nine command
  buffers: RTX 3090 85935, RX 7900 XTX 86024.
2026-12-03 17:05:48 -08:00
Anees Iqbal ff6e54b4ae Conformance ledger: the mesh rows on the RX 7900 XTX
The RX 7900 XTX (RADV, Mesa 26.2.6) replayed the 44 cases of mesh
pipelines at 19bf5ff006 (job 86024, carry b11f9ecd63) and answered as the
RTX 5080 Laptop, the RTX 3090 and the Radeon 780M did: 9 exact, 5
announced, 1 divergent, 29 refused. Its 25 lines of drift are exactly the
rows those venues carry, so the same rows are written for the venue
"RX 7900 XTX": the ThreadgroupMemoryLength and IndirectObjectGrid
refusals, the two CommandTypes cases, the eight divergent sites of
mesh-barrier-readers with the reason quoting the header and note 3 of
the feature set tables, and the twelve mesh-limits cases refused at
maxTotalThreadsPerThreadgroup.

docs/CONFORMANCE-COVERAGE.md regenerated (coverage.py).

Verified: job 86024 printed the 25 lines these rows answer, and the same
job's device tests passed 8 of 8 with the validation layer. A replay of
this commit on the card, to show no drift, follows.
2026-12-03 17:05:48 -08:00