Files
metal2vulkan/scripts
Anees Iqbal 374061b156 Validation: the MoltenVK MSL helper and corpus-pipeline's .cfg writer are deleted
The MoltenVK MSL helper converted a kept module to MSL as MoltenVK
1.4.1 converts it on the moltenvk-m3 device. It had three parts:
- scripts/moltenvk-msl-helper/build, which built helper.cpp against
  SPIRV-Cross at MoltenVK's commit;
- msl_portability::moltenvk, which derived the helper's configuration
  from the pipeline layout;
- corpus-pipeline --keep-modules, which wrote that configuration beside
  each kept module as <hash>.<stage>.<variant>.cfg, or .cfg.err.
Only the helper read a .cfg. No check, CI job or script ran the helper,
and the MoltenVK backend it served is gone. So the module, its tests,
helper.cpp, the build script and the .cfg writer go. --keep-modules
still writes each stage's .spv and its .json (entry point,
specialization layout, strategy census).

The fixtures under fixtures/public/msl_portability/ stay: the
translator's forwarding tests (spirv/testing/forwarding.rs) read them.

The engine's linked translation returned a translated module's words
with the pipeline layout link gave it, "what msl_portability::moltenvk
configures MoltenVK's conversion from". No caller read that output, so
these go:
- translate_new_linked and translate_row_linked. translate_new and
  translate_row validate directly.
- translate_with, which had no caller. specialization::attempt's doc
  now names translate_unvalidated, which is what it runs.
- PendingL3::layout. validated and PendingL3::validate now return the
  Attempt alone.
- Attempt::settle_l3's bool, which no caller reads now.

Not deleted, because of the macOS grep: corpus-pipeline (L4 driver
acceptance, --device-type gpu) still opens a Vulkan device on macOS,
which is MoltenVK there. acceptance::metal_report parses MoltenVK's
reports for it. So VulkanContext's loader-word restore (loader_word.rs
and clippy.toml's list), MoltenVK's withheld diagnostics (device.rs)
and coverage's MoltenVK host class serve a live path, and stay.

Verified: cargo fmt; no file names msl_portability's module,
moltenvk-msl-helper, translate_new_linked, translate_row_linked or
translate_with (git grep). The compile gate follows as a potluck job.
2026-11-20 22:19:52 -08:00
..