Keep runtime shader translation usable when the cache cannot be written #636
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by cnuonr on 2026-11-28T02:15:21Z.
Problem
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
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.