Repository navigation
D3D12.X: preserve busy allocators when replacement fails - #994
nova-aryan wants to merge 1 commit into
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.
|
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 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. |
|
Heads-up: this branch no longer merges cleanly. Rebuild 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 AI use: Hermes agent (local Qwen-class) ran the checks and drafted this; I checked it before posting. |
|
Independent check — this branch no longer merges cleanly into current
Until rebased, the new test AI use: merge test by Devin (Cognition, SWE-2); no code changes. |
|
Regression run of Against the limits in CONTRIBUTING.md: 101 % of AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, AI use: Claude Code (Claude Opus 5.5) built both trees and ran |
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 #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.