gpu: recover startup command lists after failed Close #1763
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1770"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-24T18:17:40Z.
Refs #1352
Change
Desktop Reset repeats a failed Close HRESULT on the same command-list object. Return the actual errors through the startup wrapper and drop the failed recording. On the next Reset, create a desktop list of the same type and node on the requested allocator while preserving the existing wrapper handle. Failed creation leaves recovery available for another Reset.
Serialize queue selection and allocator fence bookkeeping against Reset. Release the replaced command-list reference after dropping its recording-only state. Pending submits retain their allocator and descriptor lifetimes through the existing paths.
The source-built fixture queues a valid compute recording behind a fence, then poisons the next recording with a viewport call. It checks that Close fails, a direct allocator is refused, and retry with a compute allocator succeeds. It attempts to submit the poisoned recording, completes the prior valid and recovered work, and checks for unexpected debug errors and device removal.
Verification
Base
312f5613, head6604fab7. Windows 11 build 26200.9974, MSVC 19.51.36244, Microsoft Basic Render Driver (WARP) and NVIDIA GeForce RTX 4060 Laptop GPU (616.56). D3D12 debug layer enabled.Both presets passed all four cases, including both forced submit-fence failure cases. Zero skips. Close returned
0x80004005, wrong-type Reset returned0x80070057, recovered Reset/Close returnedS_OK, and no unexpected debug errors remained.The same fixture built against the unmodified runtime at
312f5613failed the Release WARP case at step 7, with both failed operations reported by the wrapper asS_OK.AI-assisted.