Wave64 pairs #3177

Open
Vyto-Line wants to merge 431 commits from upstream-pr/3179 into main
Vyto-Line commented 2026-11-26 11:18:35 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by Vyto-Line on 2026-11-26T11:18:35Z.


No description provided.

<!-- greyfinch-sync:Marvisak/VIctory:issue:5509062762 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3179). Originally posted by [Vyto-Line](https://github.com/Vyto-Line) on 2026-11-26T11:18:35Z. --- _No description provided._
steven-seagull27 commented 2026-11-26 13:04:25 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by steven-seagull27 on 2026-11-26T12:06:44Z.


On an RTX 5080, the paired backend in 3a41edbd passed the seven-UAV regression once I added carlosmegino’s existing masked v_readfirstlane_b32 selection change. I used the guest program and CPU oracle from #3180 at 827057a6 and passed the adapter’s queried maximum of 32 to the emitter, as the runtime does. Selector commit

RTX 5080, mismatched output words 64 guest threads 128 guest threads
Current #3179 selection 64 / 448 128 / 896
With the selector change 0 / 448 0 / 896
Same change with VICTORY_WAVE_PAIRS=0 64 / 448 128 / 896

All mismatches were in UAVs 2 and 3, which store the results of the two masked first-lane reads. UAV 2, thread 0 read 0 and expected 40. The other five UAVs and all 56 guard words per dispatch matched in every row. The green row repeated in fresh processes with zero D3D12 GPU validation warnings or errors.

Two details for reproducing this:

  • On the unmodified #3180 head, the RTX 5080 rejected the 64-thread Wave64 PSO, and the 128-thread case reached the same UAV 2 mismatch. Both WARP versions stopped at the fixture’s exact (32,32) assertion before dispatch. Windows WARP reported (4,4) and app-local WARP 1.0.22 reported (4,128).
  • On unmodified #3179, cargo test --locked -p victory-shader --lib --no-run stops at the missing closing brace in wave64_tests.rs after the counted-threads test. Closing it exposes unresolved layout, used, fp16 and pixel_of in the barycentric test helper in emit/mod.rs. For the table I repaired those test helpers locally and ported the #3180 fixture to this branch’s IR builder. The middle row adds only the production selector hunk from the linked commit.

AI-assisted with Codex.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7191580110 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3179#issuecomment-7191580110). Originally posted by [steven-seagull27](https://github.com/steven-seagull27) on 2026-11-26T12:06:44Z. --- On an RTX 5080, the paired backend in `3a41edbd` passed the seven-UAV regression once I added carlosmegino’s existing masked `v_readfirstlane_b32` selection change. I used the guest program and CPU oracle from [#3180 at `827057a6`](https://github.com/Marvisak/VIctory/pull/3180) and passed the adapter’s queried maximum of 32 to the emitter, as the runtime does. [Selector commit](https://github.com/PiloteCode/victory-fork/commit/805a455d90e89cfa44572d19757c1454ee733136) | RTX 5080, mismatched output words | 64 guest threads | 128 guest threads | |---|---:|---:| | Current #3179 selection | 64 / 448 | 128 / 896 | | With the selector change | 0 / 448 | 0 / 896 | | Same change with `VICTORY_WAVE_PAIRS=0` | 64 / 448 | 128 / 896 | All mismatches were in UAVs 2 and 3, which store the results of the two masked first-lane reads. UAV 2, thread 0 read 0 and expected 40. The other five UAVs and all 56 guard words per dispatch matched in every row. The green row repeated in fresh processes with zero D3D12 GPU validation warnings or errors. Two details for reproducing this: - On the unmodified #3180 head, the RTX 5080 rejected the 64-thread Wave64 PSO, and the 128-thread case reached the same UAV 2 mismatch. Both WARP versions stopped at the fixture’s exact `(32,32)` assertion before dispatch. Windows WARP reported `(4,4)` and app-local WARP 1.0.22 reported `(4,128)`. - On unmodified #3179, `cargo test --locked -p victory-shader --lib --no-run` stops at the missing closing brace in `wave64_tests.rs` after the counted-threads test. Closing it exposes unresolved `layout`, `used`, `fp16` and `pixel_of` in the barycentric test helper in `emit/mod.rs`. For the table I repaired those test helpers locally and ported the #3180 fixture to this branch’s IR builder. The middle row adds only the production selector hunk from the linked commit. AI-assisted with Codex.
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/3179:upstream-pr/3179'
git switch 'upstream-pr/3179'

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/3179'
git switch 'upstream-pr/3179'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3179'
git switch 'upstream-pr/3179'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3179'
git switch 'main'
git merge --squash 'upstream-pr/3179'
git switch 'main'
git merge --ff-only 'upstream-pr/3179'
git switch 'main'
git merge 'upstream-pr/3179'
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
Marvisak/VIctory!3177
No description provided.