Let the console waves of a group take wave-wide branches apart #5
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/TaynanGT--Vice-Tay--gone-20261126!5
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/5/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?
@TaynanGT on GitHub · 2026-11-25 08:47 UTC · original
TaynanGT:claude/pair-meetings→local/fxceless-render· +397 −16 · 6 files · 5 commits · closed without mergingWhat and why
Console compute programs built for 64-lane waves are refused by the NVIDIA driver (
WaveSize(64),E_INVALIDARG) when their cross-lane code spans the whole console wave, so every dispatch of them is dropped. The wave-wide form (VICTORY_WAVE_WIDE_ONLY) already ran such programs as two 32-lane host waves, but only in thread groups of one console wave. This PR extends it to groups of several console waves, which covers three more programs of the first room, among them the cascade shadows of alpha-tested casters.Full write-up:
docs/wave64-on-wave32.md.How it works
lower.rs,pair_wait), with LDS fences on both sides and a spin limit (wrong values rather than a hung GPU).Module::split_before(bitcode.rs) places the wait between the code emitted so far and the current block, so callers that hold the current block keep emitting after the wait.VICTORY_WAVE_WIDE_ONLYwhose LDS already fills 32 KiB put the meeting dwords over their last ones (shortcut, used by6b82bc7d).VICTORY_WAVE_WIDE_ONLY(orVICTORY_WAVE_WIDE=1), so default behaviour does not change.Results
Offline (
victory translate --validate --pipelines, RTX 4090): 8 of the 9 WaveSize 64 programs of the first room translate, validate and create pipelines; new are02384a60,6b82bc7dandf133e35e.Live, first room, same binary, only the list differs, 25 s per run:
About 8% slower because three more programs run. No device loss. The posterized image also appears in control runs (intermittent, not caused by this change).
List for the first room:
Tests
cargo test --release -p victory-shader: 272 passed, 2 ignored, after the merge oflocal/fxceless-render.two_console_waves_take_a_wave_wide_branch_apart: a 128-thread group in which only the first console wave takes the branch; ran on the RTX 4090.cargo clippyclean; asset policy: 192 files ok. CI green.Known limits
2da4beb3(alpha transmission prefilter) still fails: it builds a sampler inside a region the console skips when no lane runs it.6b82bc7dassumes the program does not reach its last bytes.🤖 Generated with Claude Code
@TaynanGT on GitHub · 2026-11-25 08:47 UTC · original
Comentário original de
TaynanGTem 11/25/2026 08:35:11. Ver original.@TaynanGT on GitHub · 2026-11-25 09:06 UTC · original
After the merge of
local/fxceless-render(dee2deb):cargo test --release -p victory-shader272 passed, 2 ignored, includingtwo_console_waves_take_a_wave_wide_branch_aparton the RTX 4090.@TaynanGT on GitHub · 2026-11-25 19:21 UTC · original · edited 2026-11-25 20:01 UTC
Moved into #11, which holds all of this work on one branch, since merged into
main.Pull request closed