From df79c0a7df902f25d5434f015403834bd23c8aa8 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Mon, 9 Nov 2026 00:35:39 -0800 Subject: [PATCH] RUNTIME_VERSION 1956 and the runtime-sources pin for no-copy memory whose source fails The commit before this is radvruns' fix for an inconsistency sweep found on RADV: - Before: a no-copy buffer or heap over shared memory (a memfd mapping) whose pointer the device refuses was a copy when it had no dma-buf source, but refused (Unsupported, HostMemory) when its source failed. - Now: where the device refused the pointer and no dma-buf of the pages served (the source failed, or the device refused its dma-bufs), the outcome is the device's refusal either way: a copy, announced and counted as copied_host_buffers_device_refused. Rule 2: Metal makes a no-copy buffer over any page. - Unchanged: misuse (Invalid, DmaBuf), the unpinnable path, a lost device, dma-buf-only imports, windows the import alignment does not cover, and rebinds. A stored runtime artifact can see the answer change, so RUNTIME_VERSION goes 1955 -> 1956 and the runtime-sources pin is recomputed: 667a42b2147fda1812b456d20e37b897aee4eae3228ef69bfbe170a8e885000e. Verified at the tip a30909d44a (on bb8c60238b) by radvruns: - PHOENIX 11208: runtime tests 78/78; host-memory lanes 69/69. The negative control (development's buffer_descriptor.rs) fails copied_device with Unsupported(HostMemory), and fails the lane. - PHOENIX 11207: clippy clean, plain and gpucfg. - M3 11230: clippy clean; rustdoc clean; runtime suite 1358/1358. --- 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 28c79f342..e18e53b21 100644 --- a/crates/metal2vulkan-validation/runtime-sources.sha256 +++ b/crates/metal2vulkan-validation/runtime-sources.sha256 @@ -1 +1 @@ -8ae32d4765b4f41b760258dd704bedcbfc3453081f6c2273dac3e614fdde045b +667a42b2147fda1812b456d20e37b897aee4eae3228ef69bfbe170a8e885000e diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index f424b2393..443717f5f 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 = 497; /// 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 = 1955; +pub const RUNTIME_VERSION: u32 = 1956; /// 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