From d2640d5e7ebd1a6fc5f1f0a8912df6be463f33c7 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Mon, 9 Nov 2026 12:29:48 -0800 Subject: [PATCH] RUNTIME_VERSION 1984 and the runtime-sources pin for plain blocks sized by their making rate 0bec0583b0..076cc7b44e change the runtime's memory: where a plain block's making takes longer than 8 ms, the device's later pooled plain blocks become the largest power of two its measured rate makes within 8 ms, never below 16 MiB (a placement past that size takes a pooled block of its own power of two up to 32 MiB, a dedicated one past it); exportable and page blocks stay 64 MiB. On a Radeon 780M a block's making holds the process's VM reservation, so every submission waited for it (reims rafgap cause 1: 100-300 ms guest frame stalls on fragmented memory). Verified by the branch (780M RADV PHOENIX, cold, kernel page pool drained): quiet turnarounds of 8 ms or more 13 -> 0; fragmented, none of 17 ms or more (slowest 14.3 vs 40.0 ms); slowest creation call 0.6-3.4 vs 22.9-24.9 ms; a 4K render target's own block ~11 ms inline when fragmented, its slowest creation call 16 vs 26 ms. Runtime lib 780M 2004/2004, lavapipe 2007/2007, negatives fail. M3 cost --check rc 0 at the tip and with blocks forced to 16 MiB (12237); device_memory_allocated is reported (BLOCK_SIZE), pooled_memory_blocks_made stays gated. ANV and NVIDIA per-block costs unaudited (FAST-PATHS). Here: signatures --check, REFUSALS and coverage docs regenerated, fmt. --- 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 af5c4f010..ddbcdb06b 100644 --- a/crates/metal2vulkan-validation/runtime-sources.sha256 +++ b/crates/metal2vulkan-validation/runtime-sources.sha256 @@ -1 +1 @@ -74e812a88db6d5ad8760a16b320f76cd0be87d2b83e3990ef38982d25554289a +a85cbd7c50837b6e742da573b8e6c23f1703a4db808bea5223bb2d5efbd0a487 diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index f238cc8dd..a191d21aa 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 = 1983; +pub const RUNTIME_VERSION: u32 = 1984; /// 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