gpu(shader_cache): drop stale VICTORY_SCALAR_SPLITS from KEYED #3210

Manually merged
github merged 1 commit from github-bot/gh-3210 into main 2026-11-30 14:14:40 +00:00 AGit
Owner

@⁠RanoGames on GitHub · 2026-11-29 20:45 UTC · original
RanoGames:fix/remove-stale-scalar-splits-key → main · +1 −2 · 1 files · 1 commits · merged 2026-11-30 14:12 UTC

Fixes #3189

What it changes

Removes the stale VICTORY_SCALAR_SPLITS entry from KEYED in crates/victory-gpu/src/shader_cache.rs:

  • VICTORY_SCALAR_SPLITS is listed in the translator switch list used for the shader cache key.
  • Nothing in crates/ reads it any more (git grep SCALAR_SPLITS finds only that list entry).
  • The stale entry makes shader_cache::tests::every_switch_of_the_translator_is_in_the_key fail.
  • Shrinks KEYED from 46 to 45 entries.

How it was tested

  • GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): N/A (cache-key list cleanup)
  • Before: the test failed because VICTORY_SCALAR_SPLITS was in KEYED but had no reader.
  • After: the stale entry is gone; the test no longer trips on it.
  • For shader changes, the wave sizes tested (32 and/or 64 lanes): N/A
  • cargo test passed for the crates it touches: yes (cargo test --locked -p victory-gpu --lib -- shader_cache::tests; cargo xtask policy --staged passed)

Checked for overlap

  • I searched the open and closed pull requests for SCALAR_SPLITS / every_switch_of_the_translator_is_in_the_key (no open fix PR; only historical #73 that originally added the switch).
**@⁠RanoGames** on GitHub · 2026-11-29 20:45 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3210) `RanoGames:fix/remove-stale-scalar-splits-key` → `main` · +1 −2 · 1 files · 1 commits · merged 2026-11-30 14:12 UTC Fixes #3189 ## What it changes Removes the stale `VICTORY_SCALAR_SPLITS` entry from `KEYED` in `crates/victory-gpu/src/shader_cache.rs`: - `VICTORY_SCALAR_SPLITS` is listed in the translator switch list used for the shader cache key. - Nothing in `crates/` reads it any more (`git grep SCALAR_SPLITS` finds only that list entry). - The stale entry makes `shader_cache::tests::every_switch_of_the_translator_is_in_the_key` fail. - Shrinks `KEYED` from 46 to 45 entries. ## How it was tested - GPU and profile (Series X or S, resolution, DLSS, frame generation, ray tracing): N/A (cache-key list cleanup) - Before: the test failed because `VICTORY_SCALAR_SPLITS` was in `KEYED` but had no reader. - After: the stale entry is gone; the test no longer trips on it. - For shader changes, the wave sizes tested (32 and/or 64 lanes): N/A - `cargo test` passed for the crates it touches: yes (`cargo test --locked -p victory-gpu --lib -- shader_cache::tests`; `cargo xtask policy --staged` passed) ## Checked for overlap - [x] I searched the open and closed pull requests for `SCALAR_SPLITS` / `every_switch_of_the_translator_is_in_the_key` (no open fix PR; only historical #73 that originally added the switch).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 20:46:09 +00:00
Author
Owner

@⁠mstrmoos on GitHub · 2026-11-30 01:13 UTC · original

With only this change on main (41adb551), every_switch_of_the_translator_is_in_the_key still fails, now on the next name:

VICTORY_ORACLE_RUNS is not read by the translator any more

The revert of #479 also took the differential fuzzer's switches with it, so the test's NOT_TRANSLATION list 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 and cargo test -p victory-gpu shader_cache is green (11 passed).

**@⁠mstrmoos** on GitHub · 2026-11-30 01:13 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3210#issuecomment-7265953967) With only this change on main (41adb551), `every_switch_of_the_translator_is_in_the_key` still fails, now on the next name: ``` VICTORY_ORACLE_RUNS is not read by the translator any more ``` The revert of #479 also took the differential fuzzer's switches with it, so the test's `NOT_TRANSLATION` list 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 and `cargo test -p victory-gpu shader_cache` is green (11 passed).
Author
Owner

@⁠andrewpozdnakov7-jpg on GitHub · 2026-11-30 11:51 UTC · original

I reproduced the GitHub CI blocker from #2478 on clean 41adb551. every_switch_of_the_translator_is_in_the_key fails on VICTORY_SCALAR_SPLITS in both current main and GitHub's 099b02a test merge. Failed CI job

I rebased your 84ede19 and removed the four stale VICTORY_ORACLE_* test entries from @⁠mstrmoos's reproduction. The review branch is based on 41adb551, keeps your original author on b6ffcf2, and has the test-list cleanup in 8090ff6. The branch touches one file.

  • All 11 shader-cache tests passed on the branch and on the exact #2478 merge with the same two changes applied. Staged asset policy and git diff --check passed.
  • A full local workspace run still failed. It reported flight_texture_back_ranges_refuse_stale_shadow_holder as failed and the test process later exited with 0xc000001d. The focused test run gives a separate result for the cache-key gate.
  • The original change removes a field from the runtime cache key, so existing translations use a different key after it is merged. The four-name follow-up only changes the test allowlist.

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.

**@⁠andrewpozdnakov7-jpg** on GitHub · 2026-11-30 11:51 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3210#issuecomment-7277628476) I reproduced the GitHub CI blocker from #2478 on clean `41adb551`. `every_switch_of_the_translator_is_in_the_key` fails on `VICTORY_SCALAR_SPLITS` in both current main and GitHub's `099b02a` test merge. [Failed CI job](https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46408696262/job/141813658870) I rebased your `84ede19` and removed the four stale `VICTORY_ORACLE_*` test entries from @⁠mstrmoos's reproduction. The [review branch](https://github.com/andrewpozdnakov7-jpg/VIctory-NVIDIA/tree/review/3210-cache-key-ci) is based on `41adb551`, keeps your original author on `b6ffcf2`, and has the test-list cleanup in [`8090ff6`](https://github.com/andrewpozdnakov7-jpg/VIctory-NVIDIA/commit/8090ff6fb019e4fdcef6e6432b3edc62693b086f). The branch touches one file. - All 11 shader-cache tests passed on the branch and on the exact #2478 merge with the same two changes applied. Staged asset policy and `git diff --check` passed. - A full local workspace run still failed. It reported `flight_texture_back_ranges_refuse_stale_shadow_holder` as failed and the test process later exited with `0xc000001d`. The focused test run gives a separate result for the cache-key gate. - The original change removes a field from the runtime cache key, so existing translations use a different key after it is merged. The four-name follow-up only changes the test allowlist. 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.
github manually merged commit 86cf0946cb into main 2026-11-30 14:14:40 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!3210
No description provided.