From f84816ddec9d7b0422f2e12998daee41f67a7dd5 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sun, 8 Nov 2026 08:52:53 -0800 Subject: [PATCH] RUNTIME_VERSION 1897: dma-buf imports are made with the device's memory lock released A no-copy buffer's or texture's dma-buf import (dma_buf.rs import_chunks, and textures over dma-buf pages) called vkAllocateMemory with the device's memory lock held, so every other making, placement or free on any thread waited for the driver's import: 62 to 273 ms on the Radeon 780M in reims's boots (8588, 8866). It now chooses the type under the lock, imports without it and records the import under it, as pointer imports already did (radvruns, 66f69a827a..93437d2586). Runtime sources re-pinned. Verified: the doc checks in the landing tree. The change's own evidence: 780M gem10 8861 makings_beside_a_dma_buf_import_in_the_driver_wait_for_none_of_it (a placement 0.170 ms, a pointer import 0.248 ms beside a held import; the negative control waits past 5 s), 91/91 in the dma-buf, residency, in-place, export, host RAM and YCbCr suites; clippy x3 and rustdoc (8829). --- 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 d639fd105..d83f6a67b 100644 --- a/crates/metal2vulkan-validation/runtime-sources.sha256 +++ b/crates/metal2vulkan-validation/runtime-sources.sha256 @@ -1 +1 @@ -72630bba9b789966afc9fbcdbe988338fd0a59426a7921c317848d6d6a5a14c7 +cb85ae43d7c3865c066aa739e9a94a1fd2895348eb96d0095d8eec998256e0c4 diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index 40e643be7..a5dd553f6 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 = 1896; +pub const RUNTIME_VERSION: u32 = 1897; /// 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