Tests: cover 3D wave64 compute through the D3D12.X PSO hook #655
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/660"
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 luna020924 on 2026-11-24T03:01:08Z.
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
upstream-sync referenced this pull request2026-11-24 19:06:45 +00:00
upstream-sync referenced this pull request2026-11-24 22:05:13 +00:00
Pull request closed