Shaders: "some lane is left" as a number, run on a host of 32-lane waves #1929
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!1929
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1929"
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?
@DiosET3RN0 on GitHub · 2026-11-29 03:08 UTC · original
DiosET3RN0:wave32-some-lane-test→main· +47 −0 · 1 files · 1 commits · openNo issue.
What it changes
some_lane_of_a_mask_is_a_number_the_whole_wave_agrees_onlowers its program for waves of 64 only. On a card of 32-lane waves (every NVIDIA card) it prints "the hardware device does not take this program (waves of 64?) ... not run" and passes, so the 32-lane form of the same program, where the two halves exchange their answers inscc_some, is never run on a card.This adds its twin,
some_lane_of_a_mask_is_a_number_both_host_waves_agree_on, toemit/wave64_tests.rs(+47 lines, no change outside the test). It lowers the same program for waves of 32, asserts that the lowering did take waves of 32, validates the DXIL and runs it with the lane that waits in the low half (0, 5, 31), in the high half (32, 37, 63) and nowhere.One thing differs from the original on purpose: every lane stores what it got at its own place and all 64 dwords are checked. With one shared dword a half that answered alone would only show when it happened to store last.
On a host of 64-lane waves the twin prints "not run" as the original does on 32-lane hosts, so between them both hosts are covered.
How it was tested
main568c5e5. Unit test on the hardware adapter; no game run (no game files on this machine).cargo test -p victory-shader --locked some_lane_of_a_mask -- --nocapture --test-threads=1: the twin prints "ran on the hardware device" and passes; the original still prints "not run".scc_somereturning the host wave's own answer (no exchange) the twin fails at "lane 32: lane 0 after 0 rounds" (1 for 0); with the two halves ORed as low with low it fails at "lane 0: lane 32 after 4 rounds".cargo testpassed for the crates it touches: yes, for these tests; the wholevictory-shadersuite passed on this card at the same base for #1920 (396 passed).mainstops at its ownlower.rs:2356(#1855); with that one lint allowed,cargo clippy -p victory-shader --all-targets --locked -- -D warningsreports nothing.Checked for overlap
wave64_tests.rselsewhere (this one sits just beforeon_64_lanes).AI-assisted: yes (Claude Code)
🤖 Generated with Claude Code
@Dukestar69 on GitHub · 2026-11-29 03:29 UTC · original · approved these changes
Tested locally merged onto
main(568c5e5).crates/victory-shader/src/emit/wave64_tests.rs.cargo test -p victory-shader --lib emit::wave64_tests::passed (29 passed; 0 failed, including the newsome_lane_of_a_mask_is_a_number_both_host_waves_agree_onGPU execution test) with 0 warnings inwave64_tests.rs.Good hardware regression test covering Wave32 execution of whole-wave mask-as-number agreement. LGTM.
Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
@tupacfan04 on GitHub · 2026-11-29 06:25 UTC · original
Ran this on an RTX 5070 12 GB (driver 621.40, 32-lane waves, Windows 11), cherry-picked onto main
e1f2eb6plus #1939.So on this card the original prints "not run" exactly as the description says, and the new twin really runs on the hardware device and passes. The per-lane store with all 64 dwords checked is the right call for catching a half that answers alone.
One small thing from reading it: if a later case in the loop cannot dispatch, the test returns quietly mid-loop, so a partial run would still read as a pass. A count of cases run in the final line would make that visible. Not blocking.
🤖 Generated with Claude Code
@upipibi on GitHub · 2026-11-29 20:57 UTC · original · edited 2026-11-29 23:08 UTC
Test report for #1929 (head
15aa188b), merged onto main568c5e5d, on RTX 30. Synthetic tests only: no title run, no game files.Setup: RTX 3070, driver 621.40, Windows 11 (10.0.26100), rustc 1.98.1. Every step logged the GPU and driver from
nvidia-smi.Key test:
emit::wave64_tests::some_lane_of_a_mask_is_a_number_both_host_waves_agree_on, 3 runs on the card and 3 withVICTORY_WARP=1.ran on the hardware device: both host waves agree on "some lane is left".VICTORY_WARP=1, 3/3:the hardware device does not take this program (waves of 64?): The parameter is incorrect.; not run. The test returns ok there without checking anything, so I don't count these as passes.Negative control: with
scc_someinemit/lower.rschanged to OR the low half with itself (the high half's answer dropped), the test fails on the card atwave64_tests.rs:295:lane 0: lane 32 after 4 rounds, left 1, right 0. So it does catch a half that answers alone.cargo test -p victory-shader --lib --locked568c5e5dThe extra test is the PR's own. This matches the RTX 5070 result above, on a 30-series card.
Not tested: the PR on today's main, and any effect in a title.
Tested with the help of Claude Code (Claude Fable 5.2).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.