Files
metal2vulkan/crates
Anees Iqbal c43b79bdfd 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).
2026-11-12 15:03:16 -08:00
..