Files
metal2vulkan/docs
Anees Iqbal 34bafa410d Record the pass-start barrier family on the M3 Max (unverified on our side)
WORK IN PROGRESS, parked: recorded on Metal, not yet replayed on the runtime.

pass_start_reads.rs adds 13 conformance cases (pass-start-barrier-*), each a pass that clears a
BGRA8Unorm target and draws a read of it (owned fixture psb_reads):
- 32x32 private and over-a-buffer targets, each with: the barrier then a read at own pixels; the
  barrier then a pixel-coordinate sample; the read and the sample with no barrier; a solid draw,
  the barrier, then the read.
- display-masked-read: a 1728x1216 private target holding an earlier DontCare pass's leftovers
  (61x55, 45x45), cleared, the barrier, a read at own pixels through a 453x100 scissor beside an
  A8Unorm mask over a buffer at texture 3.
- new-texture-chain: two new 896x576 private textures, each cleared, the barrier, a read at own
  pixels through 841x521 (the second beside the first at texture 3), then a target over a buffer,
  loaded, the barrier, and a read of the second over it.
- new-texture-tile: a new 448x576 texture cleared, the barrier, a read over all of it.
Texels are recorded as runs of equal texels (fresh_contents::texel_runs, now pub(super)). Rows
with a barrier accept, beside the M3 Max's recorded answer, the Mac2 answer the case states, by
docs/API.md's accepted difference a-barrier-over-the-render-targets-orders-what-it-names-as-a-
mac2-gpu-s-does (the sentence naming these cases is added to it here). tests.rs bills the 13
cases' cost records to the next whole-set run (AFTER_THE_LAST_RUN).

Verified:
- conformance record on the M3 Max (macOS 27, 3 runs, one outcome each): every row's read
  draws the texels from before its pass, the barrier or not; Metal's validated leg stops the
  barrier ("scope (0x4) cannot contain MTLBarrierScopeRenderTargets on this device; afterStages
  (0x2) can not contain ... MTLRenderStageFragment on this device").
- cases::pass_start_reads unit tests pass (plain target), including
  metal_reads_the_texels_from_before_the_pass_on_the_small_rows against these recordings.
- clippy -p metal2vulkan-conformance --all-targets --all-features -D warnings.

Unverified / owed:
- conformance replay of these cases on the runtime (M3 MoltenVK, 5080, lavapipe): whether each
  barrier row matches the stated Mac2 answer exactly, and which notices each venue announces
  (shared-in-system-memory is declared; shadowed-texture or dont-care-stand-in may be needed).
- times::every_case_carries_its_timing fails until `conformance times --write` runs over these
  13 cases on the M3.
- docs/CONFORMANCE-COVERAGE.md not regenerated.
- new-texture-chain's recording is 1.46 MB of pretty-printed JSON (three 896x576 sites of 1042
  runs each); consider dropping the first texture's site.

(cherry picked from commit 724afbf80b78c14a8824dfb96203df3813fba9aa)
2026-11-04 21:54:20 -08:00
..