shader: lane_uniform no longer calls lane-dependent results alike #2389
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by FIocker on 2026-11-29T12:37:05Z.
lane_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
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Dukestar69 on 2026-11-29T12:49:27Z.
Review: APPROVED
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).