D3D12.X: a CPU-write receipt says whether the GPU got to its submission #3035

Open
KOLESNiii wants to merge 2 commits from upstream-pr/3035 into main
KOLESNiii commented 2026-11-27 15:14:45 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-27T15:14:45Z.


What is in it

  • 1387d97c (bmjask's write-producer classification) and 4cb6808a (bmjask's wait ordering after deferred CPU writes, with #2778's fix) came in with #3033 / #3034 and are in main now.
  • ebbe6b5a e2e: 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 Wait32BitValueX on the same
    cell, submitted by ExecuteCommandLists and by KickoffX.
  • cdae9ad6 D3D12.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. ExecuteCommandLists and KickoffX log an unconfirmed receipt and then evaluate the wait as before. New tests: a_receipt_says_whether_the_queue_got_there (GPU) and an_unconfirmed_cpu_receipt_is_counted_and_the_continuation_goes_on.

Tested

  • NVIDIA RTX 2070 SUPER, Windows 11 build 26300, Rust 1.100.0; tests in debug, runs in release.
  • Current head e638c349 (rebased onto main 765b2c5b to resolve conflicts): the suite has not been rerun on it; the counts below are from the earlier heads they name.
  • Rebased onto main 336fddda on 2026-11-28. cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4 on cdae9ad6: 2124 passed, 9 failed, 48 ignored; 25 SKIPPED (21 no wave64, 3 refused #1426 forms, 1 no heap windows). The 9 failures are #3093's, the same 9 tests that fail on main 336fddda (2122 passed, 9 failed, 48 ignored, same skips). The results below are from before the rebase.
  • cargo test --workspace --no-fail-fast -- --test-threads=4 on 698acd70: 1465 passed, 0 failed, 47 ignored,
    25 SKIPPED (21 × no wave64, 3 refused per #1426, 1 × no heap windows). On c57b5f6a: 1463 passed, 0 failed, 47 ignored.
  • a_receipt_says_whether_the_queue_got_there fails when the worker's receipt is forced back to always confirmed
    ("a write done before its queue got there is not confirmed").
  • The new e2e section on main 8b957bec (only the test commit applied):
    cargo test -p xcl --test e2e -- --test-threads=1 fails 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 #3033 / #3034 reached main: on main 309c3ec5 the e2e
    section passes with only the test commit too (kole07139's report),
    because the ordering it checks came with #3033 / #3034. So ebbe6b5a now guards that ordering, and only the two
    unit tests cover cdae9ad6.

Regression run

Current head e638c349, rebased onto main 765b2c5b on 2026-11-28 to resolve conflicts with main. 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:

xcl-smoke v1
commit: 7db2f391cefd748d47c7de63d50dd43ebb852185
gpu: NVIDIA GeForce RTX 2070 SUPER
title: retail game
seconds: 60
exit: 0x0
frames shown: 1530 (PresentX 1530)
presents per 2 s (last 3): 60 61 60
device removals: 0
crashes: 0
peak commit: 17023 MB

This PR's head:

xcl-smoke v1
commit: e638c3497598d81d6bccf32dbf015a7dad384acc
gpu: NVIDIA GeForce RTX 2070 SUPER
title: retail game
seconds: 60
exit: 0x0
frames shown: 1236 (PresentX 1236)
presents per 2 s (last 3): 61 60 60
device removals: 0
crashes: 0
peak commit: 15334 MB

Not tested

  • The regression runs skip startup shader preparation (XCL_PREPARE=0): shaders are built when the title first uses them, on main and on this PR alike.
  • The retail game's 60 s run logged no deferred CPU write and no mid-list split, so it does not reach
    the new ordering. The e2e test covers the ordering (from #3033 / #3034), the unit tests cover the receipt.
  • AMD and Intel GPUs, and wave64 hardware.
  • If the GPU never finishes the producer segment, the title thread waits up to 10 s in Execute or Kickoff for
    the store (the worker's limit). The worker then does the store anyway, as on main. The receipt says it is
    unconfirmed 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.
  • Overlap with #1256, #2506, #850 and #2439 (same-list wait shortcuts and Write64 sync cells) was not
    merged or tested together.

AI use

  • The code and unit tests are bmjask's, written with Codex (GPT-5.6-sol). Claude Code (Claude Opus 5.5)
    did the cherry-picks, made the two fixes above, wrote the e2e test and 698acd70 with its tests, ran the tests and
    smoke runs, and drafted this description.
  • Claude Code (Claude Opus 5.5) rebased it onto main 336fddda, ran the suite and the regression runs and updated this description.

🤖 Generated with Claude Code

<!-- greyfinch-sync:ivall/xcl:issue:5528955991 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3035). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-27T15:14:45Z. --- **What is in it** - `1387d97c` (bmjask's write-producer classification) and `4cb6808a` (bmjask's wait ordering after deferred CPU writes, with #2778's fix) came in with #3033 / #3034 and are in `main` now. - `ebbe6b5a` e2e: 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 `Wait32BitValueX` on the same cell, submitted by `ExecuteCommandLists` and by `KickoffX`. - `cdae9ad6` D3D12.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. `ExecuteCommandLists` and `KickoffX` log an unconfirmed receipt and then evaluate the wait as before. New tests: `a_receipt_says_whether_the_queue_got_there` (GPU) and `an_unconfirmed_cpu_receipt_is_counted_and_the_continuation_goes_on`. **Tested** - NVIDIA RTX 2070 SUPER, Windows 11 build 26300, Rust 1.100.0; tests in debug, runs in release. - Current head `e638c349` (rebased onto `main` `765b2c5b` to resolve conflicts): the suite has not been rerun on it; the counts below are from the earlier heads they name. - Rebased onto `main` `336fddda` on 2026-11-28. `cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4` on `cdae9ad6`: 2124 passed, 9 failed, 48 ignored; 25 SKIPPED (21 `no wave64`, 3 refused #1426 forms, 1 `no heap windows`). The 9 failures are #3093's, the same 9 tests that fail on `main` `336fddda` (2122 passed, 9 failed, 48 ignored, same skips). The results below are from before the rebase. - `cargo test --workspace --no-fail-fast -- --test-threads=4` on `698acd70`: 1465 passed, 0 failed, 47 ignored, 25 SKIPPED (21 × no wave64, 3 refused per #1426, 1 × no heap windows). On `c57b5f6a`: 1463 passed, 0 failed, 47 ignored. - `a_receipt_says_whether_the_queue_got_there` fails when the worker's receipt is forced back to always confirmed ("a write done before its queue got there is not confirmed"). - The new e2e section on `main` `8b957bec` (only the test commit applied): `cargo test -p xcl --test e2e -- --test-threads=1` fails 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 #3033 / #3034 reached `main`: on `main` `309c3ec5` the e2e section passes with only the test commit too ([kole07139's report](https://github.com/xcl-dev/xcl/pull/3035#issuecomment-7241692529)), because the ordering it checks came with #3033 / #3034. So `ebbe6b5a` now guards that ordering, and only the two unit tests cover `cdae9ad6`. **Regression run** Current head `e638c349`, rebased onto `main` `765b2c5b` on 2026-11-28 to resolve conflicts with `main`. 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`: ``` xcl-smoke v1 commit: 7db2f391cefd748d47c7de63d50dd43ebb852185 gpu: NVIDIA GeForce RTX 2070 SUPER title: retail game seconds: 60 exit: 0x0 frames shown: 1530 (PresentX 1530) presents per 2 s (last 3): 60 61 60 device removals: 0 crashes: 0 peak commit: 17023 MB ``` This PR's head: ``` xcl-smoke v1 commit: e638c3497598d81d6bccf32dbf015a7dad384acc gpu: NVIDIA GeForce RTX 2070 SUPER title: retail game seconds: 60 exit: 0x0 frames shown: 1236 (PresentX 1236) presents per 2 s (last 3): 61 60 60 device removals: 0 crashes: 0 peak commit: 15334 MB ``` **Not tested** - The regression runs skip startup shader preparation (`XCL_PREPARE=0`): shaders are built when the title first uses them, on `main` and on this PR alike. - The retail game's 60 s run logged no deferred CPU write and no mid-list split, so it does not reach the new ordering. The e2e test covers the ordering (from #3033 / #3034), the unit tests cover the receipt. - AMD and Intel GPUs, and wave64 hardware. - If the GPU never finishes the producer segment, the title thread waits up to 10 s in Execute or Kickoff for the store (the worker's limit). The worker then does the store anyway, as on `main`. The receipt says it is unconfirmed 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. - Overlap with #1256, #2506, #850 and #2439 (same-list wait shortcuts and Write64 sync cells) was not merged or tested together. **AI use** - The code and unit tests are bmjask's, written with Codex (GPT-5.6-sol). Claude Code (Claude Opus 5.5) did the cherry-picks, made the two fixes above, wrote the e2e test and `698acd70` with its tests, ran the tests and smoke runs, and drafted this description. - Claude Code (Claude Opus 5.5) rebased it onto `main` `336fddda`, ran the suite and the regression runs and updated this description. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
pickles976 commented 2026-11-27 15:34:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by pickles976 on 2026-11-27T15:34:48Z.


Exact production head c57b5f6a38df6adf669d37277dc22d5b81abc183, local checkout xcl-pr3035 with one test-only regression. Found a completion-contract gap on physical RTX 4060 Laptop 8 GiB / NVIDIA590.48.1 / Wine11 / Linux6.17 /16GiB. Diagnostic-relaxed vkd3d 2576c0b4adfae4a+, vendor masking disabled; not stock certification.

The description says an unfinished GPU producer blocks the title thread waiting for its store. However, cpu_writes::worker still applies stores after the old10s timeout and then sends the new job.done receipt unconditionally. Thus Completion::wait() succeeds without GPU completion. The old premature-store fallback predates this PR; the new receipt carries that fallback into the dependent-segment ordering contract.

Real native queue probe, no shaders or busy GPU loop:

  1. Create a physical NVIDIA device and DIRECT queue; queue.Wait(cpu_gate,1) with gate initially0.
  2. after_with_completion(queue, [Immediate(cell,[7,0])]), initially atomic cell0.
  3. Receive with12s deadline while gate remains0.
  4. Observe receipt=Ok(()) cell=7 gate=0 elapsed_ms=10053 and worker diagnostic fence at0,wanted1.
  5. Signal gate1 using a panic-safe release guard, signal a fresh drain fence and require the queue to drain; only then assert the semantic failure.

lab_completion_does_not_acknowledge_an_unfinished_producer fails at the assertion that no completion may be acknowledged before producer completion. The two existing cpu_writes fixtures plus producer-classification, split-failure and continuation-completion fixtures pass: 5passed/1failed,0ignored,10.73s after fresh25.68s intended-worktree compilation. The existing continuation test uses a synthetic completion sender; it does not test this worker timeout. The existing readback fixture also logged a fallback in this shared-process run, so its passing bytes do not prove confirmed fence completion (it preloads the readback memory).

Command: cargo test --locked --target x86_64-pc-windows-msvc -p xcl --lib -- cpu_writes::tests wait_placement_distinguishes_cpu_gpu_and_write64_producers failed_cpu_wait_split_never_reuses_the_producer_segment cpu_producer_completion_precedes_the_continuation_wait --nocapture --test-threads=1 via our guarded Wine wrapper. Evidence .compat-runtime/logs/verify-xcl3035-producer-completion-20261127T153302Z/. Scope9GiB/512MiB, global safety cutoffs unchanged; GPUpeak218MiB, minavailableRAM9921MiB, mindisk14.347GiB. No retail title run, same-list E2E certification, matched-parent test, or causal claim for our historical Game-Init fence0/wanted1 stall.

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.

<!-- greyfinch-sync:ivall/xcl:comment:7222229021 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3035#issuecomment-7222229021). Originally posted by [pickles976](https://github.com/pickles976) on 2026-11-27T15:34:48Z. --- Exact production head `c57b5f6a38df6adf669d37277dc22d5b81abc183`, local checkout `xcl-pr3035` with one test-only regression. Found a completion-contract gap on physical RTX 4060 Laptop 8 GiB / NVIDIA590.48.1 / Wine11 / Linux6.17 /16GiB. Diagnostic-relaxed vkd3d `2576c0b4adfae4a+`, vendor masking disabled; not stock certification. The description says an unfinished GPU producer blocks the title thread waiting for its store. However, `cpu_writes::worker` still applies stores after the old10s timeout and then sends the new `job.done` receipt unconditionally. Thus `Completion::wait()` succeeds without GPU completion. The old premature-store fallback predates this PR; the new receipt carries that fallback into the dependent-segment ordering contract. Real native queue probe, no shaders or busy GPU loop: 1. Create a physical NVIDIA device and DIRECT queue; `queue.Wait(cpu_gate,1)` with gate initially0. 2. `after_with_completion(queue, [Immediate(cell,[7,0])])`, initially atomic cell0. 3. Receive with12s deadline while gate remains0. 4. Observe `receipt=Ok(()) cell=7 gate=0 elapsed_ms=10053` and worker diagnostic `fence at0,wanted1`. 5. Signal gate1 using a panic-safe release guard, signal a fresh drain fence and require the queue to drain; only then assert the semantic failure. `lab_completion_does_not_acknowledge_an_unfinished_producer` fails at the assertion that no completion may be acknowledged before producer completion. The two existing cpu_writes fixtures plus producer-classification, split-failure and continuation-completion fixtures pass: **5passed/1failed**,0ignored,10.73s after fresh25.68s intended-worktree compilation. The existing continuation test uses a synthetic completion sender; it does not test this worker timeout. The existing readback fixture also logged a fallback in this shared-process run, so its passing bytes do not prove confirmed fence completion (it preloads the readback memory). Command: `cargo test --locked --target x86_64-pc-windows-msvc -p xcl --lib -- cpu_writes::tests wait_placement_distinguishes_cpu_gpu_and_write64_producers failed_cpu_wait_split_never_reuses_the_producer_segment cpu_producer_completion_precedes_the_continuation_wait --nocapture --test-threads=1` via our guarded Wine wrapper. Evidence `.compat-runtime/logs/verify-xcl3035-producer-completion-20261127T153302Z/`. Scope9GiB/512MiB, global safety cutoffs unchanged; GPUpeak218MiB, minavailableRAM9921MiB, mindisk14.347GiB. No retail title run, same-list E2E certification, matched-parent test, or causal claim for our historical Game-Init fence0/wanted1 stall. 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.
pickles976 commented 2026-11-27 15:57:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by pickles976 on 2026-11-27T15:57:14Z.


Follow-through on the pending-producer report: https://github.com/xcl-dev/xcl/pull/3035#issuecomment-7222229021 . Exact production remains c57b5f6a38df6adf669d37277dc22d5b81abc183; only local regression fixtures changed.

There is a separate consumer-side failure path even after the worker's premature-success acknowledgement is corrected:

  • schedule() returns None on device/fence creation, queue Signal or channel-send failure, indistinguishable from no deferred work.
  • execute_submission_plan_with_completions() proceeds when its required receipt is absent. For a returned receipt it discards the bool from Completion::wait() at list_x.rs:2422; KickoffX does likewise at line3673.

New CPU-only fixture lab_missing_or_disconnected_cpu_receipt_blocks_continuation builds an immutable two-segment plan: a CpuAfterSegment producer and a continuation waiting on the same address. The cell starts with an already-matching value, as in the existing owner success fixture; it must not stand in for this submission's completion. The fixture exercises the actual ordinary-submission executor, first with the submit callback returning None (failed scheduling), then with a real completion channel whose sender is dropped without sending (worker failure). Both release the dependent continuation:

missing_receipt=true disconnected_receipt=false continuation_submitted=true
missing_receipt=false disconnected_receipt=true continuation_submitted=true
left: [true, true]
right: [false, false]

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: cargo test --locked --target x86_64-pc-windows-msvc -p xcl --lib -- lab_missing_or_disconnected_cpu_receipt_blocks_continuation cpu_producer_completion_precedes_the_continuation_wait --nocapture --test-threads=1, guarded Wine wrapper. Evidence .compat-runtime/logs/verify-xcl3035-failed-receipt-20261127T155548Z/. Wine11/Linux6.17/16GiB; no GPU adapter initialization, GPU dispatch, native queue failure injection, title run or historical crash-causality claim. The callback models scheduling failure and the channel really disconnects; this does not exercise the native cause of either failure. No production changes.

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.

<!-- greyfinch-sync:ivall/xcl:comment:7222680443 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3035#issuecomment-7222680443). Originally posted by [pickles976](https://github.com/pickles976) on 2026-11-27T15:57:14Z. --- Follow-through on the pending-producer report: https://github.com/xcl-dev/xcl/pull/3035#issuecomment-7222229021 . Exact production remains `c57b5f6a38df6adf669d37277dc22d5b81abc183`; only local regression fixtures changed. There is a separate consumer-side failure path even after the worker's premature-success acknowledgement is corrected: - `schedule()` returns `None` on device/fence creation, queue Signal or channel-send failure, indistinguishable from no deferred work. - `execute_submission_plan_with_completions()` proceeds when its required receipt is absent. For a returned receipt it discards the bool from `Completion::wait()` at `list_x.rs:2422`; `KickoffX` does likewise at line3673. New CPU-only fixture `lab_missing_or_disconnected_cpu_receipt_blocks_continuation` builds an immutable two-segment plan: a CpuAfterSegment producer and a continuation waiting on the same address. The cell starts with an already-matching value, as in the existing owner success fixture; it must not stand in for this submission's completion. The fixture exercises the actual ordinary-submission executor, first with the submit callback returning None (failed scheduling), then with a real completion channel whose sender is dropped without sending (worker failure). Both release the dependent continuation: ``` missing_receipt=true disconnected_receipt=false continuation_submitted=true missing_receipt=false disconnected_receipt=true continuation_submitted=true left: [true, true] right: [false, false] ``` 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: `cargo test --locked --target x86_64-pc-windows-msvc -p xcl --lib -- lab_missing_or_disconnected_cpu_receipt_blocks_continuation cpu_producer_completion_precedes_the_continuation_wait --nocapture --test-threads=1`, guarded Wine wrapper. Evidence `.compat-runtime/logs/verify-xcl3035-failed-receipt-20261127T155548Z/`. Wine11/Linux6.17/16GiB; no GPU adapter initialization, GPU dispatch, native queue failure injection, title run or historical crash-causality claim. The callback models scheduling failure and the channel really disconnects; this does not exercise the native cause of either failure. No production changes. 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.
Royalflamejlh commented 2026-11-27 16:33:59 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Royalflamejlh on 2026-11-27T16:33:59Z.


Under Wine + vkd3d-proton on an RTX 4070, the new test title check failed with only the test commit c57b5f6a cherry-picked and passed with this pull request, 2 of 2 runs each: write-then-wait on title memory (0x0, 0x66667777), as on your 8b957bec run. The title's own runs made no deferred CPU write, so they do not reach the new ordering.

Setup: main f9a0cb80 + #684 (which our runs need): alone, + the test commit c57b5f6a cherry-picked, and + this pull request (merged cleanly); release, Wine 11.21 Staging + vkd3d-proton v3.1-90-g30b0eb9b with local patches (#175's relaxed vtables, dxil-spirv), RTX 4070 12 GB, driver 615.71.09. cargo test --release -p xcl --test e2e --target x86_64-pc-windows-gnu -- --test-threads=1; title runs 120 s in turn, A pressed once steady, XCL_PREPARE=0, XCL_PSO_PRELOAD=0, first-run screens done once, no story progress.

Tree Test title checks failed (e2e, 2 runs) Title: last 2 s window with presents ends at Frames
main + #684 "W: not cloaked" 72.2 s, 70.1 s 1338, 1333
+ the test commit c57b5f6a only the cloaking one and "write-then-wait on title memory (0x0, 0x66667777)" — —
+ this pull request "W: not cloaked" 72.2 s, 72.2 s 1362, 1367
  • test_title_runs_and_game_folder_is_untouched fails in all six runs on "W: not cloaked", a Wine difference on main here. The two debug-layer e2e tests were skipped (no d3d12SDKLayers.dll), so one test carries the new check, not three as in your run.
  • No title run logged bottom-of-pipe writes outside unified memory are done by the CPU after the GPU (cpu_writes.rs:212), as in your 60 s run; all four printed the same four splits, all after Write64, and no queue.Wait timeout or device removal.

Read: at c57b5f6a the worker waits at most WAIT_MS (10 s), then applies the stores and sends done whether or not the fence got there (cpu_writes.rs:63–85), and list_x.rs:2422 and :3673 drop Completion::wait()'s result. So a producer the GPU never finishes costs a 10 s stall and then a store the GPU had not reached, not the indefinite block the description's Not tested names; pickles976's two comments read it the same way.

Not tested: native Windows; #3033 and #3034 alone; the debug-layer e2e tests and the rest of the suite; the title past the loading screens.

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.

<!-- greyfinch-sync:ivall/xcl:comment:7223409581 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3035#issuecomment-7223409581). Originally posted by [Royalflamejlh](https://github.com/Royalflamejlh) on 2026-11-27T16:33:59Z. --- Under Wine + vkd3d-proton on an RTX 4070, the new test title check failed with only the test commit `c57b5f6a` cherry-picked and passed with this pull request, 2 of 2 runs each: `write-then-wait on title memory (0x0, 0x66667777)`, as on your `8b957bec` run. The title's own runs made no deferred CPU write, so they do not reach the new ordering. Setup: `main` `f9a0cb80` + #684 (which our runs need): alone, + the test commit `c57b5f6a` cherry-picked, and + this pull request (merged cleanly); release, Wine 11.21 Staging + vkd3d-proton v3.1-90-g30b0eb9b with local patches (#175's relaxed vtables, dxil-spirv), RTX 4070 12 GB, driver 615.71.09. `cargo test --release -p xcl --test e2e --target x86_64-pc-windows-gnu -- --test-threads=1`; title runs 120 s in turn, A pressed once steady, `XCL_PREPARE=0`, `XCL_PSO_PRELOAD=0`, first-run screens done once, no story progress. | Tree | Test title checks failed (`e2e`, 2 runs) | Title: last 2 s window with presents ends at | Frames | |---|---|---|---| | `main` + #684 | "W: not cloaked" | 72.2 s, 70.1 s | 1338, 1333 | | + the test commit `c57b5f6a` only | the cloaking one and "write-then-wait on title memory (0x0, 0x66667777)" | — | — | | + this pull request | "W: not cloaked" | 72.2 s, 72.2 s | 1362, 1367 | - `test_title_runs_and_game_folder_is_untouched` fails in all six runs on "W: not cloaked", a Wine difference on `main` here. The two debug-layer `e2e` tests were skipped (no `d3d12SDKLayers.dll`), so one test carries the new check, not three as in your run. - No title run logged `bottom-of-pipe writes outside unified memory are done by the CPU after the GPU` (`cpu_writes.rs:212`), as in your 60 s run; all four printed the same four splits, all `after Write64`, and no `queue.Wait` timeout or device removal. *Read:* at `c57b5f6a` the worker waits at most `WAIT_MS` (10 s), then applies the stores and sends `done` whether or not the fence got there (`cpu_writes.rs:63–85`), and `list_x.rs:2422` and `:3673` drop `Completion::wait()`'s result. So a producer the GPU never finishes costs a 10 s stall and then a store the GPU had not reached, not the indefinite block the description's **Not tested** names; pickles976's two comments read it the same way. **Not tested:** native Windows; #3033 and #3034 alone; the debug-layer `e2e` tests and the rest of the suite; the title past the loading screens. **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.
KOLESNiii commented 2026-11-28 00:30:24 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-28T00:30:24Z.


@pickles976 @Royalflamejlh thanks, all three points confirmed by reading c57b5f6a:

  1. the worker sent done after giving up on the fence at WAIT_MS (10 s) and writing anyway, so Completion::wait() said yes without the GPU;
  2. a job that never reached the worker (no fence, a failed Signal, a closed channel) gave no receipt, the same as no deferred work;
  3. list_x.rs:2422 and :3673 dropped the result.

Fixed in 698acd70 (a new commit on top, D3D12.X: a CPU-write receipt says whether the GPU got to its submission):

  • The worker sends whether the fence reached the job's value. It also rechecks the fence after every wake until its deadline. The worker's one auto-reset event can be set by an earlier job's value that was registered before that job gave up. That ended the next job's wait at once, the same stale-wake pattern as in #3063.
  • A nonempty job asked for a receipt always gets one. A job dropped before the worker has it drops its sender, so the receipt reads as failed.
  • ExecuteCommandLists and KickoffX log an unconfirmed receipt (8 times at most). They then go on to the continuation's wait as before, rather than holding the continuation. The continuation is on the same queue, so the GPU still runs it after the producer. A wait the store did not satisfy times out in wait_all_on, as on main. Holding the continuation until a receipt confirms would turn a lost producer or a removed device into a hang. If you see a case where same-queue order is not enough, I'd like to hear it.

Tests:

  • New GPU test cpu_writes::tests::a_receipt_says_whether_the_queue_got_there. The queue waits at a CPU gate, so the receipt must say no after a 50 ms limit. A second job waits behind a second gate while the first gate's value sets the event: it must not be written early, and it must be confirmed once its gate opens. A job with no queue gives a failed receipt.
  • New CPU test list_x::tests::an_unconfirmed_cpu_receipt_is_counted_and_the_continuation_goes_on.

Results on 698acd70, RTX 2070 SUPER, Windows 11 26300, debug:

  • cargo test -p xcl --lib -- cpu_writes:: an_unconfirmed_cpu_receipt cpu_producer_completion_precedes --test-threads=1: 5 passed, 0 failed.
  • Negative check: with the worker's receipt forced back to always confirmed, a_receipt_says_whether_the_queue_got_there fails with "a write done before its queue got there is not confirmed".
  • cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4: 1465 passed, 0 failed, 47 ignored; 25 SKIPPED (21 × no wave64, 3 refused per #1426, 1 × no heap windows).
  • The smoke run of this head is queued; I'll add its block to the description.

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.

<!-- greyfinch-sync:ivall/xcl:comment:7230966760 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3035#issuecomment-7230966760). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-28T00:30:24Z. --- @pickles976 @Royalflamejlh thanks, all three points confirmed by reading `c57b5f6a`: 1. the worker sent `done` after giving up on the fence at `WAIT_MS` (10 s) and writing anyway, so `Completion::wait()` said yes without the GPU; 2. a job that never reached the worker (no fence, a failed `Signal`, a closed channel) gave no receipt, the same as no deferred work; 3. `list_x.rs:2422` and `:3673` dropped the result. Fixed in `698acd70` (a new commit on top, *D3D12.X: a CPU-write receipt says whether the GPU got to its submission*): - The worker sends whether the fence reached the job's value. It also rechecks the fence after every wake until its deadline. The worker's one auto-reset event can be set by an earlier job's value that was registered before that job gave up. That ended the next job's wait at once, the same stale-wake pattern as in #3063. - A nonempty job asked for a receipt always gets one. A job dropped before the worker has it drops its sender, so the receipt reads as failed. - `ExecuteCommandLists` and `KickoffX` log an unconfirmed receipt (8 times at most). They then go on to the continuation's wait as before, rather than holding the continuation. The continuation is on the same queue, so the GPU still runs it after the producer. A wait the store did not satisfy times out in `wait_all_on`, as on `main`. Holding the continuation until a receipt confirms would turn a lost producer or a removed device into a hang. If you see a case where same-queue order is not enough, I'd like to hear it. Tests: - New GPU test `cpu_writes::tests::a_receipt_says_whether_the_queue_got_there`. The queue waits at a CPU gate, so the receipt must say no after a 50 ms limit. A second job waits behind a second gate while the first gate's value sets the event: it must not be written early, and it must be confirmed once its gate opens. A job with no queue gives a failed receipt. - New CPU test `list_x::tests::an_unconfirmed_cpu_receipt_is_counted_and_the_continuation_goes_on`. Results on `698acd70`, RTX 2070 SUPER, Windows 11 26300, debug: - `cargo test -p xcl --lib -- cpu_writes:: an_unconfirmed_cpu_receipt cpu_producer_completion_precedes --test-threads=1`: 5 passed, 0 failed. - Negative check: with the worker's receipt forced back to always confirmed, `a_receipt_says_whether_the_queue_got_there` fails with "a write done before its queue got there is not confirmed". - `cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4`: 1465 passed, 0 failed, 47 ignored; 25 SKIPPED (21 × no wave64, 3 refused per #1426, 1 × no heap windows). - The smoke run of this head is queued; I'll add its block to the description. 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.
Aniseto commented 2026-11-28 13:53:57 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-28T13:53:57Z.


Ran the CPU-write receipt tests at cdae9ad6 on an NVIDIA Blackwell desktop part:

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.

XCL_ADAPTER=NVIDIA cargo test -p xcl --lib -- a_receipt_says_whether_the_queue_got_there an_unconfirmed_cpu_receipt_is_counted_and_the_continuation_goes_on --test-threads=1
2 passed; 0 failed; 0 ignored; 0 measured; 2025 filtered out      (exit 0)

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.

<!-- greyfinch-sync:ivall/xcl:comment:7240264283 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3035#issuecomment-7240264283). Originally posted by [Aniseto](https://github.com/Aniseto) on 2026-11-28T13:53:57Z. --- Ran the CPU-write receipt tests at `cdae9ad6` on an NVIDIA Blackwell desktop part: 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. ``` XCL_ADAPTER=NVIDIA cargo test -p xcl --lib -- a_receipt_says_whether_the_queue_got_there an_unconfirmed_cpu_receipt_is_counted_and_the_continuation_goes_on --test-threads=1 2 passed; 0 failed; 0 ignored; 0 measured; 2025 filtered out (exit 0) ``` 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.
KOLESNiii commented 2026-11-28 15:12:51 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-28T15:12:51Z.


@pickles976 Could you rerun your pending-producer fixture on cdae9ad6 through both ExecuteCommandLists and KickoffX? For the successful case, please verify that the producer segment reaches its fence and the deferred CPU store lands before the continuation evaluates the wait. If you still have the failed or unscheduled producer fixture, please check that XCL logs an unconfirmed receipt and that the continuation takes the bounded wait path without hanging. Please report which paths you exercised and the observed result for each.

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

<!-- greyfinch-sync:ivall/xcl:comment:7241291708 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3035#issuecomment-7241291708). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-28T15:12:51Z. --- @pickles976 Could you rerun your pending-producer fixture on `cdae9ad6` through both `ExecuteCommandLists` and `KickoffX`? For the successful case, please verify that the producer segment reaches its fence and the deferred CPU store lands before the continuation evaluates the wait. If you still have the failed or unscheduled producer fixture, please check that XCL logs an unconfirmed receipt and that the continuation takes the bounded wait path without hanging. Please report which paths you exercised and the observed result for each. 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
kole07139 commented 2026-11-28 15:43:58 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by kole07139 on 2026-11-28T15:43:58Z.


Update for the current head e638c349 (rebased): the whole suite on it, which the description says was not rerun. No new failures; the two new unit tests pass.

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 XCL_* set). Two trees with separate target directories:

  • main 7db2f391;
  • main 7db2f391 + this head (clean merge, 5cdd5aeb).
main 7db2f391 main + e638c349
cargo test --workspace --no-fail-fast -- --test-threads=4 2590 passed, 4 failed, 49 ignored 2592 passed, 4 failed, 49 ignored
the same 4 e2e tests after cargo build --workspace: cargo test -p xcl --test e2e -- --test-threads=1 5 passed, 0 failed 5 passed, 0 failed
SKIPPED lines 28 28 (the same tests)
  • The 4 failures in the suite runs are my setup, not the code. I ran the suite without building the workspace first, so the 4 title tests panicked with missing ...\debug\xcl_testtitle.exe ... build first: cargo build --workspace on both trees. After the build, all 5 e2e tests pass on both trees. So the counts are 2594 / 0 / 49 on main and 2596 / 0 / 49 with this head.
  • a_receipt_says_whether_the_queue_got_there and an_unconfirmed_cpu_receipt_is_counted_and_the_continuation_goes_on pass.
  • git range-diff from cdae9ad6 to e638c349: the test commit is unchanged. The receipt commit differs only in reading the fence through main's super::real::fence_completed instead of GetCompletedValue, plus the rebase context. So the review notes below still apply.

Not tested (in addition to the list below): a title run with this head; main past 7db2f391.

AI use: Claude Code (Claude Opus 5.5) ran the merges, builds and tests and wrote this update.


Earlier report, for head cdae9ad6:

Test report for head cdae9ad6 on main 309c3ec5, which has #3149 (so the e2e title tests no longer fail on #3093's post-Wait32/64 check). The whole suite passes with this PR, and the new title check is exercised through both paths. On current main, though, the title check passes without this PR's runtime commit too.

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 XCL_* set. The D3D12 debug layer is installed, so all three e2e title tests carry the new check (none skipped). Three trees with separate target directories:

  • main 309c3ec5;
  • main + this head (clean merge);
  • main + only the test commit ebbe6b5a (cherry-picked).
main 309c3ec5 main + cdae9ad6 main + ebbe6b5a only
cargo test --workspace --no-fail-fast -- --test-threads=4 2142 passed, 0 failed, 48 ignored 2144 passed, 0 failed, 48 ignored –
SKIPPED lines 26 26 –
cargo test -p xcl --test e2e -- --test-threads=1 – 5 passed (2 runs of 2, plus the suite run) 5 passed (2 runs of 2)
  • The two new tests, a_receipt_says_whether_the_queue_got_there and an_unconfirmed_cpu_receipt_is_counted_and_the_continuation_goes_on, pass in the suite run and in 3 more runs of cargo test -p xcl --lib -- --test-threads=1 cpu_writes:: an_unconfirmed_cpu_receipt_is_counted_and_the_continuation_goes_on (4 passed each time).
  • The title check runs the new ordering on both trees. With --nocapture, test_title_runs_and_game_folder_is_untouched logs bottom-of-pipe writes outside unified memory are done by the CPU after the GPU, then split command list (type 0) around mid-list Wait after CPU-after-segment write #1 and #2 (by ExecuteCommandLists and by KickoffX). It reports [PASS] D3D12.X: console command list memory methods (…). With this head the run logs no goes on without the GPU warning.
  • Not a regression test for cdae9ad6 any more: with only the test commit on main 309c3ec5, the check passes as well. That is expected: the ordering itself came with #3033 / #3034 and is in main now. So this section of the description is out of date: "fails 3 e2e tests ... It passes on this head" was measured on main 8b957bec. On current main the title check guards #3033 / #3034, and only the two unit tests cover the receipt commit.
  • Review of cdae9ad6:
    • The worker now rechecks the fence after each wake until its deadline, which covers the stale wake from a job that was given up.
    • A job dropped before the worker gets it drops its sender, so its receipt reads false.
    • ExecuteCommandLists and KickoffX log an unconfirmed receipt and keep the bounded wait, as described.
    • I found nothing to change.

main has since moved to bb9a6b4b (#3100, which touches none of this PR's files). The head merges into it without conflict; I did not rerun the suite there.

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.

<!-- greyfinch-sync:ivall/xcl:comment:7241692529 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3035#issuecomment-7241692529). Originally posted by [kole07139](https://github.com/kole07139) on 2026-11-28T15:43:58Z. --- **Update for the current head `e638c349`** (rebased): the whole suite on it, which the description says was not rerun. **No new failures; the two new unit tests pass.** **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 `XCL_*` set). Two trees with separate target directories: - `main` `7db2f391`; - `main` `7db2f391` + this head (clean merge, `5cdd5aeb`). | | `main` `7db2f391` | `main` + `e638c349` | |---|---|---| | `cargo test --workspace --no-fail-fast -- --test-threads=4` | 2590 passed, 4 failed, 49 ignored | 2592 passed, 4 failed, 49 ignored | | the same 4 `e2e` tests after `cargo build --workspace`: `cargo test -p xcl --test e2e -- --test-threads=1` | 5 passed, 0 failed | 5 passed, 0 failed | | `SKIPPED` lines | 28 | 28 (the same tests) | - The 4 failures in the suite runs are my setup, not the code. I ran the suite without building the workspace first, so the 4 title tests panicked with `missing ...\debug\xcl_testtitle.exe ... build first: cargo build --workspace` on both trees. After the build, all 5 `e2e` tests pass on both trees. So the counts are 2594 / 0 / 49 on `main` and 2596 / 0 / 49 with this head. - `a_receipt_says_whether_the_queue_got_there` and `an_unconfirmed_cpu_receipt_is_counted_and_the_continuation_goes_on` pass. - `git range-diff` from `cdae9ad6` to `e638c349`: the test commit is unchanged. The receipt commit differs only in reading the fence through `main`'s `super::real::fence_completed` instead of `GetCompletedValue`, plus the rebase context. So the review notes below still apply. **Not tested** (in addition to the list below): a title run with this head; `main` past `7db2f391`. AI use: Claude Code (Claude Opus 5.5) ran the merges, builds and tests and wrote this update. --- **Earlier report, for head `cdae9ad6`:** Test report for head `cdae9ad6` on `main` `309c3ec5`, which has #3149 (so the `e2e` title tests no longer fail on #3093's post-Wait32/64 check). **The whole suite passes with this PR, and the new title check is exercised through both paths.** On current `main`, though, the title check passes without this PR's runtime commit too. **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 `XCL_*` set. The D3D12 debug layer is installed, so all three `e2e` title tests carry the new check (none skipped). Three trees with separate target directories: - `main` `309c3ec5`; - `main` + this head (clean merge); - `main` + only the test commit `ebbe6b5a` (cherry-picked). | | `main` `309c3ec5` | `main` + `cdae9ad6` | `main` + `ebbe6b5a` only | |---|---|---|---| | `cargo test --workspace --no-fail-fast -- --test-threads=4` | 2142 passed, 0 failed, 48 ignored | **2144 passed, 0 failed, 48 ignored** | – | | `SKIPPED` lines | 26 | 26 | – | | `cargo test -p xcl --test e2e -- --test-threads=1` | – | 5 passed (2 runs of 2, plus the suite run) | **5 passed** (2 runs of 2) | - The two new tests, `a_receipt_says_whether_the_queue_got_there` and `an_unconfirmed_cpu_receipt_is_counted_and_the_continuation_goes_on`, pass in the suite run and in 3 more runs of `cargo test -p xcl --lib -- --test-threads=1 cpu_writes:: an_unconfirmed_cpu_receipt_is_counted_and_the_continuation_goes_on` (4 passed each time). - The title check runs the new ordering on both trees. With `--nocapture`, `test_title_runs_and_game_folder_is_untouched` logs `bottom-of-pipe writes outside unified memory are done by the CPU after the GPU`, then `split command list (type 0) around mid-list Wait after CPU-after-segment write` #1 and #2 (by `ExecuteCommandLists` and by `KickoffX`). It reports `[PASS] D3D12.X: console command list memory methods (…)`. With this head the run logs no `goes on without the GPU` warning. - **Not a regression test for `cdae9ad6` any more:** with only the test commit on `main` `309c3ec5`, the check passes as well. That is expected: the ordering itself came with #3033 / #3034 and is in `main` now. So this section of the description is out of date: "fails 3 e2e tests ... It passes on this head" was measured on `main` `8b957bec`. On current `main` the title check guards #3033 / #3034, and only the two unit tests cover the receipt commit. - Review of `cdae9ad6`: - The worker now rechecks the fence after each wake until its deadline, which covers the stale wake from a job that was given up. - A job dropped before the worker gets it drops its sender, so its receipt reads `false`. - `ExecuteCommandLists` and `KickoffX` log an unconfirmed receipt and keep the bounded wait, as described. - I found nothing to change. `main` has since moved to `bb9a6b4b` (#3100, which touches none of this PR's files). The head merges into it without conflict; I did not rerun the suite there. **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.
KOLESNiii commented 2026-11-28 15:45:59 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-28T15:45:59Z.


Thanks for the three-tree run. You're right that the e2e paragraph was out of date: #3033 / #3034 (whose commits are all in main now) brought the ordering the e2e section checks, so on current main the section passes with only ebbe6b5a. I updated Tested and Not tested: ebbe6b5a now guards that ordering, and cdae9ad6 is covered by the two unit tests only. No code change, head stays cdae9ad6.

— Claude Code (Claude Opus 5.5), on behalf of the PR author

<!-- greyfinch-sync:ivall/xcl:comment:7241717818 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3035#issuecomment-7241717818). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-28T15:45:59Z. --- Thanks for the three-tree run. You're right that the e2e paragraph was out of date: #3033 / #3034 (whose commits are all in `main` now) brought the ordering the e2e section checks, so on current `main` the section passes with only `ebbe6b5a`. I updated **Tested** and **Not tested**: `ebbe6b5a` now guards that ordering, and `cdae9ad6` is covered by the two unit tests only. No code change, head stays `cdae9ad6`. — Claude Code (Claude Opus 5.5), on behalf of the PR author
kole07139 commented 2026-11-28 15:48:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by kole07139 on 2026-11-28T15:48:04Z.


Thanks for the three-tree run. You're right that the e2e paragraph was out of date: #3033 / #3034 (whose commits are all in main now) brought the ordering the e2e section checks, so on current main the section passes with only ebbe6b5a. I updated Tested and Not tested: ebbe6b5a now guards that ordering, and cdae9ad6 is covered by the two unit tests only. No code change, head stays cdae9ad6.

— 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

<!-- greyfinch-sync:ivall/xcl:comment:7241745183 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3035#issuecomment-7241745183). Originally posted by [kole07139](https://github.com/kole07139) on 2026-11-28T15:48:04Z. --- > Thanks for the three-tree run. You're right that the e2e paragraph was out of date: #3033 / #3034 (whose commits are all in `main` now) brought the ordering the e2e section checks, so on current `main` the section passes with only `ebbe6b5a`. I updated **Tested** and **Not tested**: `ebbe6b5a` now guards that ordering, and `cdae9ad6` is covered by the two unit tests only. No code change, head stays `cdae9ad6`. > > — 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
andrewDoing commented 2026-11-28 23:49:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by andrewDoing on 2026-11-28T23:49:32Z.


A healthy two-queue control on e638c3497598d81d6bccf32dbf015a7dad384acc, RTX 5070 driver 616.92, distinguishes queue completion from publication of the deferred CPU store.

  1. Queue B alone: its bottom-of-pipe CPU receipt returned true and an acquire load read 0xc3c3c3c3.
  2. I put queue A behind a bounded fence gate, then scheduled an ordinary deferred store on A and another on independent queue B. The stores targeted different CPU cells. B had no GPU wait on A. A marker enqueued on B after XCL's write fence reached value 1, proving B had passed its own write's signal.
  3. While A was gated, B's CPU receipt remained pending for the 100 ms observation and both cells still read zero. I then released A. Both receipts returned true, and dependent acquire loads read 0xa1a1a1a1 and 0xb2b2b2b2. Neither worker fence timed out.

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.

<!-- greyfinch-sync:ivall/xcl:comment:7247688152 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3035#issuecomment-7247688152). Originally posted by [andrewDoing](https://github.com/andrewDoing) on 2026-11-28T23:49:32Z. --- A healthy two-queue control on `e638c3497598d81d6bccf32dbf015a7dad384acc`, RTX 5070 driver 616.92, distinguishes **queue completion** from **publication of the deferred CPU store**. 1. Queue B alone: its bottom-of-pipe CPU receipt returned true and an acquire load read 0xc3c3c3c3. 2. I put queue A behind a bounded fence gate, then scheduled an ordinary deferred store on A and another on independent queue B. The stores targeted different CPU cells. B had no GPU wait on A. A marker enqueued on B **after** XCL's write fence reached value 1, proving B had passed its own write's signal. 3. While A was gated, B's CPU receipt remained pending for the 100 ms observation and both cells still read zero. I then released A. Both receipts returned true, and dependent acquire loads read 0xa1a1a1a1 and 0xb2b2b2b2. Neither worker fence timed out. 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.
KOLESNiii commented 2026-11-29 20:45:15 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-11-29T20:45:15Z.


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. main already has one xcl-cpu-writes thread for every queue (crates/xcl/src/hle/d3d12x/cpu_writes.rs:67-96). It takes jobs from a single channel in submission order (the module comment at :8 says so) and blocks on each job's fence, up to WAIT_MS, before it moves on. So a finished queue B waits behind a gated queue A. This PR keeps that worker and only adds the receipt saying whether the GPU got there, so the order your fixture measured is the same as main's.

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

<!-- greyfinch-sync:ivall/xcl:comment:7262330939 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3035#issuecomment-7262330939). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-11-29T20:45:15Z. --- 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. `main` already has one `xcl-cpu-writes` thread for every queue (`crates/xcl/src/hle/d3d12x/cpu_writes.rs:67-96`). It takes jobs from a single channel in submission order (the module comment at `:8` says so) and blocks on each job's fence, up to `WAIT_MS`, before it moves on. So a finished queue B waits behind a gated queue A. This PR keeps that worker and only adds the receipt saying whether the GPU got there, so the order your fixture measured is the same as `main`'s. 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
futurepro62 commented 2026-11-30 02:39:51 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-30T02:39:51Z.


NVIDIA and AMD full-suite run of head e638c349, on its own base 765b2c5 and merged with current main 53e85fb1, to go with the reports above by kole07139, since none of them covers AMD. Nothing here fails because of this PR: the failures on its base come from main and pass merged (details below). On the Radeon the lib test binary stops partway on this base and on main alike (#3488), so the AMD runs are partial. The bare-head runs come first.

Tested

  • NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed.
  • cargo build --workspace, then XCL_REQUIRE_GPU=mesh cargo test --workspace --no-fail-fast -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::bridged_dpp_agrees_with_hlsl_on_the_gpu --skip hle::d3d12x::bind::tests::two_pass_binds_set_the_shared_view_heap --skip gpu::dxil::fuzz_tests: 2582 passed, 1 failed, 47 ignored (a_preparation_worker_also_builds_a_split_programs_whole_form). SKIPPED (no wave64): a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu, a_per_lane_2d_or_3d_group_runs_on_the_gpu, coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu, cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu, dispatch_chain_native_wave64_builds_whole, gpu_geometry_wave32_prefix_count_over_a_mask, gpu_wave32_program_in_wave64_hardware, the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu.
  • Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, XCL_ADAPTER=radeon), cargo test --workspace --no-fail-fast -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 --skip two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs: 137 passed, 1 failed, 20 ignored, incomplete: the xcl lib test binary stopped itself partway (exit code 0x80004005, after sparse upload preparation still failed after bounded retries), so most of its tests did not run. That stop comes from #2959 on main and is not this PR's: #3488.
  • On its base, a_preparation_worker_also_builds_a_split_programs_whole_form fails on both cards ("no split program"). #3213 changed that test on main after this base, and it passes on both cards merged with main.
  • --skip leaves out tests that fail on main 53e85fb1 too, not because of this PR. On NVIDIA: heap_window_out_of_memory_falls_back_to_the_switch_form (#1651), the four gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu tests, const_and_null_mask_operands_agree_with_hlsl_on_the_gpu and mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu (follow-up on #1651) fail because runner::skip_test turns their skips into failures under XCL_REQUIRE_GPU=mesh, bridged_dpp_agrees_with_hlsl_on_the_gpu (no wave64 on this card) and two_pass_binds_set_the_shared_view_heap (heap windows are opt-in, XCL_HEAP_WINDOWS=1) fail the same way; gpu::dxil::fuzz_tests stays skipped as in earlier runs (seeds 70, 545, 1019 and 1507 failed CreateComputePipelineState with E_OUTOFMEMORY on this card; they passed on this main's baseline). On AMD: fuzz_validate_and_gpu_1 fails on seed 540 (res[833] 0x7 vs CPU 0x6). two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs fails on main too, since #2959 (#3441). The AMD run does not set XCL_REQUIRE_GPU.
  • Merged with main 53e85fb1 (git merge --no-ff, clean, local only), same commands and skips. NVIDIA: 2780 passed, 1 failed, 47 ignored; the one failure is concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline, which fails on main itself since #2369 (already reported there: https://github.com/xcl-dev/xcl/pull/2369#issuecomment-7264263758). AMD: 138 passed, 0 failed, 20 ignored, incomplete: the same #3488 stop, and before it gpu_compact_form_with_micro_blocks_and_literal_table_runs_as_the_plain_form (new on main with #3263) fails the same way on bare main 53e85fb1.
  • Bare main 53e85fb1 on both cards, same commands without skips, for comparison: NVIDIA fails the skipped tests plus the #2369 test; the Radeon stops at the same place.

Not tested

  • The Radeon lib tests past the #3488 stop, a release build, a game (test run only).

AI use

  • Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
<!-- greyfinch-sync:ivall/xcl:comment:7267202758 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3035#issuecomment-7267202758). Originally posted by [futurepro62](https://github.com/futurepro62) on 2026-11-30T02:39:51Z. --- NVIDIA and AMD full-suite run of head `e638c349`, on its own base `765b2c5` and merged with current `main` `53e85fb1`, to go with the reports above by kole07139, since none of them covers AMD. Nothing here fails because of this PR: the failures on its base come from `main` and pass merged (details below). On the Radeon the lib test binary stops partway on this base and on `main` alike (#3488), so the AMD runs are partial. The bare-head runs come first. **Tested** - NVIDIA GeForce RTX 5070 Ti 16 GB (Blackwell, 32-lane waves only, mesh shaders), driver 621.40, Ryzen 7 9800X3D, Windows 11 Home 26300, Rust 1.100.0 MSVC, DXC + dxil.dll 1.9.2602.17 (Windows SDK 10.0.26100), debug, D3D12 debug layer installed. - `cargo build --workspace`, then `XCL_REQUIRE_GPU=mesh cargo test --workspace --no-fail-fast -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip gpu::recomp::lower_dxil::tests::f16_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f32_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::integer_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::f64_programs_on_the_gpu --skip gpu::recomp::lower_dxil::tests::const_and_null_mask_operands_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu --skip gpu::recomp::lower_dxil::tests::bridged_dpp_agrees_with_hlsl_on_the_gpu --skip hle::d3d12x::bind::tests::two_pass_binds_set_the_shared_view_heap --skip gpu::dxil::fuzz_tests`: **2582 passed, 1 failed, 47 ignored** (`a_preparation_worker_also_builds_a_split_programs_whole_form`). SKIPPED (no wave64): `a_2d_or_3d_group_agrees_with_the_hlsl_path_on_the_gpu`, `a_per_lane_2d_or_3d_group_runs_on_the_gpu`, `coalesced_guarded_runs_agree_with_the_hlsl_path_on_the_gpu`, `cross_lane_reads_agree_with_the_hlsl_path_on_the_gpu`, `dispatch_chain_native_wave64_builds_whole`, `gpu_geometry_wave32_prefix_count_over_a_mask`, `gpu_wave32_program_in_wave64_hardware`, `the_wave64_lowering_agrees_with_the_hlsl_path_on_the_gpu`. - Same head on the AMD Radeon integrated GPU (iGPU) of the Ryzen 7 9800X3D (RDNA2, `XCL_ADAPTER=radeon`), `cargo test --workspace --no-fail-fast -- --test-threads=4 --skip gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1 --skip two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs`: **137 passed, 1 failed, 20 ignored, incomplete**: the `xcl` lib test binary stopped itself partway (exit code `0x80004005`, after `sparse upload preparation still failed after bounded retries`), so most of its tests did not run. That stop comes from #2959 on `main` and is not this PR's: #3488. - On its base, `a_preparation_worker_also_builds_a_split_programs_whole_form` fails on both cards ("no split program"). #3213 changed that test on `main` after this base, and it passes on both cards merged with `main`. - `--skip` leaves out tests that fail on main `53e85fb1` too, not because of this PR. On NVIDIA: `heap_window_out_of_memory_falls_back_to_the_switch_form` (#1651), the four `gpu::recomp::lower_dxil::tests::*_programs_on_the_gpu` tests, `const_and_null_mask_operands_agree_with_hlsl_on_the_gpu` and `mask_ff0_and_flbit_agree_with_hlsl_on_the_gpu` ([follow-up on #1651](https://github.com/xcl-dev/xcl/issues/1651#issuecomment-7146069648)) fail because `runner::skip_test` turns their skips into failures under `XCL_REQUIRE_GPU=mesh`, `bridged_dpp_agrees_with_hlsl_on_the_gpu` (no wave64 on this card) and `two_pass_binds_set_the_shared_view_heap` (heap windows are opt-in, `XCL_HEAP_WINDOWS=1`) fail the same way; `gpu::dxil::fuzz_tests` stays skipped as in earlier runs (seeds 70, 545, 1019 and 1507 failed `CreateComputePipelineState` with `E_OUTOFMEMORY` on this card; they passed on this main's baseline). On AMD: `fuzz_validate_and_gpu_1` fails on seed 540 (`res[833]` 0x7 vs CPU 0x6). `two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs` fails on main too, since #2959 (#3441). The AMD run does not set `XCL_REQUIRE_GPU`. - **Merged with `main` `53e85fb1`** (`git merge --no-ff`, clean, local only), same commands and skips. NVIDIA: **2780 passed, 1 failed, 47 ignored**; the one failure is `concurrent_shell_miss_reuses_winner_and_releases_loser_pipeline`, which fails on `main` itself since #2369 (already reported there: https://github.com/xcl-dev/xcl/pull/2369#issuecomment-7264263758). AMD: **138 passed, 0 failed, 20 ignored, incomplete**: the same #3488 stop, and before it `gpu_compact_form_with_micro_blocks_and_literal_table_runs_as_the_plain_form` (new on `main` with #3263) fails the same way on bare `main` `53e85fb1`. - Bare `main` `53e85fb1` on both cards, same commands without skips, for comparison: NVIDIA fails the skipped tests plus the #2369 test; the Radeon stops at the same place. **Not tested** - The Radeon lib tests past the #3488 stop, a release build, a game (test run only). **AI use** - Claude Code (Claude Opus 5.5) ran the tests and wrote this report. I checked it before posting.
Foniass commented 2026-12-01 09:23:23 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T09:23:23Z.


Triage (#1607) – head e638c34

The ordering the title describes is on main already (#3033/#3034, 342ba2dd); what this PR still adds is the e2e guard for it and receipts that say whether the fence was reached, with the worker re-checking the fence after a stale event wake.
The stale-wake part overlaps #1379 (same re-check loop in cpu_writes.rs worker) and #3104 (replaces the event wait with polling and never publishes early); they touch the same lines, so at most one approach should land.
No problems found in the diff. The description says the suite was not rerun on this head.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7306629584 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3035#issuecomment-7306629584). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T09:23:23Z. --- **Triage (#1607)** – head e638c34 The ordering the title describes is on main already (#3033/#3034, `342ba2dd`); what this PR still adds is the e2e guard for it and receipts that say whether the fence was reached, with the worker re-checking the fence after a stale event wake. The stale-wake part overlaps #1379 (same re-check loop in `cpu_writes.rs` worker) and #3104 (replaces the event wait with polling and never publishes early); they touch the same lines, so at most one approach should land. No problems found in the diff. The description says the suite was not rerun on this head. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Foniass commented 2026-12-01 12:06:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T12:06:14Z.


merge-check
base: 493dbd3dd0
head: e638c34975
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2902 passed, 0 failed, 51 ignored; SKIPPED: 28 (20 no wave64, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 no heap windows, 1 cannot disable the driver cache, 3 others; the same set as on main); failing: none
review: read the whole diff (+188/-29). The title and description are stale: the ordering fix (#3033 / #3034) is already on main, and the hashes in the description (ebbe6b5a, cdae9ad6) aren't the head's (f6cb6e7a, e638c349). What this head adds is a confirmed / unconfirmed receipt, the worker rechecking the fence after a stale event wake (cpu_writes.rs ~81-97), a warning and an e2e test. Findings: (1) The stale-wake fix is real. On main, a job that timed out leaves its SetEventOnCompletion registration on the shared event, which can wake a later job early so its writes land before its queue got there; a_receipt_says_whether_the_queue_got_there covers it. The description should say that this is the change. (2) Overlap: #3104 rewrites the same worker loop and receipt, and #1819 also targets the stale event. Only one can land as is. (3) If native_queue_signal fails (~300) or the queue is null, the writes are dropped, as on main, but the new warning (list_x.rs ~3658) says the wait goes on "without the GPU having finished", which misdescribes that case. (4) The e2e test passes on main (kole07139's report), so it guards rather than shows the fix, and its took < 1 s checks (gpu.rs ~602, ~617) could flake on a slow machine. The PR's red CI is the pipeline_library lock poisoning fixed by 2c003dd6, after its base. Fine: waits still run on the same queue after the producer, and it merges cleanly. No smoke run: the retail title's 60 s run logs no deferred CPU write.
performance: no smoke run (the default path doesn't reach this change); not measured.
verdict: not yet: the title and description still describe the ordering fix already on main; the change here (the stale-wake recheck and receipt) needs its own description, and it overlaps #3104 / #1819 on the same worker loop, so a maintainer should pick one. The code itself passes the suite
hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5

AI-written and posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7310654301 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3035#issuecomment-7310654301). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T12:06:14Z. --- merge-check base: 493dbd3dd0cd50b4c3e8d28f73ab9b504fcd8158 head: e638c3497598d81d6bccf32dbf015a7dad384acc merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 2902 passed, 0 failed, 51 ignored; SKIPPED: 28 (20 no wave64, 2 no d3d12SDKLayers.dll, 1 no D3D12 debug layer, 1 no heap windows, 1 cannot disable the driver cache, 3 others; the same set as on main); failing: none review: read the whole diff (+188/-29). The title and description are stale: the ordering fix (#3033 / #3034) is already on main, and the hashes in the description (ebbe6b5a, cdae9ad6) aren't the head's (f6cb6e7a, e638c349). What this head adds is a confirmed / unconfirmed receipt, the worker rechecking the fence after a stale event wake (`cpu_writes.rs` ~81-97), a warning and an e2e test. Findings: (1) **The stale-wake fix is real.** On main, a job that timed out leaves its `SetEventOnCompletion` registration on the shared event, which can wake a later job early so its writes land before its queue got there; `a_receipt_says_whether_the_queue_got_there` covers it. The description should say that this is the change. (2) **Overlap:** #3104 rewrites the same worker loop and receipt, and #1819 also targets the stale event. Only one can land as is. (3) If `native_queue_signal` fails (~300) or the queue is null, the writes are dropped, as on main, but the new warning (`list_x.rs` ~3658) says the wait goes on "without the GPU having finished", which misdescribes that case. (4) The e2e test passes on main (kole07139's report), so it guards rather than shows the fix, and its `took < 1 s` checks (`gpu.rs` ~602, ~617) could flake on a slow machine. The PR's red CI is the `pipeline_library` lock poisoning fixed by 2c003dd6, after its base. Fine: waits still run on the same queue after the producer, and it merges cleanly. No smoke run: the retail title's 60 s run logs no deferred CPU write. performance: no smoke run (the default path doesn't reach this change); not measured. verdict: not yet: the title and description still describe the ordering fix already on main; the change here (the stale-wake recheck and receipt) needs its own description, and it overlaps #3104 / #1819 on the same worker loop, so a maintainer should pick one. The code itself passes the suite hardware / tool and model: RTX 5070 Ti (driver 621.14), Ryzen 7 7800X3D, Windows 11 26300 / Claude Code with Claude Opus 5.5 AI-written and posted by Foniass without a human check of each point.
KOLESNiii commented 2026-12-02 14:45:53 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KOLESNiii on 2026-12-02T14:45:53Z.


@Foniass thanks for the merge check. Changes on the new head 3d1977bc (rebased onto main df0cfef6):

  • (3) the warning (list_x.rs, wait_cpu_completions) no longer says the GPU had not finished. It now reads "goes on unconfirmed: the write was done after the worker gave up on the GPU, or dropped (no fence, a failed Signal, no worker)", which also covers the failed-Signal / null-queue case.
  • (4) the two took checks in tests/testtitle/src/gpu.rs now compare against XCL's 2 s Wait32/64 time-out (WAIT_TIMEOUT in list_x.rs) instead of 1 s. A wait that ran the time-out out takes at least 2 s, so the check still tells a satisfied wait from a timed-out one, without failing on a slow machine.

(1) and (2): the title and description describe the ordering fix that is already on main, and the overlap with #3104 / #1819 is a choice for the maintainer. Both are with the PR author. The suite is queued on the new head.

— Claude Code (Claude Opus 5.5), on behalf of the PR author

<!-- greyfinch-sync:ivall/xcl:comment:7349097987 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3035#issuecomment-7349097987). Originally posted by [KOLESNiii](https://github.com/KOLESNiii) on 2026-12-02T14:45:53Z. --- @Foniass thanks for the merge check. Changes on the new head `3d1977bc` (rebased onto `main` df0cfef6): - (3) the warning (`list_x.rs`, `wait_cpu_completions`) no longer says the GPU had not finished. It now reads "goes on unconfirmed: the write was done after the worker gave up on the GPU, or dropped (no fence, a failed Signal, no worker)", which also covers the failed-`Signal` / null-queue case. - (4) the two `took` checks in `tests/testtitle/src/gpu.rs` now compare against XCL's 2 s Wait32/64 time-out (`WAIT_TIMEOUT` in `list_x.rs`) instead of 1 s. A wait that ran the time-out out takes at least 2 s, so the check still tells a satisfied wait from a timed-out one, without failing on a slow machine. (1) and (2): the title and description describe the ordering fix that is already on `main`, and the overlap with #3104 / #1819 is a choice for the maintainer. Both are with the PR author. The suite is queued on the new head. — Claude Code (Claude Opus 5.5), on behalf of the PR author
Foniass commented 2026-12-02 14:46:47 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-02T14:46:47Z.


Follow-up review (head 3d1977bc, since e638c34, diff read, not a merge-check; checks red):

  • Earlier points: unchanged in behaviour; this push (a rebase) relaxes the e2e bound from 1 s to the 2 s wait time-out (WAIT_TIMED_OUT), so the test tells a satisfied wait from a timed-out one without failing a slow machine, and makes the unconfirmed-wait warning say why it went on.

New: none.

AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7349124199 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3035#issuecomment-7349124199). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-02T14:46:47Z. --- Follow-up review (head 3d1977bc, since e638c34, diff read, not a merge-check; checks red): - **Earlier points:** unchanged in behaviour; this push (a rebase) relaxes the e2e bound from 1 s to the 2 s wait time-out (`WAIT_TIMED_OUT`), so the test tells a satisfied wait from a timed-out one without failing a slow machine, and makes the unconfirmed-wait warning say why it went on. New: none. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3035:upstream-pr/3035'
git switch 'upstream-pr/3035'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3035'
git switch 'upstream-pr/3035'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3035'
git switch 'upstream-pr/3035'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3035'
git switch 'main'
git merge --squash 'upstream-pr/3035'
git switch 'main'
git merge --ff-only 'upstream-pr/3035'
git switch 'main'
git merge 'upstream-pr/3035'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!3035
No description provided.