Tests: cover Wait64 recording and satisfied batch submission #569
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!569
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/569/head"
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?
@Prime1997 on GitHub · 2026-11-24 01:56 UTC · original
Prime1997:contrib/wait64-submission-regression→main· +53 −0 · 1 files · 1 commits · merged 2026-11-25 19:19 UTC#218 fixed Wait64BitValueX so it compares the entire 64-bit counter. These two tests drive the recorded command and submission paths that produced spurious two-second waits. Neither test needs a GPU.
What is in it
Tested
d9d61177814f328158bcb5f27c9190f7bf253933, Windows 11 Pro build 26200, Intel i5-10400, NVIDIA RTX 3060 Ti, driver 32.0.16.1714, Rust 1.100.0 MSVC.cargo test --workspacerun with locked dependencies and four test threads completed with 682 passed, 0 failed, 41 ignored. Two hardware tests reported a wave64 skip.Regression run
The same retail title was run for 60 seconds on each clean build. The patch changes tests only. Frame counts are individual observations.
Main
PR head
Not tested
AMD GPUs, wave64-only paths and sample-dependent RPF, TTPF, AWC, DLL, DXC and XG cases were outside this run.
AI use
OpenAI Codex (GPT-6) assisted with reproducing the stall, writing the regression tests, checking overlap and validating the branch. The runtime fix belongs to the author of #218.
I use a temporary Discord to coordinate my work. Anyone helping test XCL or compare results is welcome. Test coordination on Discord
@thehollowedone on GitHub · 2026-11-24 02:00 UTC · original
Both Wait64 tests passed on exact head d9d6117. I also applied the same test-only diff to main at 9ce2070 in a scratch tree. Both tests passed there too, including the check that a satisfied wait keeps the batch together and leaves Wait32 masking intact.
Windows 11 build 26300, Ryzen 7 9800X3D, Rust 1.99.1 MSVC, debug.
cargo test --offline --locked -p xcl --lib wait64_ -- --test-threads=1 --nocapturereported 2 passed, 0 failed, 0 ignored in each build. This covered the synthetic recording and submission fixture. The full workspace suite, actual GPU submission, and retail titles remain untested in this run.AI use
Codex with GPT-6.2 Sol ran the tests and drafted this report.
@upipibi on GitHub · 2026-11-24 04:24 UTC · original
Heads-up on an interaction with #708 that neither PR's CI can see:
git merge-treemerges #569 (d9d6117781) and #708 (89184d1d38) cleanly, but the mergedcrates/xcl/src/hle/d3d12x/list_x.rswon't compile its tests.execute_with_waitsto take three arguments,(queue, lists, submit) -> Result<(), String>(line 977 of the merged file), and updates the existing tests to passstd::ptr::null_mut()(lines 3042 and 3055).execute_with_waits(&lists, |chunk| …)(line 2989 of the merged file). That's E0061 in thexcllib test build, whichever PR lands second.Fix for whichever lands second: pass
std::ptr::null_mut()as the queue, as #708 does, and handle theResult. I read this from the merged tree and didn't compile it.AI-assisted (Claude Code).
@MesshM on GitHub · 2026-11-24 04:33 UTC · original
Test run of
d9d61177814f328158bcb5f27c9190f7bf253933on AMD RDNA4. I merged it onto currentmain64b3f35locally (clean merge) and tested that tree.Tested
stable-x86_64-pc-windows-msvc, debugcargo build --workspace+cargo test --workspace -- --test-threads=4on the merge: 703 passed, 0 failed, 41 ignored, exit code 0;xcllib tests 662 passed, 0 failed, 21 ignoredSKIPPED;wait64_flags_do_not_mask_the_recorded_counterandwait64_satisfied_counter_keeps_submission_together_and_wait32_keeps_its_maskpass.Review: Test-only coverage for #218 (Wait64 compares the whole 64-bit counter); no GPU needed, so this is mainly the whole suite on an AMD adapter. I found nothing to change.
Not tested: no retail title or regression run (I have no unpacked game), no
XCL_SAMPLE_*tests, release build; the PR's head on its old base was not run, only its merge ontomain.Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
@DavidM1911 on GitHub · 2026-11-25 13:18 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
@ivall on GitHub · 2026-11-25 19:19 UTC · original
Merging: pins that Wait64's flags do not mask the counter and that a satisfied wait does not split the batch.
Tested on AMD RDNA4 (native wave64), Windows, DXC 1.8.2502.11, debug,
main2898511with 27 test PRs merged locally, this one included: the whole suite 3 times, 1419 passed, 2 failed, 46 ignored each time (fuzz_validate_and_gpu_1and_3, which fail the same way onmain);hle::d3d12xon 16 threads 5 times, no failure.AI use: Claude Code (Claude Opus 5.5) reviewed and tested this and wrote the comment on the maintainer's behalf.