Translate, shader-info: shaders are not saved into a source tree #2799
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!2799
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2799"
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?
@iBooM72 on GitHub · 2026-11-29 17:27 UTC · original
iBooM72:fix/shader-dump-policy→main· +70 −1 · 3 files · 1 commits · openWhat it changes
Shaders saved by the tools come from the game, so rule #1 keeps them out of the repository.
victory translatechecked the folder forVICTORY_EMIT_DUMPwithensure_outside_repo, but three similar settings weren't checked:VICTORY_DUMP_MATCHtranslateVICTORY_SHADER_SAVEshader-infoVICTORY_FAIL_DUMPtranslateEach folder is now checked before the command starts, as for
VICTORY_EMIT_DUMP. A setting that names a folder inside a source tree stops the command even if nothing would have been saved. Other folders still work. There are no new dependencies,Cargo.lockdoesn't change, and no shader cache needs rebuilding.Not covered: settings used while the game runs.
victory-gpuandvictory-hledon't call this check themselves. Some of their settings also save game data:VICTORY_SHADER_SAVEduring a run,VICTORY_DUMP_PSOandVICTORY_DESERIALIZE_DUMP, plusVICTORY_CAPTURE,VICTORY_RECORD,VICTORY_XMA_DUMPandVICTORY_AUDIO_CAPTUREin diagnostics builds. I found these by reading the code, haven't tested them, and may have missed others. Makingvictory-corea direct dependency ofvictory-gpuwould changeCargo.lock, and so rebuild everyone's shader cache. #4985 (d5cc3461) adds that dependency, butVICTORY_RECORDis the only setting listed here that it checks. How would you like the rest to be handled?How it was tested
.victory-rootfile. It also checks that folders outside a source tree are still allowed.VICTORY_DUMP_MATCHandVICTORY_SHADER_SAVEeach saved the made-up shader in the marked folder.VICTORY_FAIL_DUMPwasn't refused either, but this container doesn't get far enough to be saved, so I haven't shown it saving a file.cargo testpassed for the crates it touches: yes.cargo test --locked -p victory: 82 passed.cargo xtask policy --stagedpassed.cargo clippy -p victory --all-targets --locked(without-D warnings) reports nothing in the app.--no-fail-fast) fail here and on unmodified829188e9. There are no new clippy errors, but both clippy commands stop before they reach this app. 6 tests failed here. 5 also failed in the full run on829188e9. The other,host_list_uav_pool_lifecycle_retire_trim_and_info_queue, failed in 4 of 6 repeat runs there. This branch is still based on829188e9. It merges cleanly withmainat5fabb46e, which still doesn't have these three checks. I haven't rerun the tests on that version.Checked for overlap
50eb65ec) adds one of these checks. It was opened about 10 minutes before this PR, and I missed it. It makes the sameVICTORY_SHADER_SAVEcheck inshader-info, plus other fixes to that command, but doesn't have the twotranslatechecks. The two PRs conflict inshader.rs. If #2785 is merged first, I'll update this PR and remove its copy of that check.VICTORY_RECORDwhile the game runs (see "Not covered" above). The two merge cleanly.translate.rs, and #3458 also changesshader.rs. None of their changes to these two files or the app's tests mention these settings orensure_outside_repo. This merges cleanly with #2289, #3063, #3458, #3687, #4233 and #4507. The others already conflict withmain: #730, #1630, #1811, #2801, #2993, #3336, #3499 and #3852.🤖 Generated with Claude Code
@iBooM72 on GitHub · 2026-12-01 18:02 UTC · original
I've updated this PR's description. The code hasn't changed.
VICTORY_SHADER_SAVEcheck inshader-info, plus other fixes to that command, but doesn't have the twotranslatechecks. The two PRs conflict inshader.rs. If #2785 is merged first, I'll update this PR and remove its copy of that check.victory-gpudepend onvictory-core, theCargo.lockchange I ask about here. Of the settings listed under "Not covered", it only checksVICTORY_RECORD. The two PRs merge cleanly.I also updated the other related PRs and the notes on
main. This PR merges cleanly withmainat5fabb46e, but I haven't rerun the tests on that version.These checks and this comment were prepared with an AI assistant (Claude Code).
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.