Repository navigation
Conversation
Propagate replacement GetDevice/CreateCommandAllocator failures instead of letting the Reset hook fall back to the original backing. Add synthetic COM coverage for failure and retry paths; execution remains pending at the user's request. Fixes xcl-dev#989.
Owner
Author
|
Upstream PR xcl-dev#994 was closed or merged. |
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.
When a busy command allocator needs another backing, failure in
GetDeviceorCreateCommandAllocatorcurrently returnsNonefromtitle_reset. The caller interprets that as permission to reset the original allocator, even though its recordings are still held. Return the failure HRESULT instead and preserve the backing and recording associations. Fixes xcl-dev#989.This is a failure-path fix following xcl-dev#897/xcl-dev#907. It does not establish the cause of the retail world-loading watchdog or null-write reports.
What is in it
alloc_pool.rs: propagate replacement errors instead of falling through to the original Reset; synthetic COM regression for device-lookup failure, allocation failure, retries, recording associations and reference cleanup.README.md: describe failed replacement behavior. One commit, no new dependencies or game data.Tested
9aec53d.git diff --check: exit 0.main@02bfd1d, Windows 11 10.0.26300, RTX 5090 driver 621.24, Rust 1.100.0/MSVC 14.44.35207, debug;cargo test --workspace -- --test-threads=4: 728 passed, 0 failed, 41 ignored versus baseline 727/0/41. Report prepared using opencode (model not specified). This is an external patch-on-main run, not an exact-head retail smoke run; GPU skip counts were not reported.Regression run
Not run. Main/head retail smoke blocks are missing; this remains a draft pending Windows validation.
Not tested
Nonefor both injected failures, so the new HRESULT assertions should fail. This has not been executed.AI use
Codex (GPT-6) inspected the code, wrote the patch and regression, and prepared this description. The exact backend model identifier was not provided in this session.
Mirror of xcl-dev#994 (auto-synced, do not edit).