dxil: opt-in barrier dedup (VICTORY_SHADER_OPT=512, default off) #164
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!164
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-163"
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-barriers→main· +425 −8 · 4 files · 1 commits · draftBarrier dedup split out of #126, per the review there. Default off; existing output unchanged.
What
opt::BARRIERS = 512inVICTORY_SHADER_OPT(e.g.=575= defaults 63 + BARRIERS): an in-block barrier-state machine — adjacent covered barriers across pure ALU are merged, a group-only barrier is dropped between LDS read phases bounded by group+TGSM barriers/return, and a tail barrier beforeretis dropped. Loads are classified by the translator's own pointer tracing.DEFAULTstays 63; the opt-in mask is hashed in the shader-cache key, no version bump for default users and no extra switch.Verification
cargo test -p victory-dxil23 passed (21 + covered-barrier and LDS read-phase tests);cargo test -p victory-shader --lib323 passed / 2 ignored, and 323 passed withVICTORY_SHADER_OPT=575;cargo check -p victory; policy 442 files; clippy-D warningsclean.Source: MiniVI/sixmoon via longroad lineage.
@SovietBearz0r on GitHub · 2026-12-05 20:20 UTC · original
First in-game data point on this branch (AMD side). Machine: RX 9070 XT 16 GB (RDNA4, driver 32.0.32029.2010), Ryzen 9 9900X, Windows, diag build,
bench.ps1builtin:cruise route,-Gpu 0. Same binary for both sides; baseline = the play profile (VICTORY_SHADER_OPT=255via-GpuOpt), on-side=767(255 + BARRIERS). 2 runs per side, medians; 0 shaders translated during the measured spots in every run (the lap's cache lines showed translations only during loading).So on this card/route the pass is neutral within noise (slightly worse p99/back spot, slightly better lows on the other two). This is not the full protocol from the PR body: one card, two runs, one route, no visual A/B. It needs the NVIDIA + RDNA3 data and a visual soak before this can be recommended, but nothing here blocks the review.
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.