Prepare mission shaders and pipelines with the settings used during play #385

Open
HandshakeHackin wants to merge 4 commits from upstream-pr/385 into v21
HandshakeHackin commented 2026-11-30 21:00:09 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by HandshakeHackin on 2026-11-30T21:00:09Z.


Fixes #384 on v21 (v26.11.24). A mission can change the shader translator’s fingerprint while the launcher reuses the previous run’s preparation stamp. This affects the NaN-store mission, the face-fix mission and the Radeon shader-pack missions.

The launcher now uses the selected shader options for the fingerprint query, translation and pipeline warm-up. Its in-memory and on-disk lookups distinguish those settings. Cancellation restores the parent environment. After a successful translation the command-line path invalidates the old warm marker so an unchanged pipeline book is warmed for the new shaders. A second start with the same options skips both steps.

<!-- greyfinch-sync:PastiiJay/klbf-lab:issue:5573662173 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/385). Originally posted by [HandshakeHackin](https://github.com/HandshakeHackin) on 2026-11-30T21:00:09Z. --- Fixes #384 on `v21` (v26.11.24). A mission can change the shader translator’s fingerprint while the launcher reuses the previous run’s preparation stamp. This affects the NaN-store mission, the face-fix mission and the Radeon shader-pack missions. The launcher now uses the selected shader options for the fingerprint query, translation and pipeline warm-up. Its in-memory and on-disk lookups distinguish those settings. Cancellation restores the parent environment. After a successful translation the command-line path invalidates the old warm marker so an unchanged pipeline book is warmed for the new shaders. A second start with the same options skips both steps. - Against the checksum-verified v26.11.24 executable, the revision 21 feed had 189 missions and 51 distinct A/B option sets. Eight missions changed the engine fingerprint. All eight now change preparation stamps. A separate launcher trace measured the fingerprint in the translation, warm-up and game-start environments on Windows PowerShell 5.1 and PowerShell 7. [Release tests and launcher-settings suites](https://github.com/HandshakeHackin/klbf-lab/actions/runs/46513780433/job/142183778129) - Default → guarded → guarded → default with an unchanged pipeline book ran translation and warm-up on each switch and skipped both on the repeated guarded start. [Warm-marker regression](https://github.com/HandshakeHackin/klbf-lab/actions/runs/46514142940/job/142185071238) - [Original two-release reproduction](https://github.com/HandshakeHackin/klbf-lab/actions/runs/46509777220) and [individual shader-pack option traces before the extension](https://github.com/HandshakeHackin/klbf-lab/actions/runs/46512775914/job/142180230837). Physical visual and frame-time comparisons still need a game run.
HandshakeHackin commented 2026-11-30 21:18:56 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by HandshakeHackin on 2026-11-30T21:18:56Z.


Final Windows integration on v26.11.24 (92aa6f4) passed with this PR through 34c56ff, #378, #381, #383 and the depth-state correction from #27. The launcher settings, mission and report regressions passed on Windows PowerShell 5.1 and PowerShell 7. Workspace Clippy passed with warnings denied. The Rust suite passed 1,311 tests with 48 ignored. Combined Windows job

The upstream PR check on the same head without #27 stopped at pipeline::host::tests::depth_bounds_pipeline_loads_and_filters_draws.

<!-- greyfinch-sync:PastiiJay/klbf-lab:comment:7292226596 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/385#issuecomment-7292226596). Originally posted by [HandshakeHackin](https://github.com/HandshakeHackin) on 2026-11-30T21:18:56Z. --- Final Windows integration on v26.11.24 (`92aa6f4`) passed with this PR through `34c56ff`, #378, #381, #383 and the depth-state correction from #27. The launcher settings, mission and report regressions passed on Windows PowerShell 5.1 and PowerShell 7. Workspace Clippy passed with warnings denied. The Rust suite passed 1,311 tests with 48 ignored. [Combined Windows job](https://github.com/HandshakeHackin/klbf-lab/actions/runs/46514160361/job/142185132705) The [upstream PR check](https://github.com/PastiiJay/klbf-lab/actions/runs/46514439522/job/142186136848) on the same head without #27 stopped at `pipeline::host::tests::depth_bounds_pipeline_loads_and_filters_draws`.
HandshakeHackin commented 2026-12-01 13:52:16 +00:00 (Migrated from github.com)

Imported from PastiiJay/klbf-lab. Originally posted by HandshakeHackin on 2026-12-01T13:52:16Z.


Rechecked this on the published v26.12.2 launcher against mission feed revision 50. Both launchers accepted all 220 missions (67 distinct option sets). Eight A/B pairs changed the engine fingerprint. Stock reused the same shader preparation stamp for five of them: m-rdna2-shaderpack, m-rdna3-shaderpack, m-rdna4-shaderpack, m-all-nanstores and m-linux-faces. Applying this PR alongside #383 and #426 eliminated all five collisions.

I also ran the actual PowerShell launch sequence in seven configurations. With VICTORY_NAN_GUARD_STORES=1, stock prepared dacc49501f105ee4 and ran 5d84f0139912c06e. On the candidate, the preparation stamp, shader translation, pipeline warm and run agreed in all seven. These are Linux launcher tests using a native probe built from the tagged shader source. Its translator build hash matched the one in the published Windows executable. No GPU or game assets are needed to rerun them.

Reproduction commands, probe and tests

<!-- greyfinch-sync:PastiiJay/klbf-lab:comment:7313315720 --> Imported from [PastiiJay/klbf-lab](https://github.com/PastiiJay/klbf-lab/pull/385#issuecomment-7313315720). Originally posted by [HandshakeHackin](https://github.com/HandshakeHackin) on 2026-12-01T13:52:16Z. --- Rechecked this on the published v26.12.2 launcher against mission feed revision 50. Both launchers accepted all 220 missions (67 distinct option sets). Eight A/B pairs changed the engine fingerprint. Stock reused the same shader preparation stamp for five of them: `m-rdna2-shaderpack`, `m-rdna3-shaderpack`, `m-rdna4-shaderpack`, `m-all-nanstores` and `m-linux-faces`. Applying this PR alongside #383 and #426 eliminated all five collisions. I also ran the actual PowerShell launch sequence in seven configurations. With `VICTORY_NAN_GUARD_STORES=1`, stock prepared `dacc49501f105ee4` and ran `5d84f0139912c06e`. On the candidate, the preparation stamp, shader translation, pipeline warm and run agreed in all seven. These are Linux launcher tests using a native probe built from the tagged shader source. Its translator build hash matched the one in the published Windows executable. No GPU or game assets are needed to rerun them. [Reproduction commands, probe and tests](https://github.com/HandshakeHackin/klbf-lab/tree/b633f1d585afc4335a34b59cd1235822fecfe5b2/tests/dec1-compat)
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/385:upstream-pr/385'
git switch 'upstream-pr/385'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'v21'
git merge --no-ff 'upstream-pr/385'
git switch 'upstream-pr/385'
git rebase 'v21'
git switch 'v21'
git merge --ff-only 'upstream-pr/385'
git switch 'upstream-pr/385'
git rebase 'v21'
git switch 'v21'
git merge --no-ff 'upstream-pr/385'
git switch 'v21'
git merge --squash 'upstream-pr/385'
git switch 'v21'
git merge --ff-only 'upstream-pr/385'
git switch 'v21'
git merge 'upstream-pr/385'
git push origin 'v21'
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
PastiiJay/klbf-lab!385
No description provided.