From 2ce1cf0da382b8f98faf76dfd58c0dbef83bf169 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 8 Nov 2026 08:51:57 -0800 Subject: [PATCH] RUNTIME_VERSION 1896: textures over copied host buffers lie in place over the copy, not in shadows A texture made over a host buffer the runtime copied (the copy's memory its own) was refused as Refused(Placement) and made a shadow of the copy: two trips a use, the Iris's 491 refused-placement shadows in reims's census. It is now a linear image bound in the copy's memory at the texels' offset where the in-place check passed: the host-allocation image under the Fresh verdicts for a copy in fresh pages; for a copy in device memory the driver's linear image (PREINITIALIZED), or a DRM_FORMAT_MOD_LINEAR image at Metal's pitch, under the caller's pages' verdicts (the pooled check only for the pitched image). A rebind re-makes the image over the new memory (perdraw, 1cf4730839 + da896c5a1f). New count copied_textures_in_place. Runtime sources re-pinned. Verified: the doc checks in the landing tree. The change's own evidence: lavapipe (gem10 8867: clippy x3, rustdoc, 57/57 focused, 40/40 lanes, suite 1900/1901 with the one failure present at its base), 780M 8878 46/46, RX 550 8881 46/46, Iris 8825 46/46, negative control 8840 failing. --- 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 9b25d0e4a..d639fd105 100644 --- a/crates/metal2vulkan-validation/runtime-sources.sha256 +++ b/crates/metal2vulkan-validation/runtime-sources.sha256 @@ -1 +1 @@ -451cf3e8fa439c203d04ec9acfc82cc51f73539161ef8e7bb6cb2e88dffc8b30 +72630bba9b789966afc9fbcdbe988338fd0a59426a7921c317848d6d6a5a14c7 diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index 5e0ef6831..40e643be7 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 = 1895; +pub const RUNTIME_VERSION: u32 = 1896; /// 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