From 7b72cc5794e1f11f1c4eea4f70452c496ac6bf6b Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sat, 7 Nov 2026 15:17:23 -0800 Subject: [PATCH] Bump RUNTIME_VERSION to 1833: on MoltenVK over Apple GPUs a draw that reads interlocked storage an earlier draw of its instance wrote starts a new instance The runtime-sources pin re-derived for coverage-chain (660da10d1f, b74762aaa8, 844d58ba93, f47897d1a8, 816bf1cab3). MoltenVK 1.4.2 sets memoryBarriers = false on the Apple GPU families, so the in-pass barrier between interlocked draws encoded nothing, and Metal's raster order groups lost a draw's SIMD group under load (the 11-03 and 11-07 coverage_chain failures): 16 of 20,790 passes with the barrier, 0 of 20,790 with the split (m3-max-5349, 5414). Its cost on the M3: the three interlocked-fetch tile_path_costs cases take 4-7x the GPU time (9 -> 234-243 instances a frame), FAST-PATHS' known gap. Evidence: m3-max-5458 (clippy plain and m2v_gpu, rustdoc, facts/signatures/fast_paths 46/46), 5404 and 5436 (M3 lanes, the negative control fails), 5378 (lavapipe). Cases whose M3 cost records move follow from 5481's replay 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 dccde72e6..abf03558d 100644 --- a/crates/metal2vulkan-validation/runtime-sources.sha256 +++ b/crates/metal2vulkan-validation/runtime-sources.sha256 @@ -1 +1 @@ -6719000f031decf2a9ae7ba969db61860a279a040bffee9198b89800b016a862 +9d8f7ab17b1a430a67a11046b0a44f2eaf70373bbc048cb6a965ca41ea419b81 diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index a51efbff9..b421676cf 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 = 493; /// 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 = 1832; +pub const RUNTIME_VERSION: u32 = 1833; /// 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