From f09bdd0f848b3c66e3c458434f7117cd5c6d90c1 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Sat, 7 Nov 2026 18:39:23 -0800 Subject: [PATCH] Bump RUNTIME_VERSION to 1848: the device survives the loss of its VkDevice A lost VkDevice is replaced by a new generation of the device. Every in-flight command buffer fails with the loss, and one loss names one hang: a batch watched after the loss fails with it, so a single loss can no longer count twice against its queue. The type-9 hang's GPU-met wait is judged by when the other queue's signal landed. kept_images' tile passes each run alone (test only). Re-pinned the runtime sources. New public items: Degradation::DeviceRecovered (device-recovered); WorkCounts::vk_devices_live, vk_devices_made, device_recoveries; RuntimeGap::MadeBeforeRecovery and RuntimeGap::AdoptedDeviceRecovery; Device::recover_for_test. None removed. REFUSALS.md, the signatures and conformance coverage are unchanged by the bump. Verified by devloss: MoltenVK on the M3, the recovery tests 12 of 12 rounds fixed (m3-max-6242) against 3 of about 20 failed unfixed (6219, 6233); clippy on this tree (6278). Per-draw cost on the M3 within 0.31% (6121). Pending: 5080 devloss-recovery-fixed-183346, ms01/lavapipe 6277. --- 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 e0ce1e1ed..8cb067466 100644 --- a/crates/metal2vulkan-validation/runtime-sources.sha256 +++ b/crates/metal2vulkan-validation/runtime-sources.sha256 @@ -1 +1 @@ -99b5381e53f45173ec6ec0ea202038fd9bd720ddbcbfb67301c4c8dc38fc2a1f +52b50f583feea3a5b792b7bed18a44fab4f8b2bf0f97b5f0a84de565879bcfae diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index 3f31d8d97..ace246200 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 = 1847; +pub const RUNTIME_VERSION: u32 = 1848; /// 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