GPU: decode each shader once for both store classifications (#1055) #1203
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!1203
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1203"
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?
@Yuanzer on GitHub · 2026-11-28 15:30 UTC · original
Yuanzer:codex/issue-1055-share-store-decode→main· +97 −36 · 1 files · 3 commits · merged 2026-11-30 14:12 UTCThe problem
pipeline::translateclassified each native shader once withstoresand once withstores_by_address. Both predicates callvictory_shader::gfx10::decodeon the same code, so a shader without stores, or one where both classifications were needed, decoded its program twice for these two booleans.Fixes #1055.
The change
true.stores, as before.No cache or persistent state is introduced.
Tests
pipeline::tests::store_classification_keeps_both_kinds: no-store, buffer-store, flat-store, global-store, scratch-store, empty-program, undecodable-code, and multi-program aggregation.cargo test -p victory-gpu --lib --locked: 455 passed, 0 failed, 36 ignored.cargo check -p victory-gpu --all-targets --all-features --locked: passed.I did not run the game or claim an FPS change. The local toolchain's rustfmt and clippy components were unavailable, so CI remains the authoritative lint check.