From b50a345f73d6e2a6841ee7e9c18cd6bd7afbaa4f Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sat, 7 Nov 2026 15:26:21 -0800 Subject: [PATCH] Declare the interlocked split in the sRGB fetch-ordered rows too fetch-ordered-bgra8unorm-srgb and fetch-ordered-rgba8unorm-srgb are srgb_fetch.rs's rows, not fetch_ordered.rs's. The M3 replay at 60c5eba469 (m3-max-5506) still read them divergent at case/notices for the undeclared render-pass-split. Their draws fetch in the pixel interlock one after another as the other rows' do. Verified: cargo fmt. The M3 replay follows. (cherry picked from commit 4675844caafa41cc7565f706273cc218db97250f) --- crates/metal2vulkan-conformance/src/cases/srgb_fetch.rs | 3 +++ crates/metal2vulkan-conformance/src/replay.rs | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/metal2vulkan-conformance/src/cases/srgb_fetch.rs b/crates/metal2vulkan-conformance/src/cases/srgb_fetch.rs index a9298105c..8b44bc7c2 100644 --- a/crates/metal2vulkan-conformance/src/cases/srgb_fetch.rs +++ b/crates/metal2vulkan-conformance/src/cases/srgb_fetch.rs @@ -231,6 +231,9 @@ impl Case for SrgbFetch { // The buffer each pass reads its target back through is `Shared` // ([`crate::replay::shared_memory_notice`]). crate::replay::shared_memory_notice(), + // Each draw after the first fetches in the pixel interlock what the one before + // wrote there ([`crate::replay::interlocked_split_notice`]). + crate::replay::interlocked_split_notice(), ]) .collect() } diff --git a/crates/metal2vulkan-conformance/src/replay.rs b/crates/metal2vulkan-conformance/src/replay.rs index a16c1abb9..c0b49699c 100644 --- a/crates/metal2vulkan-conformance/src/replay.rs +++ b/crates/metal2vulkan-conformance/src/replay.rs @@ -378,7 +378,7 @@ pub fn shared_memory_notice() -> crate::allowance::Allowance { /// [`notice_allowance`] it loosens the notices site alone: every value still compares exactly. /// /// **Its evidence.** Measured on the M3 Max (MoltenVK 1.4.2, macOS 27.0.1): it fired for every row -/// of `fetch-ordered-*`, `xr-gamut-*`, `xr-masked-*` whose second draw blends or writes a +/// of `fetch-ordered-*` (its sRGB rows among them), `xr-gamut-*`, `xr-masked-*` whose second draw blends or writes a /// `BGR10_XR` word under a mask, and `xr-gradient-*-blended-*`, the families that name it. pub fn interlocked_split_notice() -> crate::allowance::Allowance { notice_allowance(metal2vulkan_runtime::Degradation::RenderPassSplit.code())