GPU: shader cache keyed by LOOPS_WAVE and LDS_FIRST_INIT; F8/F7 let texture copies go by hand #1437
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!1437
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@TolkoDev on GitHub · 2026-11-28 19:51 UTC · original
TolkoDev:pr/ours→main· +144 −22 · 5 files · 2 commits · merged 2026-11-29 00:24 UTCTwo 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.Shader cache key fix; F8/F7 keys to let texture copies go by handto GPU: shader cache keyed by LOOPS_WAVE and LDS_FIRST_INIT; F8/F7 let texture copies go by hand