Repository navigation
D3D12.X: keep allocator recordings held on device removal - #2831
Draft
rafelis1997 wants to merge 1 commit into
Draft
rafelis1997 wants to merge 1 commit into
rafelis1997 wants to merge 1 commit into
Conversation
An XCL fence reads UINT64_MAX after device loss. It cannot confirm that a submitted command list or its allocator backing is free to reuse. Keep the bounded resubmit wait terminal on removal. The synthetic fence regression exercises both reuse decisions and checks that a removed fence is never selected for polling. Part of xcl-dev#2688.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #2688 (WS2). Reproduction and discussion.
ID3D12Fence::GetCompletedValue()returnsUINT64_MAXon device removal. The allocator used a numeric comparison to retire a backing and the inverse comparison to decide whether a list was still in flight. The removal sentinel satisfied both tests for successful completion. This changes reuse eligibility after removal. The original cause of device removal remains under investigation. D3D12 fence contractWhat is in it
alloc_pool.rs. Use it for both backing retirement and the list's in-flight check. Keep the bounded queue-wait path's immediate exit on a removed device.nvidia-devataf2cecc40886a8682ecf3267f5328c6dc4b66ad7; head965806a09804384324dc6cec463afa51c00b0822. The related mesh reclaim path is still in #2815. Its author can use the same predicate there.Tested
rustc 1.100.0 --test --edition 2021in debug mode, compiling the real allocator module with a synthetic COM fence and shims for surrounding runtime dependencies.released_lists_leave_only_live_recordings_and_gpu_work_holding_the_backingwith the head's assertions against both implementations. Base: 0 passed, 1 failed atdevice removal must not make the list reusable. Head: 1 passed, 0 failed, 0 ignored, 7 filtered out.git show --check HEADpassed.Regression run
Paired clean-tree game smoke runs are pending. The reported retail trace in the linked issue comment came from a separate experimental tree.
Not tested
The full Windows workspace suite and the two clean-tree GPU smokes are pending for this commit. This draft makes no FPS, VRAM savings, or device-loss prevention claim. The integrated synthetic test can be run with
cargo test -p xcl --lib released_lists_leave_only_live_recordings_and_gpu_work_holding_the_backing.AI use
OpenAI Codex (GPT-6) investigated the issue, wrote the patch and regression, ran the isolated test, and prepared the PR description.