Skip to content

Shader cache: key on VICTORY_LOOPS_WAVE and VICTORY_LDS_FIRST_INIT - #25

Open
tv7 wants to merge 1 commit into
readmet3xt-lab:mainfrom
tv7:shader-cache-key-loops-wave
Open

tv7 wants to merge 1 commit into
readmet3xt-lab:mainfrom
tv7:shader-cache-key-loops-wave

Conversation

@tv7

@tv7 tv7 commented Nov 28, 2026

Copy link
Copy Markdown

Problem

VICTORY_LOOPS_WAVE (emit/mod.rs) and VICTORY_LDS_FIRST_INIT (emit/lower.rs) both change how a wave64 compute program is translated, but neither is in the shader cache key (shader_cache.rs, build()). A run with either switch changed is served the translations an earlier run cached under the other setting.

Change

Both names are added to the list of switches hashed into the key, next to VICTORY_LDS_BOUNDS. Caches made before this change are not served again (the key changes once).

Tested

🤖 Generated with Claude Code

Both switches change how a wave64 compute program is translated, but
neither was part of the cache key, so a run with one of them changed was
served translations cached under the other setting.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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