GPU: propagate device loss from copy queue fences #963
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/964"
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 fxceless/victory-fork. Originally posted by avt0m4t48 on 2026-11-25T13:53:26Z.
D3D12 reports
UINT64_MAXfromGetCompletedValuewhen a device is removed. The copy queue treated that as successful completion, including for a pending download whose commands had not run. A wait already blocked on the fence can also wake on removal. D3D12 fence contractCheck for removal before recycling copy lists, before waiting and after the event wakes. Return the device's recorded error when available and propagate a failed Windows event wait.
The regression queues a copy behind an unsignalled fence on an isolated WARP device, removes the device, and checks that the pending copy isn't reported as complete. The original test failed at that assertion. With the patch, the removed lane also refuses list allocation and the wait returns the device's error. All eight copy-queue tests passed on Windows, along with the local MSVC-target Rust check and asset policy. I did not test a physical adapter or reproduce a title hang. Baseline run · Patched run
AI-assisted using Codex.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.