D3D12.X: keep ordinary GPU work ahead of a recorded Wait64 #851
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!851
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-851"
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?
@Abuudiii on GitHub · 2026-11-24 06:47 UTC · original
Abuudiii:xcl-external-wait-order→main· +169 −26 · 3 files · 1 commits · openFollow-up to #708. A wrapped list can record ordinary GPU work before an eligible
Wait64BitValueXeven when it has no trackedWrite64signal. Reuse the existing list split so that work can run before the wait. This leaves the upstream GPU-fence bridge and the bounded CPU fallback for untracked counters in place.What is in it
>=waits. Leading waits stay unsplit.Tested
beaa245before the counter advanced. With the patch, the copy-order, tracked split/spare reuse, and legacy batch-split tests passed: 3 passed, 0 failed, 0 ignored, no skips. The GPU runs used a disposable native-list vtable adapter that is not part of this PR.4bf6d607b5byte for byte. The same three tests passed individually with--nocapture --test-threads=1. The copy reached readback before the external counter advanced.1ec4c98,cargo test --workspace -- --test-threads=4reported 714 passed, 0 failed, 41 ignored; all three focused wait and copy tests passed on native D3D12.Regression run
Independent native Windows smoke pair. The workspace integration result above is separate from the two exact-commit builds below.
Main (
beaa245):PR (
4bf6d60):Not tested
1ec4c98, not the bare PR head.AI use
@Abuudiii on GitHub · 2026-11-24 07:08 UTC · original
Verification status for
4bf6d607b5:main/ exact-head smoke pair or a gameplay claim.xcl-smokeblocks (cleanmainand exact PR head, same title and duration). The separate hosted Windows workflow requires approval and has started zero jobs.AI use: omp (GPT-6.2 Sol) implemented the change, ran the local Proton checks, and drafted this update.
@SlopTart on GitHub · 2026-11-24 07:17 UTC · original
Linux / AMD RDNA3 datapoint.
Merged state: head
4bf6d60onto mainbeaa245, clean merge.Full suite,
cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 704 passed, 10 failed, 41 ignored. Failures are the known Wine-lane set from my #42 rows plus #718 trio members; nothing here fails because of your change. Wait64 ordering tests green; no new failures against the known Wine-lane set.Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.
Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross
x86_64-pc-windows-gnu,XCL_NETWORK=0, release profile,--test-threads=4. Linux rows: #42 / #718.AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
@eizispark on GitHub · 2026-11-24 07:25 UTC · original · edited 2026-11-24 07:26 UTC
Hardware check of
4bf6d607b5e65dcb760bd1eb39248b716620e3fc(verified clean merge withmain1ec4c98): pass.Tested
rustc 1.100.0 (0ef1bc386 2026-11-09), release + test profilecargo test --workspace -- --test-threads=4:714 passed, 0 failed, 41 ignored(GPU tests skipped on this adapter:none)ordinary_copy_runs_before_wait64_for_late_external_value,mid_list_write64_wait64_split_avoids_cycle_and_reuses_spares,execute_with_waits_splits_batches_before_unsatisfied_list:3 passed, 0 failedon native Windows D3D12Regression run
main(beaa245):PR (
4bf6d60):Not tested
AI use
scripts/smoke.ps1harness on this machine and formatted this report.@badoomtch on GitHub · 2026-11-24 07:04 UTC · original · edited 2026-11-24 07:48 UTC
Clean 60-second Windows smoke pair
The clean main release and the exact PR head both exited normally. I used the same unnamed retail title and RTX 5080, fresh title state each time, and each checkout’s unmodified
scripts/smoke.ps1. The scripts were byte-identical. A local launcher ran each binary in a network-isolated Windows AppContainer and passed the native exit status and log back to the script. The clean main block is the same control run used for #850 earlier in this session.Main
Exact PR head
Native Windows result for
4bf6d607b5e65dcb760bd1eb39248b716620e3fc. Both changed Rust files matched that head byte for byte in the local integration. Windows 11 build 26300, RTX 5080 (610.88), Core Ultra 7 265, release build.ordinary_copy_runs_before_wait64_for_late_external_valuepassed on D3D12. The ordinary copy reached readback while the later wait was still pending.mid_list_write64_wait64_split_avoids_cycle_and_reuses_sparesandexecute_with_waits_splits_batches_before_unsatisfied_listalso passed. Each test ran individually with--nocapture --test-threads=1.I also compared one offline retail run per arm on the same
beaa245-based integration. The control was81d73215, the local build with this change was8a0eaaa8. Both used the same returning profile, learned 4,095 MiB coherent window and shared cache. The second run could reuse additional cache entries.Wait64BitValueXtimeout messagesBoth runs showed the loading illustration, faded to black and ended at the same title abort. Neither produced a verified world frame. The per-list split message does not identify which prefix caused the split in the retail run. The isolated readback test establishes the ordering change directly.
AI use: Codex (GPT-6) built the integration, ran the Windows tests and comparison, checked the logs and drafted this report.
@juliptree on GitHub · 2026-11-24 08:09 UTC · original
Independent native Windows D3D12 validation on an RTX 5060 Ti, NVIDIA driver 616.92. Each test process verified the adapter from its actual D3D12 device. I ran the same synthetic Wait64 fixture three times per revision.
beaa245: 0/3 passed. The copy recorded before the wait missed the fixture’s 1,000 ms deadline. The second copy completed after the wait was released.4bf6d607: 3/3 passed. The first copy completed before release. The second stayed pending until release, then returned the expected bytes.No skips or 20-second process timeouts. Both revisions used the same test-only diagnostics. Production code was unchanged. Synthetic fixtures only. AI-assisted validation and write-up by Codex.
mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #175@Prime1997 on GitHub · 2026-11-24 10:33 UTC · original
RTX 3060 Ti 8 GB · ordinary copy before Wait64
We reproduced the ordering problem on Windows 11 build 26200, NVIDIA driver 617.14, i5-10400, Rust 1.100.0. We used our #891 + #934 integration as the baseline, then applied Abuudiii’s runtime change at
4bf6d607. Both arms used the PR’s regression with the same extra logging to identify the physical adapter and readback values. Baseline source · PR revision tested0x0102030405060708before release.On all three runs with the fix, the copy after the wait stayed pending for the 100 ms check, then returned
0xa1b2c3d4e5f60798after release. We built each fixture withcargo test --offline --locked --release -p xcl --lib ordinary_copy_runs_before_wait64_for_late_external_value --no-run -j2and ran each test serially with--exact --nocapture --test-threads=1. All ten test invocations ran their bodies.Retail coverage. A clean local build with this PR (
ba3cfc7, Series S, 50 ms shader wait, preload off) reached a readable Account Picker and exited cleanly after a 90-second no-input check. We haven’t tested the player-controlled prologue on this build or run its full suite. The prior build showed loading art and audio before the intro streaming watchdog fired. This fixture exercises copy ordering. The cause of the retail stall is still open.AI use — OpenAI Codex (GPT-6) prepared the comparison, ran the tests and helped write this report.
I use a temporary Discord to coordinate my work. Anyone helping test XCL or compare results is welcome. Test coordination on Discord
@throny on GitHub · 2026-11-24 11:45 UTC · original
Two world-loading runs of
4bf6d60on an RTX 4080 withXCL_PSO_WAIT_MS=50, against two runs ofmainwith the same settings. No improvement on this machine: the GPU waits still time out and the title's watchdog ends both runs earlier than onmain.Tested
stable-x86_64-pc-windows-msvc; release.4bf6d60merged ontomain47efa2e(clean merge); themainruns are on384f7f7.xcl run <folder>withXCL_NETWORK=0,XCL_ACTIVITY=1,XCL_PSO_WAIT_MS=50,XCL_PRESS_ATfor the profile prompt, 420 s limit, warm DXIL and driver-blob caches. Retail title 1.0.2.1.main, run 1main, run 2GPU queue.Wait … did not complete within 5000 msmainbuilds too).Not tested
XCL_PSO_WAIT_MS.AI use
@JJAutoCompare on GitHub · 2026-11-25 05:45 UTC · original
Empirical test report (
4bf6d607)Verified PR #851 at commit
4bf6d607b5.Hardware / environment
Commands and results
cargo test --workspace --no-runoutside Invoke-ArcTest.ps1. Exit code 0. The build produced the library test executable used below.xcl-77aca8ccb20e299f.exe --exact hle::d3d12x::list_x::tests::ordinary_copy_runs_before_wait64_for_late_external_valueinside Invoke-ArcTest.ps1 with RUST_TEST_NOCAPTURE=1. Exit code 0. Libtest reported 1 passed, 0 failed, and 0 ignored. The log contained 0 SKIPPED markers. 1 fixture ran and passed.Observed behavior
The ordinary prefix copy completed and returned the expected first word before the external counter advanced. The suffix completion fence timed out during the fixture's 100 ms pre-release check. After the producer advanced the counter, the suffix completed and returned the expected second word. The leading Wait64 assertion passed, and XCL logged one direct command-list split at the recorded memory wait.
Not tested
The full GPU workspace suite and game smoke runs were omitted. Execution covered the PR's new regression fixture.
AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr851-focused.logand published.@DavidM1911 on GitHub · 2026-11-25 10:15 UTC · original
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main— needs a rebase before it can be tested.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.Merge
Merge the changes and update on Forgejo.