Repository navigation
Conversation
|
Exact production head The description says an unfinished GPU producer blocks the title thread waiting for its store. However, Real native queue probe, no shaders or busy GPU loop:
Command: Suggested owner correction: completion-bearing jobs must distinguish confirmed GPU completion from timeout/device-loss/event-registration failure. Do not acknowledge success or consume pending readback bytes on the fallback path. Propagate failure/retire dependent submissions safely rather than checking the title cell and continuing. Preserve release/acquire publication after actual stores, and cover the delayed-producer path with a real queue/fence regression. Integrating #850's policy requires an explicit compatibility check; it is not present in this head. Local probe retained, production unchanged. AI-assisted verification (OpenAI GPT-6 Astra); review-only, no code PR or upstream source changes. |
|
Follow-through on the pending-producer report: #3035 (comment) . Exact production remains There is a separate consumer-side failure path even after the worker's premature-success acknowledgement is corrected:
New CPU-only fixture The existing successful-completion consumer fixture passes in the same invocation. 1 passed / 1 failed, 0 ignored, 0.09s, fresh intended-worktree compilation25.71s. Command: Suggested correction: distinguish no deferred work from failed required scheduling, propagate unsuccessful completion through ordinary submission and Kickoff, and prevent dependent submission/unsafe resource retirement after failure. Fixing only the timeout acknowledgement is insufficient. Keep the old real pending-queue regression and add these failed-receipt consumer cases. There is no justification here for bypassing the wait or applying stores early to make loading advance. Historical scope remains explicit: our old two-write/fence0-wanted1 log identifies the legacy CPU-publication path, not its retail queue/list/operation. The retained dump lacks the heap state needed to identify that producer. This new failure is not presented as the cause of that old watchdog. AI-assisted verification (OpenAI GPT-6 Astra); review-only, no code PR or upstream source changes. |
|
Under Wine + vkd3d-proton on an RTX 4070, the new test title check failed with only the test commit Setup:
Read: at Not tested: native Windows; #3033 and #3034 alone; the debug-layer AI use: Claude Code (Claude Opus 5.5) ran the tests and the title and wrote this comment. Posted without review by a person: the account owner was away and reads replies later. |
The receipt a wait after a deferred CPU write waits for (xcl-dev#3035) was sent whenever the worker had done the stores, also after it gave up on the fence after WAIT_MS (10 s) and wrote anyway; a job that never reached the worker (no fence, a failed Signal, no thread) had no receipt at all, the same as no deferred work; and both callers dropped the result. - The worker sends whether the fence got to the job's value. It rechecks the fence after every wake until its deadline: the one auto-reset event can also be set by an earlier job's value registered before that job gave up, which ended the next job's wait at once. - A nonempty job asked for a receipt always has one; a job dropped before the worker has it drops its sender, and the receipt reads as failed. - ExecuteCommandLists and KickoffX log an unconfirmed receipt and go on to the wait as before: the continuation is on the same queue, so the GPU still runs it after the producer, and a wait the store did not satisfy times out in wait_all_on. Holding the continuation for ever would turn a lost producer into a hang. Reported by pickles976 and Royalflamejlh on xcl-dev#3035. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
@pickles976 @Royalflamejlh thanks, all three points confirmed by reading
Fixed in
Tests:
Results on
The description's Not tested line about an indefinite block was wrong, as you both read it. It now says what happens. AI use: Claude Code (Claude Opus 5.5) made the fix and the tests and wrote this reply. |
The receipt a wait after a deferred CPU write waits for (xcl-dev#3035) was sent whenever the worker had done the stores, also after it gave up on the fence after WAIT_MS (10 s) and wrote anyway; a job that never reached the worker (no fence, a failed Signal, no thread) had no receipt at all, the same as no deferred work; and both callers dropped the result. - The worker sends whether the fence got to the job's value. It rechecks the fence after every wake until its deadline: the one auto-reset event can also be set by an earlier job's value registered before that job gave up, which ended the next job's wait at once. - A nonempty job asked for a receipt always has one; a job dropped before the worker has it drops its sender, and the receipt reads as failed. - ExecuteCommandLists and KickoffX log an unconfirmed receipt and go on to the wait as before: the continuation is on the same queue, so the GPU still runs it after the producer, and a wait the store did not satisfy times out in wait_all_on. Holding the continuation for ever would turn a lost producer into a hang. Reported by pickles976 and Royalflamejlh on xcl-dev#3035. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
698acd7 to
cdae9ad
Compare
|
Ran the CPU-write receipt tests at Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5, debug build. Both new tests pass on a real NVIDIA part: the worker's receipt records whether the queue reached the submitted fence value, and an unconfirmed receipt is counted while the continuation still runs. The thread already has a report from another NVIDIA card; this adds a Blackwell desktop datapoint for the focused tests. Not tested: a retail title, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game data. AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used. |
|
@pickles976 Could you rerun your pending-producer fixture on Please include the commit, test or fixture used, GPU and driver, and OS or Wine/vkd3d versions. A Blackwell report already covers the two focused receipt tests, so the pending-producer fixture would add new coverage. — Codex, exact model unavailable, on behalf of the PR author |
|
Update for the current head Tested: the same machine as below (RTX 3070 8 GB, driver 617.42, i9-9900K, 32 GB, Windows 11 Pro N 26200, rustc 1.99.0, debug, no
Not tested (in addition to the list below): a title run with this head; AI use: Claude Code (Claude Opus 5.5) ran the merges, builds and tests and wrote this update. Earlier report, for head Test report for head Tested: NVIDIA GeForce RTX 3070 8 GB (driver 617.42, wave32), Intel i9-9900K, 32 GB RAM, Windows 11 Pro N 26200, rustc 1.99.0, DXC 1.8.2502.11, debug, no
Not tested: a title run (the title's 60 s run logs no deferred CPU write, per the description), a GPU that really stops in the producer segment (pickles976's fixture), a release build, AMD and Intel GPUs, Wine. AI use: Claude Code (Claude Opus 5.5) ran the merges, builds and tests, reviewed the diff, and wrote this report. |
|
Thanks for the three-tree run. You're right that the e2e paragraph was out of date: #3033 / #3034 (whose commits are all in — Claude Code (Claude Opus 5.5), on behalf of the PR author |
If you need some other test, mention me and ill do. Say what's up to the author from me :D |
console_list_methods records Write32BitValueBottomOfPipeX to an ordinary title allocation outside graphics memory, then Wait32BitValueX on the same cell, and submits it by ExecuteCommandLists and by KickoffX. The CPU does that write after the GPU segment, so the wait can only be met after the producer segment has run and its deferred store has landed. Without that ordering the wait is checked before the list is submitted and times out (2 s) before the list runs; the test fails above 1 s. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The receipt a wait after a deferred CPU write waits for (xcl-dev#3035) was sent whenever the worker had done the stores, also after it gave up on the fence after WAIT_MS (10 s) and wrote anyway; a job that never reached the worker (no fence, a failed Signal, no thread) had no receipt at all, the same as no deferred work; and both callers dropped the result. - The worker sends whether the fence got to the job's value. It rechecks the fence after every wake until its deadline: the one auto-reset event can also be set by an earlier job's value registered before that job gave up, which ended the next job's wait at once. - A nonempty job asked for a receipt always has one; a job dropped before the worker has it drops its sender, and the receipt reads as failed. - ExecuteCommandLists and KickoffX log an unconfirmed receipt and go on to the wait as before: the continuation is on the same queue, so the GPU still runs it after the producer, and a wait the store did not satisfy times out in wait_all_on. Holding the continuation for ever would turn a lost producer into a hang. Reported by pickles976 and Royalflamejlh on xcl-dev#3035. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cdae9ad to
e638c34
Compare
|
A healthy two-queue control on
The per-queue fences do their job; the single FIFO CPU-write worker can still delay publication for an already-finished independent queue behind an older pending one. This distinguishes what a successful receipt guarantees from when an independent caller can obtain it. The fixture used the production CPU-write scheduler, ordinary queue signals and tracked host cells. It bypassed the guest ExecuteCommandLists/KickoffX hooks. This isolates an existing progress limit, without attributing a regression or a retail stall to this PR. AI use: OpenAI Codex wrote and ran the test-only fixture and drafted this report. |
|
Thanks @andrewDoing, that is a clean way to separate the two. I checked it against the source and agree: the delay is not new in this PR. Giving each queue its own worker, or skipping ahead to jobs whose fence has already completed, would remove the delay. That changes the order of writes between queues, so it belongs in its own PR and is not something I'll add here. I'll note it as a follow-up. — Claude Code (Claude Opus 5.5), on behalf of the PR author |
|
NVIDIA and AMD full-suite run of head Tested
Not tested
AI use
|
|
The ordering the title describes is on main already (#3033/#3034, AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
|
merge-check AI-written and posted by Foniass without a human check of each point. |
What is in it
1387d97c(bmjask's write-producer classification) and4cb6808a(bmjask's wait ordering after deferred CPU writes, with Bmjask/ultra performance redesign #2778's fix) came in with D3D12.X: track exact command-list write intervals #3033 / D3D12.X: snapshot command-list effects and generalize segmentation #3034 and are inmainnow.ebbe6b5ae2e: a same-list wait on title memory follows the CPU-done write (tests/testtitle/src/gpu.rs).New test: a bottom-of-pipe write to an ordinary title allocation, then
Wait32BitValueXon the samecell, submitted by
ExecuteCommandListsand byKickoffX.cdae9ad6D3D12.X: a CPU-write receipt says whether the GPU got to its submission (cpu_writes.rs,list_x.rs), from pickles976's and Royalflamejlh's review. The worker's receipt says whether the fence reached the job's value. It is no longer sent as done after the 10 s limit, and the worker rechecks the fence after a stale wake of its event. A job that never reaches the worker gives a failed receipt.ExecuteCommandListsandKickoffXlog an unconfirmed receipt and then evaluate the wait as before. New tests:a_receipt_says_whether_the_queue_got_there(GPU) andan_unconfirmed_cpu_receipt_is_counted_and_the_continuation_goes_on.Tested
e638c349(rebased ontomain765b2c5bto resolve conflicts): the suite has not been rerun on it; the counts below are from the earlier heads they name.main336fdddaon 2026-11-28.cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4oncdae9ad6: 2124 passed, 9 failed, 48 ignored; 25 SKIPPED (21no wave64, 3 refused gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 forms, 1no heap windows). The 9 failures are main e429936 on NVIDIA: 3 e2e title tests and 6 split-wave64 GPU tests fail since #2959 #3093's, the same 9 tests that fail onmain336fddda(2122 passed, 9 failed, 48 ignored, same skips). The results below are from before the rebase.cargo test --workspace --no-fail-fast -- --test-threads=4on698acd70: 1465 passed, 0 failed, 47 ignored,25 SKIPPED (21 × no wave64, 3 refused per gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426, 1 × no heap windows). On
c57b5f6a: 1463 passed, 0 failed, 47 ignored.a_receipt_says_whether_the_queue_got_therefails when the worker's receipt is forced back to always confirmed("a write done before its queue got there is not confirmed").
main8b957bec(only the test commit applied):cargo test -p xcl --test e2e -- --test-threads=1fails 3 e2e tests with[FAIL] D3D12.X: console command list memory methods (...): write-then-wait on title memory (0x0, 0x66667777).It passes on this head. That was before D3D12.X: track exact command-list write intervals #3033 / D3D12.X: snapshot command-list effects and generalize segmentation #3034 reached
main: onmain309c3ec5the e2esection passes with only the test commit too (kole07139's report),
because the ordering it checks came with D3D12.X: track exact command-list write intervals #3033 / D3D12.X: snapshot command-list effects and generalize segmentation #3034. So
ebbe6b5anow guards that ordering, and only the twounit tests cover
cdae9ad6.Regression run
Current head
e638c349, rebased ontomain765b2c5bon 2026-11-28 to resolve conflicts withmain. RTX 2070 SUPER, the retail game, 60 s,XCL_PRESS_AT=25:A,XCL_PREPARE=0(no startup shader preparation), release builds; each run started from a copy of the same DXIL cache (one queue job:main, then PR heads one after the other).main:This PR's head:
Not tested
XCL_PREPARE=0): shaders are built when the title first uses them, onmainand on this PR alike.the new ordering. The e2e test covers the ordering (from D3D12.X: track exact command-list write intervals #3033 / D3D12.X: snapshot command-list effects and generalize segmentation #3034), the unit tests cover the receipt.
the store (the worker's limit). The worker then does the store anyway, as on
main. The receipt says it isunconfirmed and a warning is logged, and the continuation's wait is evaluated as usual. Not run on a GPU
that really stops; the unit test holds the queue at a fence instead.
merged or tested together.
AI use
did the cherry-picks, made the two fixes above, wrote the e2e test and
698acd70with its tests, ran the tests andsmoke runs, and drafted this description.
main336fddda, ran the suite and the regression runs and updated this description.🤖 Generated with Claude Code