runtime_lane::sample_coverage::the_sample_coverage_applies_after_the_fragment_function fails on
the Iris Xe (ANV, RPL-P) at its three early-tests draws: a full-screen draw of coverage 0.3
under psc_early counts 0 of 256 samples at 1 sample, 80 of 512 at 2 and 140 of 1024 at 4
(iris-B at 6cb37f2c86), where Metal counts every sample the early tests pass and masks the
colors alone. Its colors and depths are Metal's. The translator applies Metal's private masks
under early tests in the fragment function's SampleMask output, which Vulkan orders after
sample counting only where the device states earlyFragmentMultisampleCoverageAfterSampleCounting
(VkPhysicalDeviceMaintenance5Properties). ANV's capture on the Iris Xe of RPL-P states false;
RADV on the 780M, NVIDIA's on the RTX 5080 Laptop GPU, lavapipe and MoltenVK on the M3 Max
state true.
- metal2vulkan: Limits::early_fragment_multisample_coverage_after_sample_counting, read from the
maintenance5 structure (false without the extension), and
GraphicsState::writes_sample_mask, the fragment function's SampleMaskOut builtin (its own
[[sample_mask]] return or the private masks it applies). SEMANTICS_VERSION 1998,
ARTIFACT_FORMAT_VERSION 495 (a new encoded field).
- metal2vulkan-runtime: a draw under a visibility result (Counting or Boolean) whose fragment
function declares early tests and writes its sample mask, on a device without the property,
runs announced as Degradation::VisibilityPastEarlyMask
(metal2vulkan-degrade-visibility-past-early-mask) and is counted in
WorkCounts::draws_counted_past_early_masks. Keyed to the documented property alone, never to
a driver or vendor.
- No structural form keeps Metal's count at no cost to uncounted draws: the colors' masks are
the SampleMask output or a discard, both fragment operations such a device may count after, so
only a second draw of each counted draw without the mask would count as Metal does. The
announcement is the proportionate answer.
- The lane: on a device without the property, the early draw's colors and depths are still
Metal's, its count at most Metal's, the draw counted once and the kind announced; elsewhere the
count is Metal's and nothing is announced.
- docs/API.md's catalogue entry, docs/FAST-PATHS.md's device-gap row, visibility.rs's module docs,
the api_signatures rows, and validation's limit bound (Execution). docs/REFUSALS.md
regenerates unchanged.
Not done here: the runtime-sources pin and RUNTIME_VERSION (the orchestrator's number), and the
golden tables, which development re-blesses.
Verified: cargo fmt; the device description test reads the property from RADV's and ANV's
captures. Builds, lint and lanes follow through potluck.
(cherry picked from commit 4aa2896af563c41fec7d8129f15fb86b5dc4e418)