D3D12.X: keep reusable allocators after a failed Reset #1002
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1009"
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 ivall/xcl. Originally posted by nova-aryan on 2026-11-24T10:20:31Z.
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.
Imported from ivall/xcl. Originally posted by ivall on 2026-11-24T10:46:56Z.
Thanks – your commit is
f52ec36onmain. Merged intomaintogether with #1009, #1012 and #1023 (merge384f7f7). Taken without its README sentence: the README tells users what works, and these are internal details. #1012 and #1023 both added code right aftermove_listand tests at the same place; the conflicts were resolved by keeping both.Tested on the merged tree (it was not run before, so here it is):
cargo build --workspace: no warnings.cargo test --workspace --no-fail-fast -- --test-threads=4: 737 passed, 0 failed, 41 ignored, no SKIPPED.a_spare_whose_reset_fails_stays_available_for_retry(spare removed before the Reset),released_lists_leave_only_live_recordings_and_gpu_work_holding_the_backing(noforget_listinon_release),reset_commits_state_only_after_native_success_and_always_restores_vtable(association committed on a failed Reset).mainbefore it the same way: no crash, no device removal, exit 0; 1500 frames against 1200; peak process commit 29.2 GB against 29.7 GB; the same allocator swap counts.upstream-sync referenced this pull request2026-11-25 09:07:36 +00:00
Pull request closed