Tests: cover 3D wave64 compute through the D3D12.X PSO hook #663
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!663
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-663"
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?
@luna021839 on GitHub · 2026-11-24 03:04 UTC · original
luna021839:test-wave64-compute-3d→main· +99 −9 · 1 files · 1 commits · openThe existing compute PSO integration test exercises a two-dimensional dispatch. Add a separate three-dimensional case that resolves a translated console PSO and checks Z-axis group and thread IDs as well as cross-wave LDS reads on the GPU.
What is in it
crates/xcl/tests/gpu_compute_e2e.rskeeps the two-dimensional case and reuses its PSO setup for a 16 × 4 × 2 thread group dispatched over 2 × 3 × 2 groups. Each of the 1,536 threads writes its global coordinates and the mirrored thread's coordinates from the other wave64. The test compares all 3,072 values with the CPU calculation and checks the guards on both sides of the output buffer.Tested
dd2ae9a70af5eb5aad60f02d86e386b72abe1e95plus this test-only patch. Windows 11 build 26200, Ryzen 7 2700X, GeForce RTX 5060 Ti 16 GB (driver 610.88), rustc 1.100.0 MSVC x64 and DXC 1.9.2609.5. Debug build.cargo test --locked --jobs 3 -p xcl --test gpu_compute_e2e -- console_wave64_compute_3d_through_the_pso_hook --exact --show-outputpassed on the RTX 5060 Ti with no skip. The test confirmed the resolved PSO was translated from the console shader.cargo build --locked --workspace --jobs 3passed.cargo test --locked --workspace --no-fail-fast --jobs 3 -- --test-threads=4 --show-outputreturned 691 passed, 0 failed and 41 ignored. The existing 2D test, the async PSO test and the new 3D test all passed.SKIPPEDfor lack of native wave64:gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware. The test runner includes them in the passed count.Regression run
Not tested
AI use
@MesshM on GitHub · 2026-11-24 03:24 UTC · original
Test run of
ad0f0cd1d13fcc6cdb84fdfb778c5353a627da87on AMD RDNA4. I merged it onto currentmain91f9a5elocally (clean merge) and tested that tree.Tested
stable-x86_64-pc-windows-msvc, debugcargo build --workspace+cargo test --workspace -- --test-threads=4on the merge: 693 passed, 0 failed, 41 ignored, exit code 0;xcllib tests 652 passed, 0 failed, 21 ignoredSKIPPED;console_wave64_compute_3d_through_the_pso_hookpasses, next to the existing 2D case.Review: The 16 × 4 × 2 group is two wave64s, and each thread reads its mirrored thread from the other wave through LDS after
s_barrier, so on this adapter the cross-wave path runs natively, not emulated. 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.
@lordon1a on GitHub · 2026-11-24 03:28 UTC · original
Independent GPU e2e test report on
ad0f0cd:Tested
616.64, wave32, SM 6.6), Intel i7-12700H, Windows 11 Home 26H2 (build 26200),rustc 1.100.0(x86_64-pc-windows-gnullvm), debug build, DXC1.9.2609.5(01b62ad4)cargo test -p xcl --test gpu_compute_e2e -- --nocapture1.18s:async_compute_pso_registers_real_pso_and_not_standin— okconsole_wave64_compute_through_the_pso_hook_dispatch_and_read_back— okconsole_wave64_compute_3d_through_the_pso_hook— ok (5252 B DXIL, 172 ms)Not tested
AI use
ad0f0cdin a detached worktree, audited the diff, rangpu_compute_e2e, and posted this report.@Alpha325 on GitHub · 2026-11-25 02:37 UTC · original
I tested exact head
ad0f0cd1d13fcc6cdb84fdfb778c5353a627da87on an RX 9060 XT (driver 32.0.32029.2010), Windows 11 build 26200.9974, Rust 1.100.0 MSVC, and DXC 1.9.2602.17. Each mode started with a separate empty DXIL cache, withXCL_REQUIRE_GPU=wave64.gpu_compute_e2eXCL_SPLIT_WAVE64unsetWaveSize=64, 4,716 bytesXCL_SPLIT_WAVE64=1WaveSize=32, 5,256 bytesdxc -dumpbinconfirmedNumThreads=(16,4,2)in both shaders. Both modes passed all 3,072 coordinate and cross-wave LDS readback checks, including the output buffer guard checks.Command:
cargo test --offline --locked -p xcl --test gpu_compute_e2e -- --test-threads=1 --nocapture. I also ran the 3D test by itself with--exactto inspect its cache entry separately.Scope — Synthetic shaders only, debug build. AI use — OpenAI Codex (GPT-6) ran the tests, inspected the DXIL, and drafted this report.
@JJAutoCompare on GitHub · 2026-11-25 06:30 UTC · original
Empirical test report (
ad0f0cd1)Hardware / environment
ad0f0cd1d13fcc6cdb84fdfb778c5353a627da87, detached HEAD.x86_64-pc-windows-msvc, Cargo 1.100.0 and DXC 1.9.2609.5 (01b62ad4). Unoptimized test profile with incremental compilation and debug information disabled.Commands and results
cargo test --workspace --no-runoutside the Arc lock exited 0. This compiled the workspace tests.Invoke-ArcTest.ps1lock, withXCL_ADAPTER=A770,RUST_TEST_NOCAPTURE=1and a dedicated DXIL cache, ran:gpu_compute_e2e-8e55ef041f776251.exe console_wave64_compute_3d_through_the_pso_hook --exact --nocapture --test-threads=1exited 0.gpu_compute_e2e-8e55ef041f776251.exe console_wave64_compute_through_the_pso_hook_dispatch_and_read_back --exact --nocapture --test-threads=1exited 0.dxc -dumpbin 10901c324821806a.dxilanddxc -dumpbin 70985ebfd4c7402d.dxileach exited 0.Observed behavior
Both runs selected the real Arc D3D12.X backend and built translated compute PSOs. DXIL disassembly confirmed
WaveSize=32for the 3D (16 x 4 x 2) and 2D (16 x 8 x 1) thread groups. Both dispatches passed on the split-wave32 path. The new 3D test verified global XYZ coordinates, mirrored-thread coordinates read through LDS, and intact guard words before and after the output range.Not tested
Native wave64 hardware, the full GPU workspace suite, and game smoke runs.
AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against pr663-focused.log and published.
@DavidM1911 on GitHub · 2026-11-25 12:21 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.