test(shader): cover divergent FP16 wave64 reductions on wave32 hardware #93
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/uiliannn--VItoriaBr!93
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/93/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?
@bymaxdev on GitHub · 2026-11-25 22:27 UTC · original
bymaxdev:investigate/nvidia-shader-rejection→main· +51 −4 · 1 files · 1 commits · merged 2026-11-25 23:02 UTCSummary
Adds regression coverage for divergent FP16 wave64 reductions on wave32 hardware.
During testing on an NVIDIA RTX 5060, the existing test for FP16 reductions with inactive lanes was skipped because it explicitly requested WaveSize(64).
The D3D12 debug layer reported:
Further investigation showed that applying the existing
ir::without_early_outstransformation before lowering to wave32 allows the shader to execute successfully while preserving the console's reduction tree bit for bit in the tested cases.Changes
on_the_card.No production shader translation behavior is changed.
Validation
Environment
2b33e08The new test successfully executed on hardware with 64, 63, 40, 33, 32, 17, 5 and 1 active console lanes, matching the expected FP16 reduction results in every case.
Test results
VICTORY_STRICT_TESTS=1: passed.cargo clippy -p victory-shader --tests -- -D warnings: passed.git diff --check: passed.Limitations
The native wave64 variant was not executed on AMD hardware. This regression test exercises the existing early-out transformation directly rather than the complete automatic translation retry path.
This PR adds test coverage and improves diagnostics; it does not claim a runtime performance improvement.
Related to the GPU test diagnostics work in #32.