Use runtime shader settings when warming the disk cache #6
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
performance
question
rendering
series-s
test-report
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/realblastex--flamingo!6
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-6"
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?
@timorjay on GitHub · 2026-11-26 02:28 UTC · original
timorjay:warm-listed-shaders→main· +1 −1 · 1 files · 1 commits · openOffline warm-up and live cache misses use the same cache key. A live miss selects the shader-specific wave settings in
translate_listed, whilewarmcalled the generic translator directly. A cache previously filled byvictory translate --warmcould therefore change the shader used at first use.This routes a warm-up miss through the same helper as a live miss. The cache already fingerprints this source file, so existing entries get a new key.
On
bd552a5I compared the fullHostShader(DXIL bytes and metadata) from a live miss with the result of warming a fresh cache and then calling the live path. With a 32-lane host configuration,VICTORY_SHADER_OPT=0, and the default per-shader lists, three of eight local inputs differed before the change. The inputs below are identified by the hashes already listed in the source.369cbe906ea727645dc3b259866229496f225b641c5b0708After the change all eight comparisons matched byte for byte, and a second warm-up read each entry from disk. The four existing
shader_cache::testspassed. The PR contains one production-line change. The comparison measures cache correctness. The test inputs stayed local.Tested with Codex assistance.
@realblastex on GitHub · 2026-11-26 05:21 UTC · original · edited 2026-11-26 05:22 UTC
Thank you @timorjay, that's a great catch, and the byte-for-byte comparison makes it easy to trust. I'd been warming the cache with
translate --warmbefore test runs, so those runs used the generic translation for exactly the listed shaders. The fix is in my dev branch; this PR gets merged from the GitHub side.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.