Shader: split per lane instead of dropping a program whose wave-wide SCC branch no form can take (#80) #81
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/DoubleGhosty--cool_fox!81
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/81/head"
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?
@Hasusmogus on GitHub · 2026-11-27 09:57 UTC · original
Hasusmogus:lane-split-fallback→main· +117 −2 · 4 files · 1 commits · closed without mergingFor #80 (and possibly the same
+0x23cf683write to null in #39 and #69).Since #66 (
9a4aa8d,bd8b4f5) a branch on a mask operation's SCC is taken wave-wide (wave_scc), which needs every lane of the console wave where it stands. A program none of whose forms gives it that is refused witha wave-wide branch where not every lane runs, and its dispatches are dropped. In #80 that isff6fdf23ce0b9048, logged right before the write to 0 while loading the boat cutscene, which fits the title reading something the dropped dispatch should have written as a pointer.This PR translates such a program once more with those branches split per lane, as before #66 (
structure::with_per_lane, a thread-local the whole retry chain sees, so every form is structured that way). That is inexact where an arm runs lanes whose own bit went the other way, but the program runs, as it did before #66.lower::WAVE_WIDE_ELSEWHERE) and only for programs that have such branches; everything else is untouched.VICTORY_LANE_SPLIT=exactrefuses as before;VICTORY_WAVE_WHY=1logs when the fallback is used.Tested
a_wave_wide_scc_branch_no_form_can_take_falls_back_to_the_per_lane_split: the issue's branch fixture behind anexeczskip thatwithout_skipsmust keep (the skipped code setss20, which the code after the join stores). The exact forms refuse it withWAVE_WIDE_ELSEWHERE;emitnow translates it.victory-shadersuite gives 303 passed (main's 302 plus the new test), with the same single vkd3d-proton failure (stub_pipeline_is_created).both_halves_observe_the_same_mask_scc_on_a_wave32_device(the #66 and #78 readbacks) still passes: the fallback does not reach programs the exact form takes.--workspace --all-targets [--all-features] -D warningsclean.VICTORY_WAVE_WHY=1the log says whetherff6fdf23ce0b9048took the fallback.🤖 Generated with Claude Code
@DoubleGhosty on GitHub · 2026-11-27 10:41 UTC · original
Applied to main as
d2f23973(authorship kept), witha4af70beon top, which addsVICTORY_LANE_SPLITto the shader cache key so=exactruns and default runs don't share cached translations. Thanks!Pull request closed