Commit Graph
17 Commits
Author SHA1 Message Date
Anees Iqbal 6267d10c6f CI: clippy of the published crates and devtools for Windows, on Linux
x86_64-pc-windows-gnullvm (the primary Windows target) and x86_64-pc-windows-msvc, with
--all-targets --all-features and warnings denied. Clippy links nothing, so the Linux job
needs only the two targets' standard libraries. AGENTS.md's CI paragraph names the step.

Verified: the same clippy lines ran in potluck jobs on Linux (msi) for both targets.
2026-11-15 05:49:35 -08:00
Anees Iqbal 8e65408e85 Resolve the runtime's broken private intra-doc links, and lower its ceiling to 0
CI's private intra-doc link step reported 148 for metal2vulkan-runtime on
macOS and 149 on Linux at 3b176b8bd4, against a ceiling of 70, so the step
was red on both runners:

- 119 links whose explicit target is the item their label already
  resolves to (`redundant_explicit_links`): 73 from the `degradations!`
  macro, one per precision-note kind's `PrecisionNote::<note>` link, and
  46 written by hand. The target is dropped; the rendered link is the same.
- 17 links to `RenderCommandEncoder::<method>` for methods that are the
  lowering's (`RenderLowering`) since the program's encoder was put in
  front of it: assemble, begin_current_draws, begin_inline_split,
  finish_replay, flush_inline, gathering, group_turn, inline_begin (2),
  inline_split, plan_one, replaying, settle_draw, settle_draws,
  snapshot_fallback, snapshot_wanted and watched. Each links
  `RenderLowering::<method>`.
- render.rs: `check_tile` (a `ShapeInputs` method) linked
  `Self::kept_imageblock_bytes`, and `kept_imageblock_bytes` (a
  `RenderLowering` method) linked `Self::pass_sample_length`; each links
  the other type's method by its type. The `plain_drawn` field linked its
  sibling field `replay_plain` by its bare name; it links `Self::replay_plain`.
- scheduler: `Order::behind` is `Order::is_behind`.
- event_timeline.rs: `Signal::after` is the `after` field of the
  `Signal::Kept` variant.
- pipeline/libraries.rs: `GraphicsContent` is linked by its path in the
  sibling module (`super::graphics`).
- Items built for tests alone are named without a link, as the translator's
  `DIRECT_ARGUMENTS_FROM_AIR` is: `Allocations::limit_to`,
  `patched_slot_uses` and `state_locks`.
- exit_guard.rs: the module docs describe both exits, but `end_at_once`
  and `AT_ONCE_NOTICE` are built on Linux with the GNU C library alone and
  `BOUND` and `MAKING_BOUND` everywhere else, so each runner failed on the
  other's; the four are named without a link.

Docs only; no behaviour changes, so no version moves. The runtime-sources
pin moves with these files; the stack re-pins it.

Verified (potluck): the counts before are from `RUSTDOCFLAGS=-Dwarnings
cargo doc -p metal2vulkan-runtime --all-features --no-deps
--document-private-items` on the M3 (macOS 27) and msi-laptop (Linux).

(cherry picked from commit b4d88f87c6d6fa4c1dfc3fa9774b2fc540c6b297)
2026-11-05 17:12:18 -08:00
Anees Iqbal 4515a9ab3b Resolve the AIR crate's last private intra-doc links, and lower its ceiling to 0
CI's private intra-doc link step reported 3 for metal2vulkan-air at
3b176b8bd4 (macOS and Linux alike), against a ceiling of 3:

- abi/keys.rs: `Key::parse` linked `KEYS`, the spelling table its test
  holds the matches against, which is built for tests alone; it is named
  without a link.
- abi/core_image.rs and abi/visible.rs: two `AbiError` links carried an
  explicit target the label already resolves to; the target is dropped.

Docs only; no behaviour changes, so no version moves.

Verified (potluck, M3 and msi-laptop): `RUSTDOCFLAGS=-Dwarnings cargo doc
-p metal2vulkan-air --all-features --no-deps --document-private-items`
reported 3 before; the count after this commit is in the next job's log.

(cherry picked from commit dde8a1cd07867b6fa9f71ac6c9cf8a7442f85b11)
2026-11-05 17:11:57 -08:00
Anees Iqbal 64b4e42d75 Build on nightly-2026-11-03 with rustc's parallel front end, kache and incremental builds
The owner asked for a nightly toolchain, -Zthreads, kache 2.0 with its incremental cache, and
Rust's incremental compilation on.

