A library and its functions go on past their device's recovery
What: a library holds a root handle of its device (Device::root) rather than the generation it was made on, and its functions take that handle, as a fence does. A library is the compile layer's parsed library and a function the compile layer's function with its constants, no Vulkan object; their sampler-ID holds are the line's resource IDs, which every generation shares. So a pipeline made from them on any generation passes its device check (same matches a root handle by its line), and they no longer keep the lost VkDevice alive. Docs: library.rs, carry.rs, MadeBeforeRecovery (libraries leave the refused list), the device-recovered cost (degradation.rs and docs/API.md), the runtime README. REFUSALS.md regenerated: unchanged. Why: after a recovery a pipeline made from a library or function made before it was refused NotImplemented(MadeBeforeRecovery); Metal's library 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:
1 parent
e93275ab28
commit
62923811dc
6 files changed
+55
-48
No files matched your search
+8
-7
@@ -3670,13 +3670,14 @@ 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, 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
|
||||
same recovery with no GPU fault. Cost: the events, fences, depth/stencil states, libraries,
|
||||
functions, 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
|
||||
|
||||
Reference in new issue
Block a user