From 386eaeafd3cc3e211488b6b9f3fc6571b2248a55 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Thu, 12 Nov 2026 15:23:35 -0800 Subject: [PATCH] RUNTIME_VERSION 2157: a listed chunk is imported beside objects' own dma-bufs The five commits before this one. Since RUNTIME_VERSION 2144 an object on a listed plan over a chunk not imported takes its own import at the RAM's addresses, which the aliases registry noted as holding the chunk back, so a copy that needed the chunk refused with an Invariant ("a guest RAM chunk a live import of an object's own holds pages of"; a consumer's Iris walk at pins 59/60, absent at pin 58) and objects made before the copies kept the chunks from being imported (a 780M walk: held_back 4 -> 45). held_back now answers Free, BesideDmaBufs or Back: on a listed plan whose device orders aliased imports, a chunk whose pages only dma-buf imports hold is imported beside them as one dma-buf of the RAM's source, with no pointer fallback (RUNTIME_VERSION 2134's dma-buf-beside rule; dma_buf_imports_beside_live). An object such a RAM routes outside its chunks imports its dma-bufs alone (Routed::own_dma_bufs), never its pointer. On ANV (aliased imports unordered) objects keep their own path; the CPU staging of copies over chunks so held follows separately. Verified (on the branch, at a5c31b269c): the new test fails on the base with the exact Invariant (m3-max-22963) and passes after; lavapipe (m3-max-22973) 112/112 over host_ram_dma_buf, host_ram_copy_device, host_ram_device, dma_buf_beside, import_overlap_hazard, host_residency, device_recovery_no_copy, one_import, no_pointer_import, copied_device; Radeon 780M (m3-max-22976) 63/63 (object ImportedAsDmaBuf, chunk held back 0 times, 1 chunk imported beside 1 live dma-buf); lint (m3-max-22974): clippy three ways, rustdoc, api tables. --- 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 422215303..842a2bd3a 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 = 509; /// 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 = 2156; +pub const RUNTIME_VERSION: u32 = 2157; /// 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