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

Merged
RanoGames merged 1 commit from upstream-pr/3210 into main 2026-11-30 14:12:01 +00:00
RanoGames commented 2026-11-29 20:45:21 +00:00 (Migrated from github.com)

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_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).
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5554934435 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3210). Originally posted by [RanoGames](https://github.com/RanoGames) on 2026-11-29T20:45:21Z. --- 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).
mstrmoos commented 2026-11-30 01:13:38 +00:00 (Migrated from github.com)

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_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).

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7265953967 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3210#issuecomment-7265953967). Originally posted by [mstrmoos](https://github.com/mstrmoos) on 2026-11-30T01:13:38Z. --- 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).
andrewpozdnakov7-jpg commented 2026-11-30 11:51:52 +00:00 (Migrated from github.com)

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_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.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7277628476 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3210#issuecomment-7277628476). Originally posted by [andrewpozdnakov7-jpg](https://github.com/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_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.
Sign in to join this conversation.
No reviewers
No labels
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.

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