Shaders: run wave32 and lane-mask retries after edge threading #170

Open
adritoyalser wants to merge 1 commit from upstream-pr/170 into main
adritoyalser commented 2026-11-24 22:06:45 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by adritoyalser on 2026-11-24T22:06:45Z.


Summary

  • Factored the emission + retry sequence out of emit() into emit_once() in crates/victory-shader/src/emit/mod.rs.
  • After ir::thread_edges() resolves an Unsupported error, emit() now calls emit_once() instead of emit_program() directly, so threaded shaders still run the wave64-on-wave32 retry passes (without_early_outs, without_skips, local_waves) and the LANE_MASK wave-wide widen retry.
  • Added regression test hreaded_wave64_compute_still_runs_wave32_retries in crates/victory-shader/src/emit/wave64_tests.rs verifying that a wave64 compute shader requiring both edge threading and wave32 retries fails plain emit_program, succeeds through emit, and validates against dxil.dll.

Verification

  • cargo test -q -p victory-shader --lib --locked threaded_wave64_compute_still_runs_wave32_retries (pass, validated with dxil.dll 10.0.26100.0)
  • cargo clippy -q -p victory-shader --all-targets --locked -- -D warnings (0 warnings)
  • cargo clippy -q -p victory-shader --all-targets --all-features --locked -- -D warnings (0 warnings)
<!-- greyfinch-sync:fxceless/victory-fork:issue:6592357955 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/170). Originally posted by [adritoyalser](https://github.com/adritoyalser) on 2026-11-24T22:06:45Z. --- ### Summary - Factored the emission + retry sequence out of emit() into emit_once() in crates/victory-shader/src/emit/mod.rs. - After ir::thread_edges() resolves an Unsupported error, emit() now calls emit_once() instead of emit_program() directly, so threaded shaders still run the wave64-on-wave32 retry passes (without_early_outs, without_skips, local_waves) and the LANE_MASK wave-wide widen retry. - Added regression test hreaded_wave64_compute_still_runs_wave32_retries in crates/victory-shader/src/emit/wave64_tests.rs verifying that a wave64 compute shader requiring both edge threading and wave32 retries fails plain emit_program, succeeds through emit, and validates against dxil.dll. ### Verification - cargo test -q -p victory-shader --lib --locked threaded_wave64_compute_still_runs_wave32_retries (pass, validated with dxil.dll 10.0.26100.0) - cargo clippy -q -p victory-shader --all-targets --locked -- -D warnings (0 warnings) - cargo clippy -q -p victory-shader --all-targets --all-features --locked -- -D warnings (0 warnings)
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/170:upstream-pr/170'
git switch 'upstream-pr/170'

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/170'
git switch 'upstream-pr/170'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/170'
git switch 'upstream-pr/170'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/170'
git switch 'main'
git merge --squash 'upstream-pr/170'
git switch 'main'
git merge --ff-only 'upstream-pr/170'
git switch 'main'
git merge 'upstream-pr/170'
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
fxceless/victory-fork!170
No description provided.