shader: lane_uniform no longer calls lane-dependent results alike #2389
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!2389
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2389"
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?
@FIocker on GitHub · 2026-11-29 12:37 UTC · original
FIocker:contrib/lane-uniform-implicit-reads→main· +10 −1 · 1 files · 1 commits · merged 2026-11-30 14:12 UTClane_uniform(emit/lower/analysis.rs) took three kinds of input as one value per wave, which they are not:v_div_fmasreads VCC per lane, and no operand names it.v_swap_b32's other side are implicit vector reads outside the source operands; the operand check never looked at them.A result marked uniform from any of these is wrong in the lanes that differ, for example once it is read with
v_readfirstlaneor used as a uniform index. After coasting (GPL-3.0).Checked: workspace check clean;
victory-shaderlib tests 462 passed (release).🤖 Generated with Claude Code
@Dukestar69 on GitHub · 2026-11-29 12:49 UTC · original · approved these changes
Tested locally merged onto
main(829188e9).crates/victory-shader/src/emit/lower/analysis.rs.cargo test -p victory-shader --lib emit::lower::tests::passed (25 passed; 0 failed; 1 ignored).cargo test -p victory-shader --lib emit::wave64_tests::passed (44 passed; 0 failed).Important soundness fix in
lane_uniformpreventing lane-dependent instructions from being treated as uniform. LGTM.Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).