From 760eeb6ccaf532880acf0cbdc19a6d97a9eeceab Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Thu, 12 Nov 2026 18:52:43 -0800 Subject: [PATCH] RUNTIME_VERSION 2178: an import several blit-read no-copy buffers lie in stays releasable The commit before this one. A guest-RAM import that a second no-copy buffer over the same bytes lay in was held for good, whatever the buffers' reads (read_apart_second_buffer): on reims's Valley walk on the RX 7900 XTX about 1,268 of 1,330 live dma-buf imports, each listed in every kernel submission (RADV lists every imported BO), about 0.57 ms of each 0.835 ms vkQueueSubmit. Such an import now stays releasable while every read of each buffer in it is a blit's or none (a holder over the whole view that nothing reads included), released once idle and imported again as the one-buffer case is. A binding, an argument word, a resident use, a handed-out address, a heap's bytes or a rebound buffer lying in it, a buffer bound inside its memory, or a range_of share keeps it held as before. The read-apart gauge is split into host_imports_read_apart_inside, _shared_range, _heap and _rebound; host_imports_joined_releasable counts the imports the new rule keeps releasable. host_residency's and WorkCounts' docs follow. Verified (on the branch, debug test binary): 780M RADV (m3-max-23761) host_residency and host_import_counts 15/15, the new test (a never-read holder plus a blit-read buffer: released, re-imported by a blit, released again, then a kernel binding one and reading the other's address) included; the same binary with the old exposure fails it ("the second buffer kept the import for good", held for good 1 against 0). Clippy all features and m2v_gpu, rustdoc (23710); api signature tests 16, runtime suite 1502, lavapipe host import, residency and alias tests 39 (23713), one test-only commit before the tip. --- crates/metal2vulkan/src/cache/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index 2109cc1f3..3783c3ab8 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 = 512; /// 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 = 2177; +pub const RUNTIME_VERSION: u32 = 2178; /// 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