Skip to content

Keep translated shaders across unrelated rebuilds - #11

Draft
FermentoCode wants to merge 1 commit into
nvidia-wave-compatfrom
cache/source-key-nvidia-wave-compat
Draft

FermentoCode wants to merge 1 commit into
nvidia-wave-compatfrom
cache/source-key-nvidia-wave-compat

Conversation

@FermentoCode

Copy link
Copy Markdown
Owner

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant