Tests: cover 3D wave64 compute through the D3D12.X PSO hook #663

Open
github-bot wants to merge 1 commit from github-bot/gh-663 into main AGit
Owner

@⁠luna021839 on GitHub · 2026-11-24 03:04 UTC · original
luna021839:test-wave64-compute-3d → main · +99 −9 · 1 files · 1 commits · open

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.rs keeps 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

  • Base dd2ae9a70af5eb5aad60f02d86e386b72abe1e95 plus 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-output passed on the RTX 5060 Ti with no skip. The test confirmed the resolved PSO was translated from the console shader.
  • Two negative controls failed at GPU readback. Clearing the group-Z enable left the first word at (0, 0, 2) untouched. Disabling the local Z thread ID lost the mirrored thread's LDS value at (0, 0, 0). Both changes were reverted.
  • cargo build --locked --workspace --jobs 3 passed.
  • cargo test --locked --workspace --no-fail-fast --jobs 3 -- --test-threads=4 --show-output returned 691 passed, 0 failed and 41 ignored. The existing 2D test, the async PSO test and the new 3D test all passed.
  • Two other GPU tests reported SKIPPED for lack of native wave64: gpu_geometry_wave32_prefix_count_over_a_mask and gpu_wave32_program_in_wave64_hardware. The test runner includes them in the passed count.

Regression run

  • Integration-test-only change. The shader and buffers are created by the test.

Not tested

  • Native wave64 on AMD and optional game-data tests.

AI use

  • OpenAI Codex (GPT-6.2 Sol) wrote the test, ran validation and drafted this description.
