From eac9da30c7e6df2cddec724643546c1f2a401c87 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sat, 7 Nov 2026 18:13:23 -0800 Subject: [PATCH] Bump RUNTIME_VERSION to 1845: a linear run's passes may name buffers over host pages surface's linear-run-host-range (cherry-picked): a pass whose commands named a buffer over host pages (a setVertexBytes upload chunk) was kept out of a linear run, so each such pass merged by itself. Now it joins the run; where a rebind encodes it again alone it leaves the run, as a shadowed texture's pass does, and a later pass that took its merge over reloads the run's box (LinearMerge::record_reload, WorkCounts::linear_runs_reloaded). RADV 780M, release, 3 runs, 706 passes each reading a no-copy chunk over host pages into a target on a Private buffer (reims's many_passes shape): 706 merges a frame -> 1, GPU 47.6 ms -> 14.0 ms (12.3 ms over a private texture), commit to completed 94-107 -> 86-90 ms (m3-max-6078 base, 6118 fix). The reload test: 0 of 98,304 texel bytes differ on RADV and lavapipe; negative control 6,778 differ (6141). M3 clippy plain and gpu, rustdoc, runtime unit 1297/1297 (6120); RADV and lavapipe related device tests 54/54. NVIDIA before/after pending. --- 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 d3c27eaf9..8f3fde6c0 100644 --- a/crates/metal2vulkan-validation/runtime-sources.sha256 +++ b/crates/metal2vulkan-validation/runtime-sources.sha256 @@ -1 +1 @@ -aa0ab89d23fac710656af9ff1f846033a797f8f5c56ae36c96f0359bfb497bc3 +fa0096b7f696490bed8973569ad64a766f62244086393399f0d42bb4a522cc41 diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index 4fa3c502b..a4866d969 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 = 1844; +pub const RUNTIME_VERSION: u32 = 1845; /// 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