Files
metal2vulkan/crates/metal2vulkan-validation/fixtures
Anees Iqbal 332e32b09b runtime_lane::discard_fetch_groups: the store-dropping defect's trigger shapes, kept-apart arithmetic in straight-line code, a discarded-only branch and an edge-helper-only branch
The lane drew one fetching function whose arithmetic is all fast math, so its module held no
`NoContraction` operation, which SPIRV-Cross writes as the `optnone` calls the defect needs: it
could not meet the defect with the workaround off either. Three more fragment functions compute
under `contract(off)` (as a module without the `contract` flag does): `sfd_line` in straight-line
code after the sample, `sfd_dropped` in a branch only the discarded fragments enter (the measured
trigger), `sfd_edge` in a branch only the helper invocations past a rectangle's edges enter. The
globals carry the cell's sides for `sfd_edge`. The lane prints each function's discard and helper
strategies and its `NoContraction` count.

Verified on the M3 Max (macOS 27, MoltenVK 1.4.2), job m3-max-15413, 512 passes per arm, every
pass clean in each arm: the workaround as it is (deferred discards; helper guard on sfd_dropped,
guard and 4 fences on sfd_edge), and, through probe arms never landed, the deferral off, the helper
guard and fences off, and both off.
2026-11-11 05:56:32 -08:00
..