GPU: propagate device loss from copy queue fences #964
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!964
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@avt0m4t48 on GitHub · 2026-11-25 13:53 UTC · original
avt0m4t48:fix/copy-queue-removed-fence→main· +77 −13 · 1 files · 2 commits · openD3D12 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.