From f46f1ca9cf4c1355bdf948c75d5155238d3c88da Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 8 Nov 2026 17:01:47 -0800 Subject: [PATCH] RUNTIME_VERSION 1930: images bound over exported memory name its handle type, with a check class per export handle Picks exitcrash's extimg (steelbrain/exitcrash-extimg at 15affc37f6). An image bound over exportable memory was created with no VkExternalMemoryImageCreateInfo, which VUID-02728 refuses. Such an image now names the memory's handle type, and the in-place check runs once per export handle class. Where a device's check of the class fails, the texture is an announced shadow (API.md). The exit guard's call set grows to as many 64-bit words as its table needs, and priming takes vkGetBufferMemoryRequirements2. Verified on lavapipe (m3-max-10212): 48/48 of the exported_textures, dma_buf_export, exported_memory, in_place, in_place_check, linear_plan and ycbcr_planes tests, clippy clean, no VUID. The RX 550 run (POLARIS12, check unpassed) keeps the announced shadow. The 780M (pinned) and 5080 runs follow 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 8e986de4b..cdb7000a7 100644 --- a/crates/metal2vulkan-validation/runtime-sources.sha256 +++ b/crates/metal2vulkan-validation/runtime-sources.sha256 @@ -1 +1 @@ -6078e791e0da44873d121aa189c4d744e0dc32e24b986c770d38dd5730f08500 +7ed3935e7a098df8f4c0df4c3c672fc86bfa6d9f60c499f96f29e344aca4e7cd diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index 0eb7f757d..383ebb720 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 = 1929; +pub const RUNTIME_VERSION: u32 = 1930; /// 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