- rust-toolchain.toml pins nightly-2026-11-03 (rustc 1.101.0-nightly 1c3a65069), dated so every
  machine runs one rustc, clippy and rustfmt. The published crates keep rust-version 1.98, which
  this build no longer checks by itself (clippy's incompatible_msrv still flags newer std items).
- .cargo/config.toml passes -Zthreads=0 (a thread per core) through Cargo's profile rustflags,
  which add to RUSTFLAGS instead of being replaced by it, so `--cfg m2v_gpu` lanes and CI's
  -Dwarnings keep it.
- scripts/rustc-wrapper hands each compile to kache where kache is on PATH outside CI, and to
  rustc otherwise; `RUSTC_WRAPPER=` (empty) builds without it.
- CARGO_INCREMENTAL=0 is gone from scripts/device-lane, AGENTS.md and CONTRIBUTING.md.
- CI installs the toolchain the file names; both Dockerfiles take the same nightly.

What the nightly asked of the code:
- Its standard library containers take more trait-solver levels (Box -> BoxRaw, RawVec ->
  PhantomData), so proving a RenderCommandEncoder `Send` from a program's crate ran past the
  default recursion limit (tests/consumer_auto_traits.rs failed, a future-incompat lint that will
  become an error). The encoder now holds its own lowering in `OwnLowering`, whose `Send` impl is
  written out over a compile-time proof that `RenderLowering` is `Send`, as `LoweringSlot` already
  was. The runtime crate's own proofs need recursion_limit 256.
- New clippy lints: needless_range_loop, single_element_loop, new_instead_of_clear (a false
  positive on a moved-from Vec: the part's segments are now taken explicitly),
  needless_borrows_for_generic_args, redundant_closure, unnecessary_lazy_evaluations,
  manual_range_patterns; AtomicU64::fetch_update is deprecated for try_update (present in 1.98).
- Cargo warns that `homepage` equals `repository`: homepage removed from the manifests.
- nightly rustfmt formats ir_id! invocations one argument per line.

Verified on the M3 Max: `cargo clippy --workspace --all-targets --all-features -- -D warnings`
clean on the nightly; `cargo build -v` shows -Zthreads on every rustc invocation and
scripts/rustc-wrapper in front of each.
2026-11-03 23:41:19 -08:00
Anees Iqbal 7f3f0a2f36 Mend the private intra-doc links the round's deletions broke, and lower the runtime's ceiling
One work packet, landed as 2 commits (a206cc110f..951b13189a on archive/development-linear-2026-10-28), in order:

* Mend the private intra-doc links the round's deletions broke, and lower the runtime's ceiling

CI's private intra-doc link step holds each crate to the diagnostics
rustdoc --document-private-items still reports. At 7ec539ceb2 the
translator reported 6 against its ceiling of 0 and the runtime 75 against
73, links to items this round deleted or narrowed:

- the translator: DeviceProfile::edit (built for tests alone), the
  bicubic Span (gone; the packed line caller is gone with it),
  word_filters and Linear::words (gone with the device sampler), and
  StageInFetch::of (in pipeline::stage_io, linked by its path);
- the runtime: an unescaped [0,1] in ycbcr_device's quoted spec text,
  LARGE_SURFACE_TEXELS, Device::inform and Needs::AnyOf linked by their
  paths, and DIRECT_ARGUMENTS_FROM_AIR (built for device tests alone)
  named without a link.

Docs only; no behaviour changes, so no version moves.

Verified: --document-private-items with -Dwarnings reports 0 for the
translator and 70 for the runtime (the ceiling now says 70); the public
rustdoc build of both crates with -D warnings is clean.

* Re-pin the runtime sources at the landing tip

The landed packet changed a runtime-sources input, so the committed digest no

longer described the sources and `the_runtime_sources_are_the_committed_ones`

would fail. Recomputed over the same inputs and committed by land-pkt.sh.
2026-10-28 17:24:23 +02:00
Anees Iqbal f834dd21d0 Resolve the last private doc links in two crates, and the fourth over-claim
The steps this packet landed as, in order:
- Close the two ragged lines the move comments' rewording left

Content: the tree of `development` at 0d7bc7c25f, unchanged.
2026-10-26 13:19:19 +02:00
Anees Iqbal 07be4d219a Resolve the conformance crate's broken private doc links
The steps this packet landed as, in order:
- Say what the clipped-source move row's texels read, not more

Content: the tree of `development` at f3664abbb5, unchanged.
2026-10-26 13:19:19 +02:00
Anees Iqbal a863eb2a4c Resolve every broken private intra-doc link in the translator
Content: the tree of `development` at 74cdfcbda3, unchanged.
2026-10-26 13:19:19 +02:00
Anees Iqbal 6bd663c908 Check the private intra-doc links in CI and fix four of them
The steps this packet landed as, in order:
- Run the private intra-doc link step after the API reference
- Record the runtime sources' hash after the private doc-link fixes

Content: the tree of `development` at 2b630acfb4, unchanged.
2026-10-26 13:19:19 +02:00
Anees Iqbal 3d9d7c5885 Make the ledger hold a divergence and a venue, not refusals alone
The steps this packet landed as, in order:
- Adopt the fragment quad's lavapipe divergence, scoped to that venue
- Name the device's own gap where the vocabulary could not, and the notice in a notice-only difference
- Pin the sparse sample-count chain as the device's gap, with lavapipe's measurement
- Recompute the runtime-sources pin after the rebase

Content: the tree of `development` at fb88ec8599, unchanged.
2026-10-26 13:19:09 +02:00
Anees Iqbal ad6daa7a10 Run Metal twice, plain and validated, and let the second run justify a refusal
The steps this packet landed as, in order:
- Record both Metal oracles for the two rate-map cases
- Say what the validated oracle holds, including when nobody asked it
- Tie the committed recordings to the cases that rest on them
- A validated stop documents a refusal; it never excuses one
- Expect the refusals we have written down, in both directions

Content: the tree of `development` at 75a2f57331, unchanged.
2026-10-26 13:19:08 +02:00
Anees Iqbal a356129821 Add the conformance suite's core as its own crate
The steps this packet landed as, in order:
- Prove the conformance loop with two seed cases, recorded on this M3 Max
- Own the committed-AIR shader path, and three more exhaustive byte cases
- Compare a case's words in named columns, and keep the suite's two venues green
- Bump the runtime version and pin the runtime sources after the binding fix

Content: the tree of `development` at 4b4ecc5628, unchanged.
2026-10-26 13:19:07 +02: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
Anees Iqbal 43c46ac8a2 Squash 680 commits of translator, validation, and corpus work
Rolls up everything since 9e0e99a4 into a single commit:

- src/native, src/passes, src/reflect, src/meta: AIR intrinsic lowering,
  access-chain and pointer handling, constant/composite dedup, storage
  and descriptor-slot fixes, function-constant folding.
- validation/: Metal and MoltenVK oracles, triage, observation contract,
  and the case runner.
- validation/corpus and fixtures: new authored cases and re-recorded
  candidate observations at the shipping fingerprint.
- tests/: module-level oracles for reflection, NonWritable, gated
  varyings/system values/descriptor slots, loop budget, and fallback.
2026-09-06 23:58:13 +03:00
Anees Iqbal 08970cacd2 Consolidate translation, linkage, and validation work
Squash 147 commits (2026-08-20 through 2026-08-31) into one change on top
of the exact-kernel-grid work. Covers native lowering and pointer/layout
construction, AIR intrinsic and funnel-shift coverage, BDA address
preservation across aggregate calls, CFG structurization, function-constant
and visible-function specialization, the 30-second translation ceiling, the
authored-case corpus and linkage validation suite, and refreshed byte-exact
MoltenVK evidence.

The kernel-grid lowering in this tree supersedes the 324-line variant in
the parent commit; that file is reduced to its current 139-line form here.

Resulting tree is identical to 7174c7b. Prior history remains reachable at
tag pre-squash-backup and branch backup/pre-squash-7174c7b.

Claude-Session: https://claude.ai/code/session_01D1u4vU7Mr5QNWrnnRHC8iS
2026-08-31 09:03:42 +03:00
Anees Iqbal 8b78eaca3b Expand macOS 26 AIR translation coverage
Overhaul the validation workflow around sharded authored cases, dependency-exact observations, incremental indexed corpus audits, bounded parallel translation, and native Metal/Vulkan comparison.\n\nExpand native AIR lowering, reflection, linked-function specialization, resource and stage-interface support, and structural CFG/pointer repair across the harvested macOS 26 corpus. Add exact intrinsic inventory, distributed 16x16x16 matrix lowering, explicit opaque tensor linkage, and regression coverage for the newly supported feature classes.\n\nThe final corpus verification accounts for all 88,819 indexed AIR modules under the current product fingerprint: 65,355 translate and validate directly, 23,464 require exact authored linkage, and zero fail or remain unresolved.
2026-08-13 21:46:27 +02:00
Anees Iqbal 3007485352 🆕 Open Source metal2vulkan 2026-07-22 13:15:24 +03:00