Repository navigation
Conversation
Owner
|
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.