shader: opt-in first-lane uniformity (VICTORY_FIRSTLANE_UNIFORM=1, default off) #166
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/ReTerryDavis--ReVIctory!166
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-165"
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?
@SovietBearz0r on GitHub · 2026-12-05 19:31 UTC · original
SovietBearz0r:shader-opt-first-lane→main· +81 −12 · 6 files · 1 commits · draftFirst-lane uniformity split out of #126, per the review there. Default off; existing output unchanged.
What
VICTORY_FIRSTLANE_UNIFORM=1(off): a lowering pass that makes first-lane (WaveReadLaneFirst) reads uniform where the source value is wave-uniform, so the wave plan can carry it instead of a per-lane read. NoVICTORY_SHADER_OPTbit; switch appended to the shader-cache key when on.wave_plan.rs/valu.rs/lower/mod.rs, independent of the DXIL pass branches; only the sharedemit/mod.rs/cache-key anchors are adjacent.lane_uniform's LDS-read rule is only used for the exchange caller (a_first_lane_read_of_an_alike_value_is_only_lds_alike_when_asked).Verification
cargo test -p victory-dxil21 passed;cargo test -p victory-shader --lib324 passed / 2 ignored, and 324 passed withVICTORY_FIRSTLANE_UNIFORM=1;cargo check -p victory; policy 442 files; clippy-D warningsclean.WaveReadLaneFirstelisions, confirm parity withVICTORY_FIRSTLANE_OWN, visual equality and frame time.Source: MiniVI/sixmoon via longroad lineage.
github-bot referenced this pull request2026-12-05 20:53:19 +00:00
@Saksukella on GitHub · 2026-12-05 21:55 UTC · original
Tested combined with PR #163 (LICM) + VICTORY_BATCH_PFP=1 on AMD Radeon RX 9070 XT (RDNA 4, 16 GB) / Ryzen 9 7900X / Windows 11, production --release build on
8bff52b+ PR #81 (DXR 1.1 HWRT) + PR #87, fixed deterministic route (motel_strip, 10s idle + 15s 67 mph cruise, locked noon clear weather, FSR 4.1.2 Balanced 4K, FG off, VICTORY_WIDE_THREADS=8, fully warmed pipe=0 via play.ps1 -Warm):8bff52b+ #81 + #87, --release, opt=255)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.