Keep runtime shader translation usable when the cache cannot be written #636

Open
github-bot wants to merge 2 commits from github-bot/gh-636 into main AGit
Owner

@⁠cnuonr on GitHub · 2026-11-28 02:15 UTC · original
cnuonr:fix/runtime-shader-cache-fallback → main · +102 −29 · 1 files · 2 commits · open

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::tests passed 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.

**@⁠cnuonr** on GitHub · 2026-11-28 02:15 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/636) `cnuonr:fix/runtime-shader-cache-fallback` → `main` · +102 −29 · 1 files · 2 commits · open ## 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::tests` passed 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 02:20:55 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/shader_cache.rs
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.
git fetch -u origin '+refs/pull/636/head:github-bot/gh-636'
git switch 'github-bot/gh-636'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-636'
git switch 'github-bot/gh-636'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-636'
git switch 'github-bot/gh-636'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-636'
git switch 'main'
git merge --squash 'github-bot/gh-636'
git switch 'main'
git merge --ff-only 'github-bot/gh-636'
git switch 'main'
git merge 'github-bot/gh-636'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!636
No description provided.