Repository navigation
D3D12.X: handle a disconnected PSO worker queue - #2826
CryingLaughing wants to merge 2 commits into
Conversation
gut0to
left a comment
There was a problem hiding this comment.
AI-assisted review (OpenAI GPT-6). I traced the disconnected-queue path in this diff; I did not run tests or the game.
| if !enqueue(p) { | ||
| // Preload may still be able to build the job on its own worker. | ||
| p.want(); | ||
| return built(p); |
There was a problem hiding this comment.
If the regular worker channel is disconnected and XCL_PSO_WAIT_MS is set, this returns the stand-in while leaving p.job untouched. Since this PR says the regular channel cannot reopen, subsequent bounded binds take the same branch, and this compute PSO can remain a no-op indefinitely unless some separate unlimited bind happens to take the job. Could this path run the retained job or hand it to a guaranteed fallback before returning the stand-in? AI-assisted review (OpenAI GPT-6); I checked the bounded and unbounded resolve paths in this diff and did not run tests or the game.
There was a problem hiding this comment.
The follow-up at b610d29e92a1b65846fee5abebf6d085fce8c97b gives a rejected send one replacement worker. Bounded binds keep their time budget and leave compilation on that worker. If the OS declines to start it, the job stays pending for an unlimited bind or an existing preload worker.
An independent RX 9070/Wine check at this exact head exercised the real replacement-start function in three fresh synthetic processes. In each, one worker built the rejected first job and a later job. The simulated starter refusal preserved both jobs, which later built once each through unlimited binds. Across the admission and replacement probes the tester constructed 30 native PSOs and exported nonempty driver blobs. The focused probes had no capability skips. Independent results and limits
Track regular queue admission separately from build completion. A bounded bind can return its stand-in after a refused send, while an unlimited bind can still run the retained job. Follows the queue-admission part proposed in xcl-dev#2787 from bmjask/xcl commit 0eaef7e.
Retry rejected work on one replacement regular worker. Count admission time against the bind wait budget and record a late build only after the queue accepts it.
|
Regression run of Setup: RTX 3060 12 GB (NVIDIA 581.80), i9-14900KF, Windows 11 26200, release builds of this PR's base base: this PR: 99 % of the base's frames, 96 % of its peak commit. One run each. Not tested: the suite on this head; whether the title reaches the code this PR changes in its first 60 s; AMD. AI use: Claude Code (Claude Opus 5.5) ran these runs on this machine and wrote this report. |
ec140e8 to
b610d29
Compare
|
Wine / RDNA4 check of the updated queue recovery, including a real replacement worker building native PSOs. Tested
Original tests Both updated
Native admission probe Three fresh processes per revision, with healthy admission, a final injected send refusal, and an image-only resolve called while the send callback is still in progress:
Each case makes exactly one send attempt, performs no inline build during the bounded call, and later completes exactly one actual RX 9070 compute PSO through the admitted callback or an unlimited bind. The head probe passes 1/0/0 in each process. Main's final admission assertion fails 0/1/0 in each process, after all three native controls and object cleanup have completed. Replacement worker, current head A separate local test uses
Across the paired admission probe and replacement tests, all 30 PSOs were constructed successfully on PCI 1002:7550 and exported a nonempty 112-byte driver blob. This checks construction/export, not acceptance of a supplied cache blob. All 13 top-level summaries, queue/job counters, thread names, DXIL/blob bytes, source inventories and executable hashes were independently checked. No runtime skips or ignored tests. Build: Local selectors under Not tested Actual OS refusal to start a thread, work accepted before its receiver exits, preload/contending-waiter stress, scheduling delays under load, GPU dispatch or output, retail inputs, AI use OpenAI Codex (GPT-6; exact serving variant not exposed) reviewed both revisions, reran after the material head update, added the local synthetic fixtures, verified the evidence and drafted this report. Publication authorized by the account owner. |
|
Independent Windows/NVIDIA verification and concurrency review of PR #2826 at head Tested
Review notes (
Not tested
AI use
|
Part of #2787. The admission change follows bmjask’s
0eaef7e6. The review case showed that a bounded bind could otherwise keep getting the stand-in after the regular worker queue closed.What is in it
Tested
b610d29e92a1b65846fee5abebf6d085fce8c97bon8b957bec6f82495aec940944c6bf47faa02db590. Windows 11 25H2 build 26200.9974, Core i5-13600K, RTX 4080 driver 621.01, Rust 1.100.0 x64 MSVC, DXC 1.8.2502.11, debug.cargo test --offline --locked -p xcl --lib -j 2 a_disconnected_regular_queue_ -- --test-threads=1 --nocapturepassed 2/2, with no capability skips. Injected disconnects covered retrying the first job on one replacement, later reuse, no duplicate sends, no late flag during a concurrent bounded wait while admission is pending, and a later unlimited bind after replacement fails.cargo build --offline --locked -j 2 --workspacepassed.cargo test --offline --locked -j 4 --workspace --no-fail-fast -- --test-threads=4 --show-outputreported 1,448 passed, 0 failed, 47 ignored across 38 harnesses. The pass count includes 29 explicit capability skips and 10 separate unset optional sample messages.Regression run
Matched retail smoke is pending for the rebased head. Anon64’s prior-head pair tested
ec140e852be1ee06ac10c9f0c2930a7335ae8087for 60 seconds and reported 99% of baseline frames, 96% of peak commit, and zero crashes or device removals.Not tested