D3D12.X: distinguish the Wait64 signal queue from recording history #1045

Open
github-bot wants to merge 1 commit from github-bot/gh-1045 into main AGit
Owner

@⁠Prime1997 on GitHub · 2026-11-24 10:49 UTC · original
Prime1997:contrib/wait64-queue-provenance → main · +86 −20 · 2 files · 1 commits · open

A retail intro stalled on our RTX 3060 Ti. The Wait64 warning named queue 1 as the producer even though it showed recorded=0x3568, submitted=0, completed=0. The old prod= field could pick up the last queue used by the recording list. That pointed us at queue 1 before there was evidence it would submit the signal.

This follow-up to gsucristo’s #795 reports the queue assigned by the sync graph only when its signal value covers the wait. A separate field gives the recording list’s last known queue. A newer recording with unknown history clears the old hint. The graph assigns the signal before the host call, so host acceptance and GPU completion are separate observations.

Tested

  • Windows 11 build 26200, i5-10400, RTX 3060 Ti 8 GB, driver 617.14, Rust 1.100.0 MSVC. The old selection logic with the new tests reproduced three wrong attributions in four cases. At fcc2fd2, all six wait_queue_diagnostic tests passed.
  • cargo test --locked --workspace --no-fail-fast -- --test-threads=4 --nocapture after building the workspace fixtures. 733 passed, 0 failed, 41 ignored. Two wave64-only test bodies skipped on this GPU. The native cross-queue test verified the COMPUTE queue assignment and the DIRECT queue completed after the signal.

Regression run

60 seconds per release build on the same RTX 3060 Ti, Series X profile and starting shader cache, with preloading off and no menu input.

Main

xcl-smoke v1
commit: 6efdabcdaac93ce5cc123a85e85deba5d49cb294
gpu: NVIDIA GeForce RTX 3060 Ti
title: 419239bf
seconds: 60
exit: 0x0
frames shown: 309 (PresentX 309)
presents per 2 s (last 3): 16 15 12
device removals: 0
crashes: 0
peak commit: 15390 MB

PR

xcl-smoke v1
commit: fcc2fd20186a692e30f6c181c0ae935ed628a868
gpu: NVIDIA GeForce RTX 3060 Ti
title: 419239bf
seconds: 60
exit: 0x0
frames shown: 295 (PresentX 296)
presents per 2 s (last 3): 15 15 16
device removals: 0
crashes: 0
peak commit: 15354 MB

Not tested

The player-controlled prologue on this revision. These startup runs do not establish a gameplay or frame-rate change.

AI use

OpenAI Codex (GPT-6) helped write and review the change, run the tests, and prepare this report.

I use a temporary Discord to coordinate my work. Anyone helping test XCL or compare results is welcome. Test coordination on Discord

