Keep runtime shader translation usable when the cache cannot be written #636
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!636
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-636"
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?
@cnuonr on GitHub · 2026-11-28 02:15 UTC · original
cnuonr:fix/runtime-shader-cache-fallback→main· +102 −29 · 1 files · 2 commits · openProblem
Runtime shader translation can succeed and still be reported as a failure if publishing the disk-cache entry fails. An unavailable cache then blocks rendering even though the translated shader is ready.
Change
Keep the translation result through cache publication and return it directly at runtime. A cache hit still reads and checks the stored entry. Explicit shader precompilation requires an open cache and reports publication failures. Genuine translation errors keep their original context.
Verification
cargo test --locked -p victory-gpu --lib shader_cache::testspassed all 5 tests on Windows. The regressions check runtime success after publication fails, an explicit error when precompilation has no open cache, and preservation of a genuine translation error without a retry.View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.