shader_cache test: VICTORY_SCALAR_SPLITS is in the translator switch list but no longer read #3189

Closed
opened 2026-11-29 20:34:30 +00:00 by AimLogin · 3 comments
AimLogin commented 2026-11-29 20:34:30 +00:00 (Migrated from github.com)
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by AimLogin on 2026-11-29T20:34:30Z.


victory-gpu's test shader_cache::tests::every_switch_of_the_translator_is_in_the_key fails on f889bb07.

What we see:

  • VICTORY_SCALAR_SPLITS is listed in the translator switch list in crates/victory-gpu/src/shader_cache.rs (line 52 on cec481f4).
  • Nothing in crates/ reads it any more. git grep SCALAR_SPLITS finds only that list entry.
  • The test then fails on the stale entry.

Measured: the test was run on f889bb07 and fails.
Read in the code, not run: cec481f4 is in the same state.

Effect: none on translation; the stale entry only adds a constant to the cache key. Either removing the entry from the list or restoring the switch's reader would make the test pass. Which one is right depends on whether the scalar-splits form was removed on purpose.

Found while running the shader tests for an unrelated change; AI-assisted.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:6683809721 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3189). Originally posted by [AimLogin](https://github.com/AimLogin) on 2026-11-29T20:34:30Z. --- `victory-gpu`'s test `shader_cache::tests::every_switch_of_the_translator_is_in_the_key` fails on f889bb07. **What we see:** - `VICTORY_SCALAR_SPLITS` is listed in the translator switch list in `crates/victory-gpu/src/shader_cache.rs` (line 52 on cec481f4). - Nothing in `crates/` reads it any more. `git grep SCALAR_SPLITS` finds only that list entry. - The test then fails on the stale entry. **Measured:** the test was run on f889bb07 and fails. **Read in the code, not run:** cec481f4 is in the same state. **Effect:** none on translation; the stale entry only adds a constant to the cache key. Either removing the entry from the list or restoring the switch's reader would make the test pass. Which one is right depends on whether the scalar-splits form was removed on purpose. _Found while running the shader tests for an unrelated change; AI-assisted._
github-actions[bot] commented 2026-11-29 20:34:39 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-29T20:34:39Z.


Please attach both logs from the run that went wrong. Without them we can only guess. Paste %LOCALAPPDATA% into the address bar of File Explorer to get there.

  1. The play log, in %LOCALAPPDATA%\victory\logs\: the newest victory-nvidia-play-<date>-<time>-<number>.log (from victory.exe) or victory-nvidia-<date>-<time>.log (from the script launcher). The window shows its path at the start, on the line Log: ....
  2. The crash log: %LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newest victory-<date>-<time>-<number>.crash.log in %LOCALAPPDATA%\VIctory\data\7952987A\temp\.

Also say which GPU, Windows version (10 or 11)

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7262191173 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3189#issuecomment-7262191173). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-11-29T20:34:39Z. --- Please attach both logs from the run that went wrong. Without them we can only guess. Paste `%LOCALAPPDATA%` into the address bar of File Explorer to get there. 1. The play log, in `%LOCALAPPDATA%\victory\logs\`: the newest `victory-nvidia-play-<date>-<time>-<number>.log` (from `victory.exe`) or `victory-nvidia-<date>-<time>.log` (from the script launcher). The window shows its path at the start, on the line `Log: ...`. 2. The crash log: `%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log`, and, if there is one from that run, the newest `victory-<date>-<time>-<number>.crash.log` in `%LOCALAPPDATA%\VIctory\data\7952987A\temp\`. Also say which GPU, Windows version (10 or 11)
AimLogin commented 2026-11-29 20:40:10 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by AimLogin on 2026-11-29T20:40:10Z.


This one isn't a crash, so there are no play or crash logs for it. It is a unit-test failure in the source tree:

cargo test --locked -p victory-gpu --lib shader_cache::tests::every_switch_of_the_translator_is_in_the_key
  • Measured: the test fails on f889bb07.
  • Read in the code: cec481f4 still lists VICTORY_SCALAR_SPLITS in crates/victory-gpu/src/shader_cache.rs line 52, and nothing in crates/ reads it.

No GPU or game files are needed to reproduce it.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7262263750 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3189#issuecomment-7262263750). Originally posted by [AimLogin](https://github.com/AimLogin) on 2026-11-29T20:40:10Z. --- This one isn't a crash, so there are no play or crash logs for it. It is a unit-test failure in the source tree: ``` cargo test --locked -p victory-gpu --lib shader_cache::tests::every_switch_of_the_translator_is_in_the_key ``` - **Measured:** the test fails on f889bb07. - **Read in the code:** cec481f4 still lists `VICTORY_SCALAR_SPLITS` in `crates/victory-gpu/src/shader_cache.rs` line 52, and nothing in `crates/` reads it. No GPU or game files are needed to reproduce it.
AimLogin commented 2026-11-29 20:44:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by AimLogin on 2026-11-29T20:44:42Z.


My duplicate search missed this one, sorry: #3061 ("the shader key's stale names") already fixes this, and #3148 touches the same list. Closing this issue in favour of #3061.

AI-assisted.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7262323601 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/issues/3189#issuecomment-7262323601). Originally posted by [AimLogin](https://github.com/AimLogin) on 2026-11-29T20:44:42Z. --- My duplicate search missed this one, sorry: #3061 ("the shader key's stale names") already fixes this, and #3148 touches the same list. Closing this issue in favour of #3061. _AI-assisted._
Sign in to join this conversation.
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#3189
No description provided.