Repository navigation
D3D12.X: keep reusable allocators after a failed Reset - #1009
Closed
nova-aryan wants to merge 1 commit into
Closed
nova-aryan wants to merge 1 commit into
nova-aryan wants to merge 1 commit into
Conversation
Keep the spare owned until its native Reset succeeds, so failures remain retryable without abandoning a backing. Add an isolated failure/retry regression; local execution is disabled at the user's request. Fixes xcl-dev#1004.
This was referenced Nov 24, 2026
ivall
added a commit
that referenced
this pull request
Nov 24, 2026
Collaborator
|
Thanks – your commit is f52ec36 on Tested on the merged tree (it was not run before, so here it is):
|
This was referenced Nov 24, 2026
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.
A failed Reset of a reusable command allocator currently removes that spare from its owner's pool before returning the error. Keep it owned and available until Reset succeeds, so a retry uses the same backing instead of abandoning it and allocating another. Fixes #1004.
Independent of #994: that PR handles failure to create a new replacement; this handles failure to reset an existing spare.
What is in it
alloc_pool.rs: publish the reuse transition only after successful Reset. Extract the existing transition into a private helper taking the native Reset call, so an isolated regression can inject two failures and a successful retry without a device or shared global state.README.md: document retry behavior. One commit, no dependencies or game data.Tested
6efdabc;git diff --check: exit 0.Regression run
Not run. Main/head retail smoke blocks are missing; keep this a draft pending Windows validation.
Not tested
asideempty and fails the first ownership assertion. Not executed.AI use
Codex (GPT-6) inspected the code, wrote the patch/regression and prepared this description. The exact backend model identifier was not provided in this session.