From c43b79bdfdbcd258617bb3e32cc25280cdc451d2 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Thu, 12 Nov 2026 15:03:16 -0800 Subject: [PATCH] RUNTIME_VERSION 2155: a fence goes on past its device's recovery The two commits before this one. A fence made before a device recovery held its generation's device handle, so waitForFence:, waitForFence:beforeStages: and updateFence: of the next generation refused it (MadeBeforeRecovery): a consumer's boot after two GPU recoveries on a 780M counted 15,389 + 9,115 such refusals, and its encoders faulted at the first. A fence has no Vulkan object, only an identity key, so it now holds the device's root handle (Device::root): update_fence and wait_for_fence of any generation take it, and it no longer keeps the lost VkDevice alive. Verified (on the branch): lavapipe (m3-max-22931): device_recovery::a_fence_goes_on_past_a_recovery fails at the test commit (Err(MadeBeforeRecovery) at update_fence) and passes with the fix, with all 17 device_recovery* tests; clippy plain, m2v_gpu, m2v_cpu_icd (22933-22935). --- 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 284597b43..638d2529e 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 = 509; /// 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 = 2154; +pub const RUNTIME_VERSION: u32 = 2155; /// 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