Two authored cases over engine/int24_products, 12 threads, out filled with 0xAB: operands in the
range the Metal Shading Language specification gives mul24 (section 6.4, after Table 6.2:
[0, 2^24 - 1] unsigned, [-2^23, 2^23 - 1] signed), and operands outside it, each beside small
in-range partners, where the specification calls the product implementation-defined. The addends
are full 32-bit words in both. Installed with corpus-case-check (m3-max-82243) and qualified on
Metal on the Apple M3 Max, three executions each (m3-max-82247).
Metal's outputs against the kernel computed on the CPU, word for word (480 words each):
- in range: equal to the 32-bit product of the operands, and equal to the product of their low
24 bits (zero-extended unsigned, sign-extended signed), which agree there;
- outside the range: equal to the product of the operands' low 24 bits at all 480 words; the
32-bit product of the whole operands differs at 386 of them.
scripts/qualify-public-cases runs both on lavapipe against those rows. They are red until the
family is lowered: today the translator refuses the kernel as UnknownIntrinsic.
Four authored cases over engine/split_store_tail, 16 threads at two a row over 8 rows, out
filled with 0xCD: sst_split at rows of 7, 6 and 5 floats (each row's second thread writes
three, two or one float after its first) and sst_block at rows of 7 (the four in one block,
nothing where the row does not hold them). A row starts at 4w bytes times its index, so the
first word of a run of four sits at every residue of 16 across the rows. Installed with
corpus-case-check (m3-max-80423) and qualified on Metal on the Apple M3 Max, three executions
each (m3-max-80428). Each Metal output equals the MSL's stores computed on the CPU, byte for
byte (output sha256 d875b981, 2f994d06, 1a84d360, 21ceb16b).
scripts/qualify-public-cases now runs the four on lavapipe against those rows. At the branch's
last commit their Vulkan runs match Metal on lavapipe (m3-max-80560), the AMD Radeon RX 7900 XTX
(m3-max-80568) and the AMD Radeon 780M (m3-max-80570). Not run on an Intel card.
scripts/qualify-public-cases runs a named list of the owned public cases on
lavapipe against their committed Metal observations. It now names lane
fcfloat's 15 cases (engine/fc_float_gate: a kernel's gated argument and a
fragment's gated sample mask; engine/fc_half_gate: the sample mask), so CI
keeps Metal's answer for a float or half predicate: present at 1.5, -0.0
and a quiet NaN, absent at +0.0 and unsupplied (Apple M3 Max, jobs
m3-max-75714, 75716, 75726). The lane's candidate ran these 15 on lavapipe
at 7de0a8c8bb's tree plus the half fixture: 15/15 Match, every slot current
(job m3-max-75728). The script itself runs in the gate at the pin tip.
scripts/qualify-public-cases runs case 884ad7d75a22 against its committed Metal row. Run by hand
under the same operator environment (ci-lavapipe, job m3-max-73980 on lavapipe 23.1.1): Match,
candidate output 7d65bff73d82, Metal's bytes.
visible-table-entry-by-thread-calls-add-mul-null-sub (af884d65cb): twelve
threads of the owned visible_table_dispatch each call entry tid % 4 of a
table of four, linking table_add, table_mul and table_sub from the owned
module visible_table_ops, entry 2 left null. Installed with
corpus-case-check and qualified on Metal on the M3 in the primary reference
environment (m3-max-69730: three runs, 3, 3, 0xfffffffd, 0, 7, 15,
0xfffffffd, 4, 11, 27, 0xfffffffd, 8).
The public qualification (CI's lavapipe step) now also runs it and the
public table-query case 3a8f75e182, which the runtime refused before.
The ruling Q3: the validation executor runs each case in one context,
which enables every robustness feature its device states. Its second
leg (every robustness feature off, the ID@engine+robustness-off slots)
measured an encoding that metal2vulkan-runtime never runs, since the
runtime's floor fixes the robustness it enables. The tier table keeps
both of its compiles: they are translator coverage of what the runtime
ships, so coverage::Leg stays as the tier table's type alone.
Deleted:
- the executor's leg: corpus-vulkan's and corpus-moltenvk's
--robustness-off, the device worker's leg, engine_slot's leg (an engine
slot is ID@engine or ID@engine@P; an ID@engine+robustness-off is no
engine slot), the enable lists' leg (engine_list enables what the
description states), and the leg in a row's environment and census
(ExecutedCensus.leg, environment.robustness.leg) with its validation;
- the batch's legs: corpus-vulkan-batch takes no --leg. Its passes are
Pass::Engine and Pass::Metal, so a done-list line names "engine" where
it named "stated", and a log is CASE.engine.txt. Its report lines carry
no leg= field, and batch-slowest names pass=engine;
- the authored compile census's robustness-off profiles: a profile is
its committed stem (ProfileStem, which was ProfileLeg); a label with a
"+" names no profile. corpus/authored-compile.tsv loses its 9
+robustness-off columns mechanically. Every other cell stays, and the
reader takes the new layout in this commit. The rows are re-blessed
at the next named pin. the_committed_expectations_parse holds the file
to what a bless renders. No test is expected to read red until the
bless, since no kept cell changed (unaudited until development's census
runs);
- C3's legs: a venue lists no legs and has one slot (c3-venues.json
drops its legs fields). c3-reviewed.json drops the 12 observations
recorded in robustness-off slots;
- the committed rows of the +robustness-off slots: 193 rows and
refusals out of corpus/observations, which empties and removes 44
shards. "leg":"stated" is stripped from the remaining rows' census and
environment;
- scripts/qualify-public-cases' second run per case, and
scripts/rerecord-venue's --leg; docs/VALIDATION.md's robustness legs.
corpus-triage's usage, corpus-status' --c3 help and the census's file
comment say "profile" where they said "profile-leg".
Verified: cargo fmt. The compile gate follows as a potluck job.
Rolls up everything since 43c46ac8 into a single commit. Its tree is
identical to the tree of private master at
b3c77f2d2b20a432be10591a2129547c10b1c24b.
- A Cargo workspace of five crates under crates/: metal2vulkan (the
translator and the metal2vulkan command), metal2vulkan-runtime (the
Metal API on Vulkan), metal2vulkan-air (the AIR front end),
metal2vulkan-validation and metal2vulkan-devtools.
- Dual license: GPL-2.0-or-later OR LGPL-3.0-or-later.
- docs/: API, architecture, fast paths, how-to, Metal coverage,
refusals, runtime porting and validation guides.
Private-Commit: b3c77f2d2b20a432be10591a2129547c10b1c24b