From d4fbe59a987acbd46ca0a423f1a6c971f53ebe95 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sat, 7 Nov 2026 20:30:05 -0800 Subject: [PATCH] Bump RUNTIME_VERSION to 1856: what a passing hold gives back is free for the next making A passing hold now lets go of the handles it took as plain drops inside the hold, so a released buffer's pin, its pool slot and an automatic heap's range come back there, and every making that takes such a range (Metal-space picks, pins, pool slots, Heap::allocate) waits for passing holds first. Before, a new buffer pinned at a released buffer's address, its pool slot or an automatic heap's range was refused PlacementConflict::Held (or OutOfMemory(Heap)) while another thread's passing hold still had the old object; Metal makes it. The program's own release code in such a going runs once the outermost hold ends. Re-pinned. Verified by holds: 3 new tests (pin, pool slot, automatic-heap range); lavapipe 80/80 with clippy clean (m3-max-6700), M3 under m2v_gpu 78/78 (6707); negative control on lavapipe, makings not waiting: the pin and slot tests fail PlacementConflict::Held, the heap test OutOfMemory(Heap) (6737). Pending: the M3 negative control (6756) and the whole lavapipe runtime suite (6747). --- 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 caf69a32f..ce8c2e39e 100644 --- a/crates/metal2vulkan-validation/runtime-sources.sha256 +++ b/crates/metal2vulkan-validation/runtime-sources.sha256 @@ -1 +1 @@ -310d1aee5be9a4320329f76d1cb503b060df795ed72b76828a07c4d65909c5c3 +73b068fb6bb26906d66dfa69c8ee06f4c7c64598cec4c4b328af334c2a2ea92c diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index 36394edfa..68177101f 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 = 1855; +pub const RUNTIME_VERSION: u32 = 1856; /// 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