GPU: shader cache keyed by LOOPS_WAVE and LDS_FIRST_INIT; F8/F7 let texture copies go by hand #1437
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1437"
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 TolkoDev on 2026-11-28T19:51:45Z.
Two independent changes, one commit each. Either can be taken alone.
1. Shader cache key
What was wrong.
VICTORY_LOOPS_WAVE(emit/mod.rs) andVICTORY_LDS_FIRST_INIT(emit/lower.rs) change the translated code, but neither is in the cache key. A run with either one set can be served translations cached with it unset, and the other way round.The change. Both names are added to the key's list of switches (+2 lines). Shaders are translated once more after this.
2. F8 / F7 let texture copies go by hand
Why. With the card full there is no way to ask, while playing, for idle host texture copies to be let go.
The change.
VICTORY_SLOT_EVICT. Each press logs what it let go. Without a press nothing is let go that was not before.Limits. This does not fix black textures: slot eviction mostly cannot take textures that shaders pick by index.
Tested
Windows 10, on
mainat923e38c. The checks do not all pass here, with or without this change.victory-gputests, one process per test: 481 pass, 43 ignored, 67 abort the test process and 2 fail. The same 69 have the same outcomes on untouchedmain.cargo test --workspacestops at this package, so the packages after it were not reached.cargo clippy ... -D warningsfails on two findings invictory-shader/src/emit/lower.rsthatmainhas too. Forvictory-gpu, with those two lints anddeprecatedallowed, the findings are those ofmain; none is in a changed line.cargo xtask policyfails on the size oflower.rs, which is not changed here.rustfmt.tomlafter these runs; onlycargo check -p victory-gpuwas run again.Not measured. How much memory a press frees, and any frame rate change. An earlier form of change 2 was built on v2026.11.28.01; this port to current
mainhas not been run in the game.