gpu(shader_cache): drop stale VICTORY_SCALAR_SPLITS from KEYED #3210
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3210"
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 trustno1-coder/VIctory-NVIDIA. Originally posted by RanoGames on 2026-11-29T20:45:21Z.
Fixes #3189
What it changes
Removes the stale
VICTORY_SCALAR_SPLITSentry fromKEYEDincrates/victory-gpu/src/shader_cache.rs:VICTORY_SCALAR_SPLITSis listed in the translator switch list used for the shader cache key.crates/reads it any more (git grep SCALAR_SPLITSfinds only that list entry).shader_cache::tests::every_switch_of_the_translator_is_in_the_keyfail.KEYEDfrom 46 to 45 entries.How it was tested
VICTORY_SCALAR_SPLITSwas inKEYEDbut had no reader.cargo testpassed for the crates it touches: yes (cargo test --locked -p victory-gpu --lib -- shader_cache::tests;cargo xtask policy --stagedpassed)Checked for overlap
SCALAR_SPLITS/every_switch_of_the_translator_is_in_the_key(no open fix PR; only historical #73 that originally added the switch).Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by mstrmoos on 2026-11-30T01:13:38Z.
With only this change on main (
41adb551),every_switch_of_the_translator_is_in_the_keystill fails, now on the next name:The revert of #479 also took the differential fuzzer's switches with it, so the test's
NOT_TRANSLATIONlist still names four the translator no longer reads:VICTORY_ORACLE_RUNS,VICTORY_ORACLE_SEED,VICTORY_ORACLE_AVOID,VICTORY_ORACLE_OUT(and the two comment lines above them). With those four removed as well, the test passes andcargo test -p victory-gpu shader_cacheis green (11 passed).Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by andrewpozdnakov7-jpg on 2026-11-30T11:51:52Z.
I reproduced the GitHub CI blocker from #2478 on clean
41adb551.every_switch_of_the_translator_is_in_the_keyfails onVICTORY_SCALAR_SPLITSin both current main and GitHub's099b02atest merge. Failed CI jobI rebased your
84ede19and removed the four staleVICTORY_ORACLE_*test entries from @mstrmoos's reproduction. The review branch is based on41adb551, keeps your original author onb6ffcf2, and has the test-list cleanup in8090ff6. The branch touches one file.git diff --checkpassed.flight_texture_back_ranges_refuse_stale_shadow_holderas failed and the test process later exited with0xc000001d. The focused test run gives a separate result for the cache-key gate.If you cherry-pick the follow-up, please retain its Git author. If you fold it into another commit, please use
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>.AI-assisted with OpenAI Codex.