A depth/stencil state goes on past its device's recovery

What: a depth/stencil state holds a root handle of its device (Device::root) rather than
the generation it was made on, as a fence does. The state is its descriptor and the compile
layer's Vulkan depth/stencil state, no Vulkan object, so a render encoder of any generation
accepts it (check_device matches a root handle by its line), and it no longer keeps the lost
VkDevice alive. gpu_resource_id asks supports_family, which goes to the serving generation,
instead of the "now" form a root handle has no generation for. Docs: depth_stencil.rs,
carry.rs, MadeBeforeRecovery, the device-recovered cost (degradation.rs and docs/API.md),
the runtime README. REFUSALS.md regenerated: unchanged.

Why: after a recovery a state made before it was refused NotImplemented(MadeBeforeRecovery)
at set_depth_stencil_state; Metal's state goes on.

Verified: see the lane run reported with this sha (the test commit before it fails, this
one passes).
This commit is contained in:
Anees Iqbal committed 2026-11-12 15:11:29 -08:00
1 parent 12376c186a
commit fb7eaa8cbc
6 files changed
+49 -44

No files matched your search

+7 -7
View File
@@ -3670,13 +3670,13 @@ bound.
recovery announced: where a call waited past 10 seconds for the recovery under way, where its
command buffers in flight took past 10 seconds to fail, and where its new `VkDevice` could not
be made, after which the device answers as a lost one. `Device::recover_for_test` runs the
same recovery with no GPU fault. Cost: the events, fences, uses of guest RAM, no-copy buffers,
`Private` buffers, buffers in the runtime's own pages (fresh pages, and the blocks of pages the
`Shared` and `Managed` buffers lie in where the device's checks found a held host-page import
costs its submissions nothing and textures over such pages take what they take over its own
memory) and `Private` heaps with the buffers placed in them made before it go on, a `Private`
buffer's or heap's contents lost (it reads zero); the other objects made before it are refused
(`MadeBeforeRecovery`), where Metal's go on; the calls during it wait for it, and a
same recovery with no GPU fault. Cost: the events, fences, depth/stencil states, uses of guest
RAM, no-copy buffers, `Private` buffers, buffers in the runtime's own pages (fresh pages, and the
blocks of pages the `Shared` and `Managed` buffers lie in where the device's checks found a held
host-page import costs its submissions nothing and textures over such pages take what they take
over its own memory) and `Private` heaps with the buffers placed in them made before it go on, a
`Private` buffer's or heap's contents lost (it reads zero); the other objects made before it are
refused (`MadeBeforeRecovery`), where Metal's go on; the calls during it wait for it, and a
device call the loss met while it ran runs again after it. A no-copy buffer is made again over
the same pages on the new `VkDevice`, as its making or last rebind made it, so the caller's
import gate, resolver of guest RAM runs and dma-buf source are asked again, on the thread that