5 Commits
Author SHA1 Message Date
Anees Iqbal c1bcce40f5 Validation: the drm-shim recipe goes, with its image, its wrapper and its test
The runtime does not open the drm-shim devices as a guest's device (step 0's P2, ruled: the shim
has no venue), so the corpus-pipeline kernel rows that now run through the runtime have no
drm-shim sweep, and nothing else used the recipe. Gone: scripts/drm-shim.Dockerfile,
scripts/drm-shim-exec, scripts/linux-gate's `--recipe drm-shim` with its `--driver` and `--chip`
(and `--recipe` itself, which had only `gate` left), scripts/linux-gate-vulkan's shim ICD block,
and the integration test tests/integration/drm_shim.rs. Driver acceptance on RADV, ANV and NVIDIA
stays on the real cards.

Search at this commit: `git grep -n -i -E 'drm.?shim|M2V_DRM_SHIM'` gives 0 lines; `git grep -n
-e '--recipe'` gives 0. The consumer has no copy of these scripts (they are not part of a
published crate).

(cherry picked from commit 59693588b00825ed312beb67841fe5b8352a6508)
2026-11-22 07:37:15 -08:00
Anees Iqbal 072eaaba18 profiles: delete amd-rdna3-radv, whose every cell is the Radeon 780M's
What: the RX 7900 XTX capture amd-rdna3-radv derives the same translation fingerprint as
amd-780m-radv: the Radeon 780M and the RX 7900 XTX under one RADV build. So every golden and
census cell of the profile equals the 780M's (dff8c48964). Nothing outside the translator
derives from it: no runtime, conformance, harness or devtools use. Under the planner's rule,
such a profile is deleted.
- The profile file, its regen_device_profiles.py source entry, and its README row and venue
  sentence go. profiles/README.md now names amd-780m-hawkpoint-radv alone as the capture no
  venue runs on.
- Its two opened-chains contexts go from opened_chains.txt (device and restricted).
- The shared-fingerprint pair dff8c48964 added to fingerprints_distinguish_committed_profiles
  goes, with its comment.
- Rows of tables that already hold amd-780m-radv lose the rdna3 row:
  description.rs COMMITTED, profile.rs the_profile_holds_the_largest_whole_point_size (8191 on
  both), subgroup.rs GOLDEN and its own-limits table (equal rows), fetch/tests.rs,
  engine_device_replay.rs, engine_lane_reads.rs and engine_widest_pin.rs (equal rows).
- Every other test stem "amd-rdna3-radv" is now "amd-780m-radv": 43 translator files (42 test files and metal/format/word.rs's test module),
  plus validation's c3, worker/device and candidate/platform/enables tests (one line there,
  depth_range_unrestricted_is_enabled_where_the_device_lists_it, which the 780M lists too).
  The two descriptions are equal in everything a translation reads (the fingerprint test's own
  equality check), so no asserted value changes. Comments that read "the committed RDNA3
  description" stay true: the 780M is RDNA3.
- corpus/observations/vulkan/shard_056.jsonl drops the row recorded under the old gpuinfo
  profile, which is gone: environment amd-780m-radv@engine@amd-rdna3-radv, case
  atomics-past-a-device-buffer (case_id fdbf7c9b9e09e38aff99a04768f8375ac8e7a604dfcacf21e236b2d2482b3896,
  air e1382758476864b76c1eab9d944b033c016808309fe44581fe38f539f23d67e5), executor
  vulkan-engine-v131. The shard keeps the same case's other row.
- cutover/c1-reviewed.json's note names the profiles that remain in the bucket:
  intel-irisxe-anv and nvidia-rtx50-linux.
- scripts/drm-shim.Dockerfile no longer lists the profile among the 26.2.3 captures. The example
  in scripts/linux-gate uses --chip rembrandt with amd-rdna2-apu-radv (the Radeon 680M, RADV
  REMBRANDT).

Left to the next pin's bless: three generated tables still name the profile, and only a bless
drops their columns. They are tests/golden_hashes.tsv (its profile row and column),
tests/public_fixture_expectations_engine.tsv (its column) and corpus/authored-compile.tsv (its
census column).

