From 003dc10fee546dae97cfb5086c0f74b1c640b67e Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Fri, 13 Nov 2026 01:57:12 -0800 Subject: [PATCH] RUNTIME_VERSION 2214: a Managed buffer over a guest RAM's chunks is copied in by the GPU from their imports A Managed two-copy buffer whose host copy is its pages alone, where a guest RAM's chunk imports hold every page of it (a buffer across a chunk end), now keeps pieces of those imports, and its copies in are GPU copies from them: no CPU staging, no bound and no submission. Before, its named ranges were staged by the CPU at each commit. AtCommit still stages a named range at the commit. New WorkCounts name the path: managed_bytes_staged_in, managed_bytes_copied_in_from_ram, managed_pages_alone_refused, managed_pages_alone_over_imports, managed_pages_alone_unwritable and managed_pages_in_ram_chunks. That changes runtime behaviour. Verified by the change's own runs on the RTX 2080: the equality tests (a 4 MiB buffer across a chunk end, both policies) pass, checking the counts, the bytes the GPU reads after a CPU write across the end and which path copied them; MANAGED-RAM-COPY-IN at 32 MiB across the end, commit call 2.139 -> 0.035 ms and completion 19.41 -> 17.40 ms (0.257 -> 0.010 ms at 4 MiB); host_ram_device 29/29, managed_copy_device 30 passed. lavapipe suite 2472/2472; clippy plain, --cfg m2v_cpu_icd and --cfg m2v_gpu and rustdoc green. --- 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 7c755cd17..1f3b75fdc 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 = 516; /// 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 = 2213; +pub const RUNTIME_VERSION: u32 = 2214; /// 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