Narrow the wave to 32 for shaders that cannot observe it #988
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/fxceless--victory-fork!988
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-988"
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?
@superboynick on GitHub · 2026-11-25 15:14 UTC · original
superboynick:feat/wave32-rescue→main· +381 −10 · 8 files · 2 commits · openOne of the compute pipelines this build creates is refused with x80070057 because the shader still declares a 64-wide wave after optimization. That particular shader does not use any wave intrinsic at all, so the 64-wide declaration is not carrying meaning: it is a leftover from the source container.
This narrows the wave to 32 for shaders provably in that state, after optimization has decided nothing else needs the wider wave.
Measured effect, retail title on one machine: refused compute pipelines go from five to four. The rescued one is the shader whose 64-wide declaration came with no wave intrinsics. The remaining four do use wave operations and are left alone.
The criterion, now testable. The decision is a predicate over the intrinsic names found after optimization rather than code buried in the emission path, with table-driven cases:
15 cases across two tests; the shader crate suite is 223 passed, 3 ignored.
What the tests do not cover: they check which shaders are selected, not that the narrowed result is numerically equivalent on the GPU. Group-shared memory without barriers, derivative assumptions tied to lane count, and any indirect access pattern remain the reviewer's call; shaders using them are not narrowed, but the tests cannot prove that list is complete.
@superboynick on GitHub · 2026-11-25 20:27 UTC · original
End-to-end evidence from a real run, rather than a count. With this change on top of
0b0074eplus the PSO trace, the shader this PR was written for now reaches a pipeline and gets bound:Before the change the same hash appears among the failures; after it, it does not, and the refused set is four compute programs plus one mesh program instead of five compute.
Two honest limits. The run still reports five refusals (four compute, one mesh), so this fixes one case rather than the class. And "creates and binds" is not "produces the same numbers": nothing here checks the output, only that the pipeline exists and is used at frame 1408.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.