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

Open
github-bot wants to merge 1 commit from github-bot/gh-170 into main AGit
Owner

@⁠adritoyalser on GitHub · 2026-11-24 22:06 UTC · original
adritoyalser:fix/threaded-wave32-retry → main · +96 −15 · 2 files · 1 commits · open

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)
**@⁠adritoyalser** on GitHub · 2026-11-24 22:06 UTC · [original](https://github.com/fxceless/victory-fork/pull/170) `adritoyalser:fix/threaded-wave32-retry` → `main` · +96 −15 · 2 files · 1 commits · open ### 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)
After ir::thread_edges resolves an Unsupported error, emit() called
emit_program() directly instead of running the wave64-on-wave32 retry
passes (without_early_outs, without_skips, local_waves) and the
LANE_MASK wave-wide retry.

Factor the emission + retry sequence into emit_once() and call it both
before and after ir::thread_edges.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:37:29 +00:00
github-bot force-pushed github-bot/gh-170 from 215724bd15 to 01cd95f900 2026-11-26 18:39:59 +00:00 Compare
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/170/head:github-bot/gh-170'
git switch 'github-bot/gh-170'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-170'
git switch 'github-bot/gh-170'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-170'
git switch 'github-bot/gh-170'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-170'
git switch 'main'
git merge --squash 'github-bot/gh-170'
git switch 'main'
git merge --ff-only 'github-bot/gh-170'
git switch 'main'
git merge 'github-bot/gh-170'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.