Use runtime shader settings when warming the disk cache #6
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from realblastex/flamingo. Originally posted by timorjay on 2026-11-26T02:28:50Z.
Offline 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.
Imported from realblastex/flamingo. Originally posted by realblastex on 2026-11-26T05:21:31Z.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.