Tests: cover 3D wave64 compute through the D3D12.X PSO hook #658
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by luna021839 on 2026-11-24T03:04:15Z.
The 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
Imported from ivall/xcl. Originally posted by MesshM on 2026-11-24T03:24:51Z.
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.
Imported from ivall/xcl. Originally posted by lordon1a on 2026-11-24T03:28:52Z.
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.Imported from ivall/xcl. Originally posted by Alpha325 on 2026-11-25T02:37:05Z.
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.
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T06:30:12Z.
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.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T12:21:10Z.
Verification on RTX 3060 Ti (Windows 11): merge conflict with current
main— needs a rebase before it can be tested.Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T07:42:31Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T03:54:30Z.
Triage (#1607) – head
ad0f0cdNo open or merged PR adds a 3D (TGID_Z, three thread-ID VGPRs) wave64 compute test through the PSO hook. The PR conflicts with main: main has since split
console_wave64_compute_through_the_pso_hook_dispatch_and_read_backintomirror_program_through_the_hook, sodispatch_console_computeneeds a rebase onto that. No problems found inprogram_3d: the rsrc2 bits, the inline-constant shifts, the row-major addressing, and the LDS mirror into the other wave64 all match the CPU-side expectations.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.