Repository navigation
Keep translated shaders across unrelated rebuilds - #11
Draft
FermentoCode wants to merge 1 commit into
Draft
FermentoCode wants to merge 1 commit into
FermentoCode wants to merge 1 commit into
Conversation
Identify the translator, its effective settings and the cache encoding independently of the executable. Track device wave width and descriptor clamp per lookup. Add source-level regression coverage for unrelated rebuilds and changed translation inputs.
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.
This branch used the entire executable as the identity of its shader translator. Rebuilding after a renderer logging change made every shader miss the on-disk cache.
This downstream change fingerprints the shader sources, build inputs, toolchain, target, features, compiler settings, and on-disk encoding. Each lookup includes the effective host wave width and descriptor heap clamp. Runtime translator switches include this branch’s F16 rounding, wave lowering, loop limit and optimization settings. Existing entries from the executable-keyed format will miss once. Changes to the workspace manifest or dependency lockfile also invalidate entries conservatively.
Five focused CPU tests passed offline on Windows. The regression fixture changes launcher and renderer diagnostics sources, shader lowering, and the dependency lockfile. The existing GPU-crate cache tests exercise disk reuse, a changed key, and damaged entries. Gameplay performance was not measured.
Related work on source-based keys and shader warmup is tracked in Marvisak/VIctory #254 by wbkepler, fxceless/victory-fork #147, and the later upstream implementation. This draft targets the NVIDIA compatibility branch’s on-disk translation key.