From 0baffba4f94cd589f84aabf56e379ba316bb543a Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 8 Nov 2026 17:07:56 -0800 Subject: [PATCH] RUNTIME_VERSION 1931: a host copies' block made ahead joins its pool at a placement alone; a hurried call waits for no page reads Picks radvruns' 5a1116d2ac (steelbrain/radvruns-ahead-races), which fixes the two lavapipe reds development's dv-lvp leg (m3-max-10133) found under load in RT 1927's blocks ahead: - keep_room added a finished host-copies block to its pool at whatever creation call came next, so a pool's blocks changed outside its placements. memory::place's take_ready now adds it. - A call that hurried a making also waited for the making's reads of every page of its 64 MiB mapping. Those reads now stop once a call waits for the block, and at teardown, so the call waits for the allocation alone. The unread pages fault in at first touch, as an in-place block's do. Verified (m3-max-10230, gem10 lavapipe, each test 50 times, 12 processes at a time, default thread counts), before vs after: - tests::blocks_ahead hurried case: 43/50 failed (longest creation 42-189 ms) -> 0/50 (0.4-1.1 ms); - the new deterministic host-copies-block test: 50/50 failed -> 0/50; - pool_room_creations: 0/50 -> 0/50. A probe that was not committed put the whole wait in the page reads: the allocation took 0.03-0.07 ms. clippy clean, plain and m2v_cpu_icd. --- 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 cdb7000a7..0cf844282 100644 --- a/crates/metal2vulkan-validation/runtime-sources.sha256 +++ b/crates/metal2vulkan-validation/runtime-sources.sha256 @@ -1 +1 @@ -7ed3935e7a098df8f4c0df4c3c672fc86bfa6d9f60c499f96f29e344aca4e7cd +bd752c0a34c9d4c840e36e1677dc1d79b2462f8f731903a8620d530842b0de59 diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index 383ebb720..2cf7c19cd 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 = 1930; +pub const RUNTIME_VERSION: u32 = 1931; /// 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