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).
This commit is contained in:
Anees Iqbal committed 2026-11-12 15:03:16 -08:00
1 parent e05beb832d
commit c43b79bdfd
1 file changed
+1 -1
+1 -1
View File
@@ -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