From 5be90aacf9cf82cec86e0a1704b6e300e79e993c Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 8 Nov 2026 20:42:02 -0800 Subject: [PATCH] RUNTIME_VERSION 1941 and the runtime-sources pin for the early-mask visibility notice The four commits before this (nvreds) carry GraphicsState::writes_sample_mask in the lowered state (SEMANTICS 1998, ARTIFACT_FORMAT 495, set there) and read maintenance5's earlyFragmentMultisampleCoverageAfterSampleCounting into the device's limits. Where a device reports false (ANV on the Iris Xe), a counted draw with early fragment tests and a fragment-written sample mask counts the samples the mask keeps, where Metal counts every sample covered before the shader. The runtime announces visibility-past-early-mask there and counts WorkCounts::draws_counted_past_early_masks. Keeping Metal's count would cost a second draw per counted draw (a mask-free, colour-free variant inside the query), so the device's count is the near-equivalent, recorded in docs/API.md and FAST-PATHS' device gaps. Draws outside a visibility query pay nothing. Verified (nvreds): - Iris m3-max-10629: sample_coverage, visibility, post_depth_coverage, coverage_outputs and line_widths 23/23. 'counted 0 of the 256 / 128 of 512 / 320 of 1024 samples Metal counts', announced and counted. - Lint 10560 and the quick suite 10624 green. - M3 lanes 10544 green, where MoltenVK reports true and the count is held exact. Landing: pin-compute, api-signatures --check, refusal surface and coverage with no diff. --- crates/metal2vulkan-validation/runtime-sources.sha256 | 2 +- crates/metal2vulkan/src/cache/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/metal2vulkan-validation/runtime-sources.sha256 b/crates/metal2vulkan-validation/runtime-sources.sha256 index 55f169a3e..7f8509b07 100644 --- a/crates/metal2vulkan-validation/runtime-sources.sha256 +++ b/crates/metal2vulkan-validation/runtime-sources.sha256 @@ -1 +1 @@ -5721292890169cf916a78b3f7173e94410d9a4254237bef154bb0b4f21ea80c3 +946ee98b8af99b8fb7f5b0285ddfb4891da09896cb4e721bf04b5f7d6a781a14 diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index 4a7cf25a8..d30fb1313 100644 --- a/crates/metal2vulkan/src/cache/mod.rs +++ b/crates/metal2vulkan/src/cache/mod.rs @@ -93,7 +93,7 @@ pub const ARTIFACT_FORMAT_VERSION: u32 = 495; /// changes no behaviour, and then updates that hash alone with the commit saying why, or changes /// behaviour and also bumps this version. The commit that bumps it says what changed; this comment /// keeps no history. -pub const RUNTIME_VERSION: u32 = 1940; +pub const RUNTIME_VERSION: u32 = 1941; /// The digest of the sources this build of the crate was compiled from: SHA-256, as lowercase hex, /// of the manifest, the build script, and exactly the files the crate roots' module tree compiles