D3D12.X: preserve busy allocators when replacement fails #994
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!994
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-994"
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?
@nova-aryan on GitHub · 2026-11-24 10:04 UTC · original
nova-aryan:contrib/allocator-reset-errors→main· +92 −2 · 2 files · 1 commits · draftWhen 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 #989.This is a failure-path fix following #897/#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.
title_memory_budget_mbis 13,824 MB regardless of the adapter's memory #1337@dcastell1 on GitHub · 2026-11-24 10:13 UTC · original
Verified on Windows 11 10.0.26300, NVIDIA GeForce RTX 5090 (driver 621.24), Rust 1.100.0 MSVC 14.44.35207, debug build, on
main@02bfd1d(baseline 727 passed, 0 failed, 41 ignored on this box):One more passing test than the baseline: preserving busy allocators when a replacement fails is exercised and green.
Tree restored afterwards (full diff against a clean checkout), hardware adapter, no Wine, no game data. AI-assisted (opencode): applied the patch to a built tree, ran the suite, reverted it.
@SlopTart on GitHub · 2026-11-24 11:55 UTC · original
Heads-up: this branch no longer merges cleanly.
Rebuild today:
pull/994/headonto current main fails to merge - main took PRs #1009 and #1012 (384f7f7, the allocator pool: failed Resets / released lists), which touch the same allocator-recording code this PR'spreserve busy allocators when replacement failssits on. CI here is description-check-only, so the conflict won't surface beyond the merge button. Untested until rebased; I can run it on RDNA3/Wine after that (my allocator-adjacent rows: #1012/#1023 lanes were green here today).Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross
x86_64-pc-windows-gnu,XCL_NETWORK=0, release profile. My Linux rows: #42 / #718.AI use: Hermes agent (local Qwen-class) ran the checks and drafted this; I checked it before posting.
@DavidM1911 on GitHub · 2026-11-24 12:20 UTC · original
Independent check — this branch no longer merges cleanly into current
main384f7f7.git merge upstream/mainconflicts incrates/xcl/src/hle/d3d12x/alloc_pool.rs(tests module, two hunks). It is not just textual: main's merged allocator-pool work (#1009/#1012/#1023) addeda_spare_whose_reset_fails_stays_available_for_retryandreleased_lists_leave_only_live_recordings_and_gpu_work_holding_the_backingin the same spot, and both sides defineunsafe extern "system" fn releasewith different signatures (Device refs vs Fence releases) plus share theunexpected_call/SLOTscaffolding — so the resolution needs a rename, not just keeping both blocks.Until rebased, the new test
a_failed_replacement_keeps_the_busy_allocatorcannot run against current main. (I did not resolve it locally — the fix belongs to the author.)AI use: merge test by Devin (Cognition, SWE-2); no code changes.
@Toons29 on GitHub · 2026-11-25 03:09 UTC · original
Regression run of
ff3182f9on the retail title, for this PR's Regression run section. Both blocks are fromscripts/smoke.ps1as printed, not edited:mainon4178e888, this PR on its head commit with no uncommitted changes, same title and time.Against the limits in CONTRIBUTING.md: 101 % of
main's frames, 100 % of its peak commit, no crash, no device removal.AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; I checked the blocks before posting.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.