Shaders: console waves' pair meetings stop writing when they run out, and do not wait for a half that left #1537
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!1537
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1537"
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?
@mizzied on GitHub · 2026-11-28 21:23 UTC · original
mizzied:up/wave-pair-meet→main· +976 −61 · 13 files · 1 commits · merged 2026-11-29 08:16 UTCWhat was wrong. In the pair form of the wave64 translation (
lower/pair.rs,meet_pair), a half whose wait for its partner ran out (MEETING_POLLS) carried on with values the other half had written for an older meeting, computed from them and stored the result. The group's output for that frame was stale rather than missing. The same form also waited for a half whose 32 lanes had all left the program.The fix.
SLOT_PAIR_MISSES, keyed by an FNV-1a of the container), marks its console wave, and leaves the program with the whole host wave. A half that finds its partner marked leaves too. The output is missing for the frame, never stale.exchange_pairs) reads 0, as the console gives for lanes that have left.pair_safe: dispatches counted in threads keep the old behaviour.pair exchanges that ran out: N this frame, by program hash(victory-gpupairmiss.rs). The line namesVICTORY_WAVE_PAIR_NOT=<hash,...>to keep programs out of the form;VICTORY_WAVE_PAIR=0leaves the form out, andVICTORY_WAVE_WIDE=0now also leaves out its last stage of the wave64 ladder.How it was tested. RTX 5070, Windows 11. New card tests in
wave64_tests.rscompare every thread with a reference: an OR in a lane branch, a lane count in a lane branch, a loop whose trip count differs by lane, and halves that left first. A pair that really runs out stores nothing and notes its program, and a counted dispatch has no note UAV.cargo test --workspacepasses apart fromrepository_passes_policy, which already fails onmain:lower.rsis over the 640 KiB file-size limit there (#1493 raises it). Clippy reports only the 16 findings already onmain, none on lines this PR changes.[pr-fix][shaders][NVIDIA] Shaders: console waves' pair meetings stop writing when they run out, and do not wait for a half that leftto Shaders: console waves' pair meetings stop writing when they run out, and do not wait for a half that left@nick0451 on GitHub · 2026-11-28 22:35 UTC · original
Tested in play: RTX 3090 24 GB (driver 610.88), i9-14900K, Windows 11. A release build of this PR merged onto main
923e38c, run in turn with main and four other PR builds. Series S, DLSS Performance, frame generation off. The same frozen save, outdoors on a balcony, standing still. A warm-up start per build, then two rounds, each run 40 s to settle and 60 s measured, then a screenshot. Main: 25.4 and 24.8 fps, 10 compute programs refused (no wave32 lowering). I compare round 2 only, because round 1 was slow for every new build.ERRORline. The picture matches main, and the same 10 programs are refused as on main, so nothing in this scene visibly depends on this change.The first start of every new build in this session crashed while loading at
+0x23cf683(main and all five PRs alike; see #628), so that is not from this change.Tested with an AI assistant (Claude Code); results are from this PC.