Search: `git grep -n amd-rdna3-radv` gave 118 hits at dff8c48964. After this commit it gives
4, the three tables above. `git grep -n amd-rdna3-radv` in the consumer's checkout gives 0.

Verified: m3-max-65582 at the series' tip 0f732c1141: fmt, signatures, clippy plain, --cfg m2v_gpu
and --cfg m2v_cpu_icd, workspace Rustdoc -D warnings and the device-profile pyunit green;
conformance 1025/1025; validation 1330/1331 and product 4015/4026 (24 skipped), every red a
bless item: the golden table (1861 rdna3 cells gone), ten fixture-inventory tests on
tests/public_fixture_expectations_engine.tsv (the column's drop; every one of its 3499 rows
holds the same cell under amd-rdna3-radv as under amd-780m-radv), and the opened-chains pin
left by the enables move. bless_engine_inventory needs metal-as, so that bless is the pin's,
on a Mac.
2026-11-21 19:40:54 -08:00
Anees Iqbal b90e0565da The floor: from_queries refuses a push window below 256 bytes, the runtime's floor requires 8 fragment outputs, and runtime-floor replaces the profiles below it
What: Device::from_queries refuses a description whose maxPushConstantsSize is below the 256
bytes every stage's push window is lowered for, with a typed Unsupported{PushWindow} naming the
MaxPushConstantsSize limit (crates/metal2vulkan/src/device/derive.rs, the floor checks of
from_queries). The runtime's floor (metal2vulkan-runtime's floor list) requires
maxFragmentOutputAttachments >= 8. All 15 committed device profiles report 8, and so does every
matrix card.

The committed profile set keeps only devices at or above the floor:
- roadmap-2022 and lunarg-desktop-baseline-2023 are deleted;
- vk12-floor and swiftshader move to profiles/below-floor/, inputs of the from_queries refusal
  test only;
- runtime-floor, derived from the runtime's floor by scripts/regen-device-profiles and held
  equal to it by a test, is the floor every test compiles on.

A test of a below-floor form now runs on runtime-floor without the feature that form stands in
for, labelled "below the runtime's floor" (pipeline::testing::profile_without, PROFILE_F,
device_f, FORMATLESS_FLOOR). The validation tests name runtime-floor, or derive the device they
need from it (no tessellation, no formatless writes, robustImageAccess alone, no device
addresses).

Why: the runtime refuses every device below its floor, so translating for those profiles tested
forms no device the runtime opens can ask for. A push window below 256 bytes cannot hold what
the lowering puts there.

Consumer check: no public item of a published crate is deleted. The one removed constant,
FORMATLESS_FLOOR's old value, is in the crate-private pipeline::testing.

Not in this change, re-blessed on development: the golden hashes table
(tests::golden_hashes) and the public fixture expectations (tests::public_fixtures_engine). The
runtime-sources pin (candidate::engine::artifact) follows from the test run at this tree.

Verified: cargo fmt. The suites, clippy and the CPU-ICD run are potluck jobs on this tree, named
when the branch is handed over.
2026-11-20 16:35:52 -08:00
Anees Iqbal 1d09ff5d10 scripts: the gate scripts match their lists in the shell, not through a piped grep -q under pipefail
scripts/linux-gate-policy's overlaps() piped printf into `grep -qxF` under `set -euo pipefail`.
bash line-buffers its stdout, so grep can exit at its first match while printf is still writing;
printf then ends with SIGPIPE, pipefail gives the pipeline its status, and a match reads false.
The overlap went unseen and the policy accepted a scratch directory inside the checkout:
linux_gate_policy::a_scratch_directory_may_not_overlap_a_protected_path failed so on a loaded
msi (53490 at b14260ea79) and passed alone (53581). overlaps() now matches the lists with a
`[[ ... == *...* ]]` test. scripts/linux-gate's bsdtar check had the same shape
(`tar --version | grep -q bsdtar`) and is matched the same way.

A new integration test, no_quiet_grep_under_pipefail, reads every script under scripts/ that
sets pipefail and fails on a quiet grep after a single pipe, with a unit test of its detector.
Verified: see the check job named in the landing.
2026-11-19 11:19:24 -08:00
Anees Iqbal 13b279df1b Squash 11203 commits of translator, runtime, and validation work
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
2026-10-11 20:09:13 +03:00