D3D12.X: distinguish the Wait64 signal queue from recording history #1038
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1045"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by Prime1997 on 2026-11-24T10:49:13Z.
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 oldprod=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
fcc2fd2, all sixwait_queue_diagnostictests passed.cargo test --locked --workspace --no-fail-fast -- --test-threads=4 --nocaptureafter 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
PR
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
Imported from ivall/xcl. Originally posted by Diskuss on 2026-11-24T11:11:12Z.
Tested on AMD Radeon RX 9070 XT (RDNA4) at
fcc2fd20186a692e30f6c181c0ae935ed628a868Ryzen 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
fcc2fd2merged locally with origin/main47efa2e; the branch is 19 commits behind main; merge was clean, nothing pushed):cargo build --workspace: OKcargo test --workspace --no-fail-fast -- --test-threads=4: 747 passed, 0 failed, 41 ignoredcargo test -p xcl --lib wait_queue_diagnostic -- --test-threads=1, each run alone 5 times: 5/5 (6 passed each run)47efa2egave 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.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T11:14:47Z.
Independent verification, merged onto current
main384f7f7locally (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 newwait_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.
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T05:26:27Z.
Empirical test report (
fcc2fd20)Verified xcl-dev/xcl PR #1045 at
fcc2fd20186a692e30f6c181c0ae935ed628a868.Hardware / environment
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 DXC1.9.2609.5 (01b62ad47).XCL_ADAPTER=A770andRUST_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-runexited 0 outside the Arc lock.Invoke-ArcTest.ps1, ran the compiledxcllibrary test binary from that build with the filtershle::d3d12x::list_x::tests::wait_queue_diagnostic_andhle::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 explicitSKIPPEDlines. Libtest reported 705 filtered out and 0.18 s elapsed.Observed behavior
graph_signal_queue=qNoneandrecorded_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.logand published.Imported from ivall/xcl. Originally posted by bmjask on 2026-11-29T22:46:06Z.
Review: COMMENTED
Critical review of current head
fcc2fd20. The diagnostic distinction is valid: a graph-assigned signal queue is not proof that hostSignalsucceeded, and a recording list's last queue is only history.wait_queue_provenancealso suppresses a signal queue that does not cover the requested value. I found no code blocker in this diagnostic-only change. The branch conflicts with current main; please rebase and run the Wait64 watchdog tests against the merged sync-graph implementation so the new fields cannot accidentally become routing inputs. No local Windows run.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:39:51Z.
Review (head
fcc2fd20, diff read, not a merge-check; it conflicts with main, so not built or run):prod=assubmitted_queue.or(recorded_last_queue)in the watchdog (list_x.rs~2986, ~3010) and the bridge log (~3430, ~3477), so the "which queue signals" split isn't on main; but main'sedges_of(~2396, from #2499) already names the queue of the signal covering a wait, or says "none submitted".graph_signal_queueadds nothing to the bridge log: that log only runsif unsubmitted(submitted_max < value), wherewait_queue_provenancealways returnsNone. It only carries information in the watchdog line.xlog_error, keeps no fence in its tuple, and stops the title by default (CPU release only withXCL_WAIT_TIMEOUT_CONTINUE=1, so "released on CPU to prevent GPU hang" is now wrong); the recording block also setsrecorded_by. The README paragraph describes a log field, not something users do.Fine:
wait_queue_provenanceis a pure helper, clearing the old type / queue hint only affects log output (recorded_list_typeis only read in logs), and the tests cover each case including the cross-queue COMPUTE assignment. Recommendation: rebase with only the watchdog-line change and its tests (drop the bridge-log change and README paragraph), or close if that isn't worth it.AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.