**@⁠Prime1997** on GitHub · 2026-11-24 10:49 UTC · [original](https://github.com/xcl-dev/xcl/pull/1045) `Prime1997:contrib/wait64-queue-provenance` → `main` · +86 −20 · 2 files · 1 commits · open A retail intro stalled on our RTX 3060 Ti. The Wait64 warning named queue 1 as the producer even though it showed `recorded=0x3568, submitted=0, completed=0`. The old `prod=` field could pick up the last queue used by the recording list. That pointed us at queue 1 before there was evidence it would submit the signal. This follow-up to gsucristo’s #795 reports the queue assigned by the sync graph only when its signal value covers the wait. A separate field gives the recording list’s last known queue. A newer recording with unknown history clears the old hint. The graph assigns the signal before the host call, so host acceptance and GPU completion are separate observations. **Tested** - Windows 11 build 26200, i5-10400, RTX 3060 Ti 8 GB, driver 617.14, Rust 1.100.0 MSVC. The old selection logic with the new tests reproduced three wrong attributions in four cases. At `fcc2fd2`, all six `wait_queue_diagnostic` tests passed. - `cargo test --locked --workspace --no-fail-fast -- --test-threads=4 --nocapture` after building the workspace fixtures. 733 passed, 0 failed, 41 ignored. Two wave64-only test bodies skipped on this GPU. The native cross-queue test verified the COMPUTE queue assignment and the DIRECT queue completed after the signal. **Regression run** 60 seconds per release build on the same RTX 3060 Ti, Series X profile and starting shader cache, with preloading off and no menu input. Main ``` xcl-smoke v1 commit: 6efdabcdaac93ce5cc123a85e85deba5d49cb294 gpu: NVIDIA GeForce RTX 3060 Ti title: 419239bf seconds: 60 exit: 0x0 frames shown: 309 (PresentX 309) presents per 2 s (last 3): 16 15 12 device removals: 0 crashes: 0 peak commit: 15390 MB ``` PR ``` xcl-smoke v1 commit: fcc2fd20186a692e30f6c181c0ae935ed628a868 gpu: NVIDIA GeForce RTX 3060 Ti title: 419239bf seconds: 60 exit: 0x0 frames shown: 295 (PresentX 296) presents per 2 s (last 3): 15 15 16 device removals: 0 crashes: 0 peak commit: 15354 MB ``` **Not tested** The player-controlled prologue on this revision. These startup runs do not establish a gameplay or frame-rate change. **AI use** OpenAI Codex (GPT-6) helped write and review the change, run the tests, and prepare this report. I use a temporary Discord to coordinate my work. Anyone helping test XCL or compare results is welcome. [Test coordination on Discord](https://discord.gg/gK3y7WRRY)
The producer label introduced by gsucristo in #795 can name an old
recording-list queue even when the graph has no signal covering the
requested value. Report the covering graph-assigned signal queue and
recording-list history independently, and clear unknown hints when a
newer recording advances the tracked value.

Graph assignment precedes the host Signal call: the label does not
claim host acceptance or GPU completion. Signal/Wait behavior and
production locking are unchanged.

Verified with pure before/after controls: old selection/hint semantics
fail 3 of 4 assertions; the candidate passes all 6 focused assertions.
The existing native fixture has an added graph-attribution assertion;
its GPU execution and the broader suite remain for independent checks.

Assisted-by: Codex (GPT-6; exact deployment identifier not provided)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:41:40 +00:00
Author
Owner

@⁠Diskuss on GitHub · 2026-11-24 11:11 UTC · original

Tested on AMD Radeon RX 9070 XT (RDNA4) at fcc2fd20186a692e30f6c181c0ae935ed628a868

Ryzen 7 5700X3D, 32 GB RAM, Windows 11 Pro build 26300.9974, driver 32.0.32015.7029, Rust 1.100.0, DXC 1.9.2602.17, debug build.

Tested (PR head fcc2fd2 merged locally with origin/main 47efa2e; the branch is 19 commits behind main; merge was clean, nothing pushed):

  • cargo build --workspace: OK
  • cargo test --workspace --no-fail-fast -- --test-threads=4: 747 passed, 0 failed, 41 ignored
  • PR's tests, cargo test -p xcl --lib wait_queue_diagnostic -- --test-threads=1, each run alone 5 times: 5/5 (6 passed each run)
  • 0 SKIPPED printed; 2 debug-layer tests skip silently, no Graphics Tools installed. No DXGI_ERROR_DEVICE_REMOVED.
  • Baseline: main alone at 47efa2e gave 741 passed, 0 failed, 41 ignored. The +6 is the PR's 6 new tests.

Not tested: retail title / scripts/smoke.ps1 (no game files), release build.

Report written by Claude Code (Claude Sonnet 5.5) from a real run on this machine.

**@⁠Diskuss** on GitHub · 2026-11-24 11:11 UTC · [original](https://github.com/xcl-dev/xcl/pull/1045#issuecomment-7129769302) **Tested on AMD Radeon RX 9070 XT (RDNA4) at `fcc2fd20186a692e30f6c181c0ae935ed628a868`** Ryzen 7 5700X3D, 32 GB RAM, Windows 11 Pro build 26300.9974, driver 32.0.32015.7029, Rust 1.100.0, DXC 1.9.2602.17, debug build. **Tested** (PR head fcc2fd2 merged locally with origin/main 47efa2e; the branch is 19 commits behind main; merge was clean, nothing pushed): - `cargo build --workspace`: OK - `cargo test --workspace --no-fail-fast -- --test-threads=4`: 747 passed, 0 failed, 41 ignored - PR's tests, `cargo test -p xcl --lib wait_queue_diagnostic -- --test-threads=1`, each run alone 5 times: 5/5 (6 passed each run) - 0 SKIPPED printed; 2 debug-layer tests skip silently, no Graphics Tools installed. No DXGI_ERROR_DEVICE_REMOVED. - Baseline: main alone at 47efa2e gave 741 passed, 0 failed, 41 ignored. The +6 is the PR's 6 new tests. **Not tested**: retail title / `scripts/smoke.ps1` (no game files), release build. Report written by Claude Code (Claude Sonnet 5.5) from a real run on this machine.
Author
Owner

@⁠DavidM1911 on GitHub · 2026-11-24 11:14 UTC · original

Independent verification, merged onto current main 384f7f7 locally (clean merge).

Machine: Windows 11, Ryzen 9 7900X + RTX 3060 Ti; Rust stable MSVC, debug.

  • cargo test -p xcl --lib wait64: 2 passed — the Wait64 split/cross-queue deadlock tests.
  • cargo test -p xcl --lib list_x: 30 passed, 0 failed — includes the five new wait_queue_diagnostic_* tests; the log shows the new fields live, e.g. Wait64BitValueX ... (waiter=q1/ty2, graph_signal_queue=qNone, recorded_list_last_queue=qNone/tySome(0); ...).

AI use: test runs by Devin (Cognition, SWE-2); no code changes.

**@⁠DavidM1911** on GitHub · 2026-11-24 11:14 UTC · [original](https://github.com/xcl-dev/xcl/pull/1045#issuecomment-7129848070) Independent verification, merged onto current `main` `384f7f7` locally (clean merge). **Machine:** Windows 11, Ryzen 9 7900X + RTX 3060 Ti; Rust stable MSVC, debug. - `cargo test -p xcl --lib wait64`: **2 passed** — the Wait64 split/cross-queue deadlock tests. - `cargo test -p xcl --lib list_x`: **30 passed, 0 failed** — includes the five new `wait_queue_diagnostic_*` tests; the log shows the new fields live, e.g. `Wait64BitValueX ... (waiter=q1/ty2, graph_signal_queue=qNone, recorded_list_last_queue=qNone/tySome(0); ...)`. AI use: test runs by Devin (Cognition, SWE-2); no code changes.
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 05:26 UTC · original

Empirical test report (fcc2fd20)

Verified xcl-dev/xcl PR #1045 at fcc2fd20186a692e30f6c181c0ae935ed628a868.

Hardware / environment

  • Windows x64, OS version 10.0.26200.0, AMD x64 CPU (family 23, model 113, stepping 0). Unoptimized Rust test profile with debug information and incremental compilation disabled.
  • rustc 1.100.0 (0ef1bc386 2026-11-09) and DXC 1.9.2609.5 (01b62ad47).
  • Focused run held the Arc A770 test lock with XCL_ADAPTER=A770 and RUST_TEST_NOCAPTURE=1. The native fixture opens the default D3D12 device with a WARP fallback. Its output did not identify the active adapter or driver.

Commands and results

  • cargo test --workspace --no-run exited 0 outside the Arc lock.
  • Inside Invoke-ArcTest.ps1, ran the compiled xcl library test binary from that build with the filters hle::d3d12x::list_x::tests::wait_queue_diagnostic_ and hle::d3d12x::list_x::tests::cross_queue_wait64_before_signal_does_not_deadlock_submit_thread, plus --test-threads=1. The run exited 0. The captured log recorded 7 passed, 0 failed, 0 ignored, and 0 explicit SKIPPED lines. Libtest reported 705 filtered out and 0.18 s elapsed.

Observed behavior

  • Six CPU tests covered Wait64 attribution for an unsubmitted value, an older graph signal, a covering graph signal, and a CPU release. They also verified that a newer recording without queue history clears stale hints and that an older recording preserves current hints.
  • The native fixture logged graph_signal_queue=qNone and recorded_list_last_queue=qNone/tySome(2) when DIRECT waited before COMPUTE submitted. The fixture passed its assertions for DIRECT submission within 500 ms, graph attribution to the COMPUTE queue after submission, and DIRECT fence completion after the COMPUTE signal.

Not tested

The full GPU workspace suite and game smoke runs were omitted. The focused fixture does not exercise the watchdog timeout diagnostic.

AI use

Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr1045-focused.log and published.

**@⁠JJAutoCompare** on GitHub · 2026-11-25 05:26 UTC · [original](https://github.com/xcl-dev/xcl/pull/1045#issuecomment-7153773684) ### Empirical test report (fcc2fd20) Verified xcl-dev/xcl PR #1045 at `fcc2fd20186a692e30f6c181c0ae935ed628a868`. **Hardware / environment** - Windows x64, OS version `10.0.26200.0`, AMD x64 CPU (family 23, model 113, stepping 0). Unoptimized Rust test profile with debug information and incremental compilation disabled. - `rustc 1.100.0 (0ef1bc386 2026-11-09)` and DXC `1.9.2609.5 (01b62ad47)`. - Focused run held the Arc A770 test lock with `XCL_ADAPTER=A770` and `RUST_TEST_NOCAPTURE=1`. The native fixture opens the default D3D12 device with a WARP fallback. Its output did not identify the active adapter or driver. **Commands and results** - `cargo test --workspace --no-run` exited 0 outside the Arc lock. - Inside `Invoke-ArcTest.ps1`, ran the compiled `xcl` library test binary from that build with the filters `hle::d3d12x::list_x::tests::wait_queue_diagnostic_` and `hle::d3d12x::list_x::tests::cross_queue_wait64_before_signal_does_not_deadlock_submit_thread`, plus `--test-threads=1`. The run exited 0. The captured log recorded 7 passed, 0 failed, 0 ignored, and 0 explicit `SKIPPED` lines. Libtest reported 705 filtered out and 0.18 s elapsed. **Observed behavior** - Six CPU tests covered Wait64 attribution for an unsubmitted value, an older graph signal, a covering graph signal, and a CPU release. They also verified that a newer recording without queue history clears stale hints and that an older recording preserves current hints. - The native fixture logged `graph_signal_queue=qNone` and `recorded_list_last_queue=qNone/tySome(2)` when DIRECT waited before COMPUTE submitted. The fixture passed its assertions for DIRECT submission within 500 ms, graph attribution to the COMPUTE queue after submission, and DIRECT fence completion after the COMPUTE signal. **Not tested** The full GPU workspace suite and game smoke runs were omitted. The focused fixture does not exercise the watchdog timeout diagnostic. **AI use** Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against `pr1045-focused.log` and published.
This pull request has changes conflicting with the target branch.
  • README.md
  • crates/xcl/src/hle/d3d12x/list_x.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1045/head:github-bot/gh-1045'
git switch 'github-bot/gh-1045'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1045'
git switch 'github-bot/gh-1045'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1045'
git switch 'github-bot/gh-1045'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1045'
git switch 'main'
git merge --squash 'github-bot/gh-1045'
git switch 'main'
git merge --ff-only 'github-bot/gh-1045'
git switch 'main'
git merge 'github-bot/gh-1045'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.