From 31e642ecc200a641148e5668e6c313e9fdf113da Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 8 Nov 2026 09:37:31 -0800 Subject: [PATCH] RUNTIME_VERSION 1898: a host RAM gather over a chunk the device's thread imports is staged through the CPU however few its ranges On plans that are not listed, copy_take now answers ThroughCpu for a gather over a chunk the device's thread will import, so no gather imports its own ranges on the encoding thread (radvruns, 40d18ec325 + 3dbab04a58). On the RTX 5080 such an import (a host-pointer vkAllocateMemory) held the caller for tens to hundreds of milliseconds, and with three clips several such imports and every other thread's submissions met behind the driver's lock: reims's 4K fills took 3.4-327 ms, and 1.4-2.1 s with three clips. Scatters, listed plans and gathers the CPU path cannot take keep the imports' path. Runtime sources re-pinned. Verified: the doc checks in the landing tree. The change's own evidence: gem10 8968 (clippy x3, rustdoc, a_first_gather_of_few_ranges_imports_nothing_on_the_encoding_thread passing, its negative control failing, lavapipe 1907/1908 with the owned-kernel test fixed on development by 290748e457). The 5080 before/after is a check on development. --- 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 43090f473..83d24e2d5 100644 --- a/crates/metal2vulkan-validation/runtime-sources.sha256 +++ b/crates/metal2vulkan-validation/runtime-sources.sha256 @@ -1 +1 @@ -c3767559d46b30de615d06a1d6fb07427364a36613b331ea7ba25f02562fc442 +fca219b539030132a5c2d5b685e77cdebbbaad796f6722e4cfaa21a3c22d50a9 diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index 7e747f1e7..6c0404597 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 = 1897; +pub const RUNTIME_VERSION: u32 = 1898; /// 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