shader: mark SLOT_MEMORY directory and records loads pure for CSE #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/lobomfz--VIctory-xmem!166
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-166"
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?
@eirik200 on GitHub · 2026-12-02 05:42 UTC · original
eirik200:pr/shader-pure-cse→main· +70 −3 · 5 files · 1 commits · merged 2026-12-02 22:54 UTCSummary
Mark two immutable-during-dispatch runtime table loads pure in
victory-shadersoopt.rscan reuse them across stores and fault-note branches:SLOT_MEMORYpage directory loads (lower.rsmemory()): Shaders read the host's device-side directory copy, which is only updated by pre-submissionCopyBufferRegioncopies and never written by any shader. Previously, eachmemory()access emitted a fault-note store on a branch that brokememory_regionsreuse for subsequent lookups of the same(lo, hi)address.recordsmetadata loads (lower.rsraw_words()): Marksrecordstable reads pure for CSE across stores.Bumps
TRANSLATOR_VERSION(12 -> 13) andRECORDS_REVISION(9 -> 10).Testing
JOBS=6 ./build.sh checkpasses cleanly.victory-shaderoptimizer unit tests pass, including newa_read_marked_pure_is_reused_past_a_store_on_a_branch../run.sh shaders) and 94,458/94,458 pipeline warm (./run.sh warm, 0 skipped/refused) verified in-game across 10-minute open-world run on RX 9060 XT (RADV, HW RT on).