From 32ea3ac198d0b112f66a1b05802e3b718708d287 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Mon, 9 Nov 2026 17:52:53 -0800 Subject: [PATCH] RUNTIME_VERSION 1993 and the runtime-sources pin for small blocks with a sixteenth and nearness by the largest block held Behaviour from nvreds' 532d06c235 and c3fd622421: - Small plain blocks are the power of two plus a sixteenth (17 MiB at the least). Four quarter-block images, each with its metadata, then fit. A 1024x1024 RGBA8 render target is placed in 4,210,688 bytes at 64 KiB alignment on RADV and ANV, so three fit in 16 MiB. - A pool counts as near its next block below three quarters of the largest pooled block it holds, so a mid-run shrink no longer leaves a pool's first 64 MiB block unreserved. sweep_stale uses the same measure. Measured by nvreds: - 780M bench, pooled blocks made per phase: images 67 -> 51 pressed, mixed 39 -> 33, bursts 64-67 -> 51; calls that waited 20-23 -> 15. - The new test mixed_sizes_after_blocks_made_smaller_find_their_blocks_made_ahead fails 3 of 3 on the 780M without the fix. - The 66 memory tests pass on the 780M (3 of 3), RX 550, lavapipe and Iris (jobs 12692-12694). - clippy (plain, m2v_gpu, m2v_cpu_icd) and the runtime's Rustdoc are clean. --- 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 6f569db63..411d1a84e 100644 --- a/crates/metal2vulkan-validation/runtime-sources.sha256 +++ b/crates/metal2vulkan-validation/runtime-sources.sha256 @@ -1 +1 @@ -1c7a6f49a3fe264ae5821ffb5ee5bf154dcf247c5b8f303ff653b714b7de53ba +d2253f72fca107f1685bcd3acaf9deeb4623f5519fe78100ad729d6274935f7f diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index 0cd6233a9..35e16bcbd 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 = 497; /// 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 = 1992; +pub const RUNTIME_VERSION: u32 = 1993; /// 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