Shader: pair form for tiled shadows, guard-select liveness, one-half LDS batching (all opt-in) #12
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/ImTaneax--VIctory-RTX3050-4gb!12
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-12"
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?
@adib-cyber007 on GitHub · 2026-12-02 17:09 UTC · original
adib-cyber007:pr/11-shader-tiled-shadows-and-lds-batch→main· +537 −3 · 5 files · 1 commits · openPort of
trustno1-coder/VIctory-NVIDIA398fdaff(GPL-3.0), adapted cleanly ontomainwith all three switches keyed intoshader_cache.rs.Why (large GPU shader-instruction & barrier reductions on NVIDIA)
All three optimizations are off by default so existing runs and caches stay untouched until enabled:
VICTORY_PAIR_FIRST=1(or=<text>,...): GivesCS_ShadowRenderTiled*(Cascades,CascadesAlpha,Misc) the pair-wave form (lower::pair) before folding, cutting DXIL instruction counts by >50% (38,919 → 17,904,46,857 → 21,923,29,292 → 13,544).VICTORY_GUARD_LIVENESS=1(emit/lower/keep_old.rs): Omits keep-oldselectinstructions on guarded VGPR writes whenever conservative per-lane SSA liveness proves no lane can read the old value (combined withVICTORY_PAIR_FIRST, cuts tiled shadow totals further to16,137 / 18,429 / 12,031).VICTORY_LDS_BATCH=1(emit/lower/lds_batch.rs): Shares a single host-wave meeting across contiguous runs of LDS accesses proven to run in only one console half (cutsCS_WriteRasterClassificationResultsfrom20,223 → 5,823instructions and1,637 → 37barriers).Cache & Toggles
VICTORY_PAIR_FIRST,VICTORY_GUARD_LIVENESS,VICTORY_LDS_BATCH) are included inshader_cache::build(), so enabling/disabling them never serves stale cached translations.VICTORY_PAIR_FIRST=1 VICTORY_GUARD_LIVENESS=1 VICTORY_LDS_BATCH=1.Verification
pair_first_tests+wave64_tests(live RTX 3050 D3D12 wave64 hardware tests) andshader_cache::testspassed.--features diagnosticscheck passed with zero new warnings.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.