Check shader test expectations on 16-lane adapters #78

Open
Yoshi-233 wants to merge 1 commit from upstream-pr/78 into main
Yoshi-233 commented 2026-11-25 13:34:24 +00:00 (Migrated from github.com)

Imported from Belobug/VIctory-Belobug-AMD. Originally posted by Yoshi-233 on 2026-11-25T13:34:24Z.


On this Windows machine D3D12 reports wave sizes of 32–32 for the RTX 4070 Ti SUPER and 16–16 for the Intel UHD 770. At 71652a2 several lane tests obtain the expected values on NVIDIA and then fail when the translator refuses the same fixture on Intel. If Intel is enumerated first, that failure also prevents the test from reaching the next adapter.

Check the specific ShaderError::Unsupported and its offset when a fixture needs a wave width the adapter cannot provide. A shader that emits without a fixed wave size still goes through the usual checks. On 32- and 64-lane targets the tests continue to require successful translation and check the dispatched values. The synthetic 16-lane target exercises both sides of this distinction without requiring an Intel adapter.

Verification

  • Built the victory-shader library test binary with Rust 1.98.1 and ran it serially on native Windows with both physical adapters. Main reported 251 passed, 15 failed and 6 ignored. This branch reported 262 passed, 4 failed and 6 ignored. Exactly 11 existing tests changed from failed to passed.
  • The suite checked 21 expected translation refusals on the UHD 770. The divergent read-loop ran on the RTX for both console wave32 and console wave64, with every lane returning the expected value.
  • The four remaining failures are the native-wave64 VALU tests addressed separately by #52. The staged asset check passed for all three changed files.
  • I also applied this patch and #72 to the exact head of #52 (144d4a6) in a temporary checkout. The same Windows shader suite reported 266 passed, 0 failed and 6 ignored. Four of those 266 reported an internal skip because the selected adapter lacks native wave64. The combined checkout also passed the full 185-file asset check and all four xtask tests.
<!-- greyfinch-sync:Belobug/VIctory-Belobug-AMD:issue:6605681866 --> Imported from [Belobug/VIctory-Belobug-AMD](https://github.com/Belobug/VIctory-Belobug-AMD/pull/78). Originally posted by [Yoshi-233](https://github.com/Yoshi-233) on 2026-11-25T13:34:24Z. --- On this Windows machine D3D12 reports wave sizes of 32–32 for the RTX 4070 Ti SUPER and 16–16 for the Intel UHD 770. At `71652a2` several lane tests obtain the expected values on NVIDIA and then fail when the translator refuses the same fixture on Intel. If Intel is enumerated first, that failure also prevents the test from reaching the next adapter. Check the specific `ShaderError::Unsupported` and its offset when a fixture needs a wave width the adapter cannot provide. A shader that emits without a fixed wave size still goes through the usual checks. On 32- and 64-lane targets the tests continue to require successful translation and check the dispatched values. The synthetic 16-lane target exercises both sides of this distinction without requiring an Intel adapter. ## Verification - Built the `victory-shader` library test binary with Rust 1.98.1 and ran it serially on native Windows with both physical adapters. Main reported 251 passed, 15 failed and 6 ignored. This branch reported 262 passed, 4 failed and 6 ignored. Exactly 11 existing tests changed from failed to passed. - The suite checked 21 expected translation refusals on the UHD 770. The divergent read-loop ran on the RTX for both console wave32 and console wave64, with every lane returning the expected value. - The four remaining failures are the native-wave64 VALU tests addressed separately by #52. The staged asset check passed for all three changed files. - I also applied this patch and #72 to the exact head of #52 (`144d4a6`) in a temporary checkout. The same Windows shader suite reported 266 passed, 0 failed and 6 ignored. Four of those 266 reported an internal skip because the selected adapter lacks native wave64. The combined checkout also passed the full 185-file asset check and all four xtask tests.
ySKELLETONX commented 2026-11-25 16:35:51 +00:00 (Migrated from github.com)

Imported from Belobug/VIctory-Belobug-AMD. Originally posted by ySKELLETONX on 2026-11-25T16:35:51Z.


Tested on an RX 7600 XT 16 GB (RDNA3, Navi 33), driver 32.0.32015.2008, Windows 11 Pro build 26300, Rust 1.98.1, at 3a11067: cargo test -p victory-shader --lib --locked: 266 passed, 0 failed, 6 ignored, hardware dispatch tests included (main at 01aadd1: 266 passed). Workspace tests only; not run in the title.

<!-- greyfinch-sync:Belobug/VIctory-Belobug-AMD:comment:7168234159 --> Imported from [Belobug/VIctory-Belobug-AMD](https://github.com/Belobug/VIctory-Belobug-AMD/pull/78#issuecomment-7168234159). Originally posted by [ySKELLETONX](https://github.com/ySKELLETONX) on 2026-11-25T16:35:51Z. --- Tested on an RX 7600 XT 16 GB (RDNA3, Navi 33), driver 32.0.32015.2008, Windows 11 Pro build 26300, Rust 1.98.1, at `3a11067`: `cargo test -p victory-shader --lib --locked`: **266 passed, 0 failed, 6 ignored**, hardware dispatch tests included (`main` at `01aadd1`: 266 passed). Workspace tests only; not run in the title.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/78:upstream-pr/78'
git switch 'upstream-pr/78'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/78'
git switch 'upstream-pr/78'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/78'
git switch 'upstream-pr/78'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/78'
git switch 'main'
git merge --squash 'upstream-pr/78'
git switch 'main'
git merge --ff-only 'upstream-pr/78'
git switch 'main'
git merge 'upstream-pr/78'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Belobug/VIctory-Belobug-AMD!78
No description provided.