**@⁠luna021839** on GitHub · 2026-11-24 03:04 UTC · [original](https://github.com/xcl-dev/xcl/pull/663) `luna021839:test-wave64-compute-3d` → `main` · +99 −9 · 1 files · 1 commits · open 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.rs` keeps 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** - Base `dd2ae9a70af5eb5aad60f02d86e386b72abe1e95` plus 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-output` passed on the RTX 5060 Ti with no skip. The test confirmed the resolved PSO was translated from the console shader. - Two negative controls failed at GPU readback. Clearing the group-Z enable left the first word at (0, 0, 2) untouched. Disabling the local Z thread ID lost the mirrored thread's LDS value at (0, 0, 0). Both changes were reverted. - `cargo build --locked --workspace --jobs 3` passed. - `cargo test --locked --workspace --no-fail-fast --jobs 3 -- --test-threads=4 --show-output` returned 691 passed, 0 failed and 41 ignored. The existing 2D test, the async PSO test and the new 3D test all passed. - Two other GPU tests reported `SKIPPED` for lack of native wave64: `gpu_geometry_wave32_prefix_count_over_a_mask` and `gpu_wave32_program_in_wave64_hardware`. The test runner includes them in the passed count. **Regression run** - Integration-test-only change. The shader and buffers are created by the test. **Not tested** - Native wave64 on AMD and optional game-data tests. **AI use** - OpenAI Codex (GPT-6.2 Sol) wrote the test, ran validation and drafted this description.
Exercise group and thread IDs along the Z axis in a translated console PSO. Compare the global coordinates and cross-wave LDS values against CPU results, with guard words around the output.

Assisted-by: OpenAI Codex (GPT-6.2 Sol)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:28:48 +00:00
Author
Owner

@⁠MesshM on GitHub · 2026-11-24 03:24 UTC · original

Test run of ad0f0cd1d13fcc6cdb84fdfb778c5353a627da87 on AMD RDNA4. I merged it onto current main 91f9a5e locally (clean merge) and tested that tree.

Tested

  • AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200, Rust 1.100.0 stable-x86_64-pc-windows-msvc, debug
  • cargo build --workspace + cargo test --workspace -- --test-threads=4 on the merge: 693 passed, 0 failed, 41 ignored, exit code 0; xcl lib tests 652 passed, 0 failed, 21 ignored
  • 0 SKIPPED; console_wave64_compute_3d_through_the_pso_hook passes, 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 onto main.

Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.

**@⁠MesshM** on GitHub · 2026-11-24 03:24 UTC · [original](https://github.com/xcl-dev/xcl/pull/663#issuecomment-7121065468) Test run of `ad0f0cd1d13fcc6cdb84fdfb778c5353a627da87` on AMD RDNA4. I merged it onto current `main` `91f9a5e` locally (clean merge) and tested that tree. **Tested** - AMD Radeon RX 9060 XT 16 GB (RDNA4, native wave64), driver 32.0.32029.2010; Ryzen 7 5700X, 64 GB RAM, Windows 11 Pro build 26200, Rust 1.100.0 `stable-x86_64-pc-windows-msvc`, debug - `cargo build --workspace` + `cargo test --workspace -- --test-threads=4` on the merge: **693 passed, 0 failed, 41 ignored**, exit code 0; `xcl` lib tests 652 passed, 0 failed, 21 ignored - **0 `SKIPPED`**; `console_wave64_compute_3d_through_the_pso_hook` passes, 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 onto `main`. Run and review by Claude Code (Claude Opus 5.5) on this machine; the review points were checked against the code.
Author
Owner

@⁠lordon1a on GitHub · 2026-11-24 03:28 UTC · original

Independent GPU e2e test report on ad0f0cd:

Tested

  • Hardware: NVIDIA GeForce RTX 3070 Ti Laptop GPU (driver 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, DXC 1.9.2609.5 (01b62ad4)
  • Command: cargo test -p xcl --test gpu_compute_e2e -- --nocapture
  • Result: 3 passed, 0 failed, 0 ignored in 1.18s:
    • async_compute_pso_registers_real_pso_and_not_standin — ok
    • console_wave64_compute_through_the_pso_hook_dispatch_and_read_back — ok
    • console_wave64_compute_3d_through_the_pso_hook — ok (5252 B DXIL, 172 ms)

Not tested

  • AMD / wave64, Intel GPU, retail title

AI use

  • Antigravity (Google DeepMind agent) — fetched ad0f0cd in a detached worktree, audited the diff, ran gpu_compute_e2e, and posted this report.
**@⁠lordon1a** on GitHub · 2026-11-24 03:28 UTC · [original](https://github.com/xcl-dev/xcl/pull/663#issuecomment-7121137970) Independent GPU e2e test report on `ad0f0cd`: **Tested** - Hardware: NVIDIA GeForce RTX 3070 Ti Laptop GPU (driver `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, DXC `1.9.2609.5` (`01b62ad4`) - Command: `cargo test -p xcl --test gpu_compute_e2e -- --nocapture` - Result: **3 passed, 0 failed, 0 ignored** in `1.18s`: - `async_compute_pso_registers_real_pso_and_not_standin` — **ok** - `console_wave64_compute_through_the_pso_hook_dispatch_and_read_back` — **ok** - `console_wave64_compute_3d_through_the_pso_hook` — **ok** (`5252 B DXIL, 172 ms`) **Not tested** - AMD / wave64, Intel GPU, retail title **AI use** - Antigravity (Google DeepMind agent) — fetched `ad0f0cd` in a detached worktree, audited the diff, ran `gpu_compute_e2e`, and posted this report.
Author
Owner

@⁠Alpha325 on GitHub · 2026-11-25 02:37 UTC · original

I tested exact head ad0f0cd1d13fcc6cdb84fdfb778c5353a627da87 on 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, with XCL_REQUIRE_GPU=wave64.

Mode 3D readback Full gpu_compute_e2e 3D shader metadata
Native, XCL_SPLIT_WAVE64 unset Pass 3 passed, 0 failed, 0 skips WaveSize=64, 4,716 bytes
Forced split, XCL_SPLIT_WAVE64=1 Pass 3 passed, 0 failed, 0 skips WaveSize=32, 5,256 bytes

dxc -dumpbin confirmed NumThreads=(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 --exact to 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.

**@⁠Alpha325** on GitHub · 2026-11-25 02:37 UTC · [original](https://github.com/xcl-dev/xcl/pull/663#issuecomment-7150956177) I tested exact head `ad0f0cd1d13fcc6cdb84fdfb778c5353a627da87` on 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, with `XCL_REQUIRE_GPU=wave64`. | Mode | 3D readback | Full `gpu_compute_e2e` | 3D shader metadata | |---|---|---|---| | Native, `XCL_SPLIT_WAVE64` unset | Pass | 3 passed, 0 failed, 0 skips | `WaveSize=64`, 4,716 bytes | | Forced split, `XCL_SPLIT_WAVE64=1` | Pass | 3 passed, 0 failed, 0 skips | `WaveSize=32`, 5,256 bytes | `dxc -dumpbin` confirmed `NumThreads=(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 `--exact` to 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.
Author
Owner

@⁠JJAutoCompare on GitHub · 2026-11-25 06:30 UTC · original

Empirical test report (ad0f0cd1)

Hardware / environment

  • PR #663 at ad0f0cd1d13fcc6cdb84fdfb778c5353a627da87, detached HEAD.
  • Intel Arc A770 Graphics, driver 32.0.101.9175, on Windows 11 Enterprise Evaluation build 26200 (10.0.26200).
  • AMD Ryzen 7 3800X 8-Core Processor. Rust 1.100.0 (0ef1bc386), 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-run outside the Arc lock exited 0. This compiled the workspace tests.
  • Inside a single Invoke-ArcTest.ps1 lock, with XCL_ADAPTER=A770, RUST_TEST_NOCAPTURE=1 and a dedicated DXIL cache, ran:
    • gpu_compute_e2e-8e55ef041f776251.exe console_wave64_compute_3d_through_the_pso_hook --exact --nocapture --test-threads=1 exited 0.
    • gpu_compute_e2e-8e55ef041f776251.exe console_wave64_compute_through_the_pso_hook_dispatch_and_read_back --exact --nocapture --test-threads=1 exited 0.
  • Arc lock wrapper exited 0. Focused log totals were 2 passed / 0 failed / 0 ignored / 0 skipped. Each invocation ran one test and filtered out two.
  • dxc -dumpbin 10901c324821806a.dxil and dxc -dumpbin 70985ebfd4c7402d.dxil each exited 0.

Observed behavior

Both runs selected the real Arc D3D12.X backend and built translated compute PSOs. DXIL disassembly confirmed WaveSize=32 for 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.

**@⁠JJAutoCompare** on GitHub · 2026-11-25 06:30 UTC · [original](https://github.com/xcl-dev/xcl/pull/663#issuecomment-7154856819) ### Empirical test report (ad0f0cd1) **Hardware / environment** - PR #663 at `ad0f0cd1d13fcc6cdb84fdfb778c5353a627da87`, detached HEAD. - Intel Arc A770 Graphics, driver 32.0.101.9175, on Windows 11 Enterprise Evaluation build 26200 (10.0.26200). - AMD Ryzen 7 3800X 8-Core Processor. Rust 1.100.0 (0ef1bc386), `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-run` outside the Arc lock exited 0. This compiled the workspace tests. - Inside a single `Invoke-ArcTest.ps1` lock, with `XCL_ADAPTER=A770`, `RUST_TEST_NOCAPTURE=1` and a dedicated DXIL cache, ran: - `gpu_compute_e2e-8e55ef041f776251.exe console_wave64_compute_3d_through_the_pso_hook --exact --nocapture --test-threads=1` exited 0. - `gpu_compute_e2e-8e55ef041f776251.exe console_wave64_compute_through_the_pso_hook_dispatch_and_read_back --exact --nocapture --test-threads=1` exited 0. - Arc lock wrapper exited 0. Focused log totals were 2 passed / 0 failed / 0 ignored / 0 skipped. Each invocation ran one test and filtered out two. - `dxc -dumpbin 10901c324821806a.dxil` and `dxc -dumpbin 70985ebfd4c7402d.dxil` each exited 0. **Observed behavior** Both runs selected the real Arc D3D12.X backend and built translated compute PSOs. DXIL disassembly confirmed `WaveSize=32` for 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.
Author
Owner

@⁠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.

**@⁠DavidM1911** on GitHub · 2026-11-25 12:21 UTC · [original](https://github.com/xcl-dev/xcl/pull/663#issuecomment-7162257580) Verification on RTX 3060 Ti (Windows 11): **merge conflict with current `main`** — needs a rebase before it can be tested.
This pull request has changes conflicting with the target branch.
  • crates/xcl/tests/gpu_compute_e2e.rs
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.
git fetch -u origin '+refs/pull/663/head:github-bot/gh-663'
git switch 'github-bot/gh-663'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-663'
git switch 'github-bot/gh-663'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-663'
git switch 'github-bot/gh-663'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-663'
git switch 'main'
git merge --squash 'github-bot/gh-663'
git switch 'main'
git merge --ff-only 'github-bot/gh-663'
git switch 'main'
git merge 'github-bot/gh-663'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.