From 57b50b593e8d4f25236d0eacfda8f33eed71d1c5 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Mon, 9 Nov 2026 16:55:55 -0800 Subject: [PATCH] RUNTIME_VERSION 1992 and the runtime-sources pin for blocks made ahead counted in bytes and a pool's first block made alone Behaviour from nvreds' 40831926fd and 9612f79c1d: - The reserve kept ahead is counted in bytes, the pool's free room included. A top-up starts before a call needs a block, and it starts again at a large placement. - A call waiting for a pool's first block no longer queues the rest of a block's worth behind it. The rest is queued only where the pool grows or is near its next block (Memory::growing). Measured (nvreds): job 12560 on gem10's 780M, mixed arm at 64 MiB: - blocks waited for 8 and 6 -> 0 and 0; - slowest pressed creation 8.5 and 5.8 ms -> 3.6 and 1.9 ms; - in place 0. Job 12586, small-blocks arms, per pressed phase: - 73 blocks (1168 MiB) made with 9 freed unused -> 67 (1072 MiB) with 3. Job 12585 (RX 550 and lavapipe): - clippy (plain, m2v_gpu, m2v_cpu_icd) and Rustdoc clean; - 64/64 memory tests on each device; - the negative control fails. --- 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 980682106..6f569db63 100644 --- a/crates/metal2vulkan-validation/runtime-sources.sha256 +++ b/crates/metal2vulkan-validation/runtime-sources.sha256 @@ -1 +1 @@ -e039334dd547bcb995cf638de18f8afb5b17c7d1e824c057f664db06936789e9 +1c7a6f49a3fe264ae5821ffb5ee5bf154dcf247c5b8f303ff653b714b7de53ba diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index a84d11cfc..0cd6233a9 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 = 1991; +pub const RUNTIME_VERSION: u32 = 1992; /// 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