CLI: find the pipeline pack in shaderless SGD5 archives #3589

Open
andrewpozdnakov7-jpg wants to merge 1 commit from upstream-pr/3589 into main
andrewpozdnakov7-jpg commented 2026-11-27 19:30:28 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-27T19:30:28Z.


The file filter in prebuild::run can discard an SGD5 archive before the shader pack lookup if that archive contains no shader records. Shader containers can be supplied by the other inputs. Probe the recognized archive for the compressed pack before dropping it, keep the extracted bytes, and use them if the existing candidates yield no pack.

Windows synthetic fixture: an SGD5 database with zero shader records followed by aligned zlib streams for a pack with 17 compute records. Two valid standalone shader containers provide the programs.

Input Main This change
Compressed pack in SGD5, shaders separate No pack found 17 valid key rows
Identical standalone pack, shaders separate 17 rows Same 17 rows
Empty SGD5 database No pack found No pack found

The archive and standalone listings match after sorting. If both fixture layouts are present, the existing standalone candidate wins. The compressed archive without the SGD5 marker remains outside the search. On WARP, normal warmup from the archive created two distinct pipelines and served the other 15 records from the library. On the next run all 17 were already there.

The additional lookup is limited to the existing SGD5 input format. #2787 introduces a separate warmup prefilter, which can also retain recognized SGD5 inputs when the two changes are combined.

All 18 CLI tests, strict CLI Clippy with default and all features, rustfmt, and the asset policy check passed.

<!-- greyfinch-sync:Marvisak/VIctory:issue:5532071182 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3589). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-27T19:30:28Z. --- The file filter in `prebuild::run` can discard an SGD5 archive before the shader pack lookup if that archive contains no shader records. Shader containers can be supplied by the other inputs. Probe the recognized archive for the compressed pack before dropping it, keep the extracted bytes, and use them if the existing candidates yield no pack. Windows synthetic fixture: an SGD5 database with zero shader records followed by aligned zlib streams for a pack with 17 compute records. Two valid standalone shader containers provide the programs. | Input | Main | This change | | --- | --- | --- | | Compressed pack in SGD5, shaders separate | No pack found | 17 valid key rows | | Identical standalone pack, shaders separate | 17 rows | Same 17 rows | | Empty SGD5 database | No pack found | No pack found | The archive and standalone listings match after sorting. If both fixture layouts are present, the existing standalone candidate wins. The compressed archive without the SGD5 marker remains outside the search. On WARP, normal warmup from the archive created two distinct pipelines and served the other 15 records from the library. On the next run all 17 were already there. The additional lookup is limited to the existing SGD5 input format. #2787 introduces a separate warmup prefilter, which can also retain recognized SGD5 inputs when the two changes are combined. All 18 CLI tests, strict CLI Clippy with default and all features, rustfmt, and the asset policy check passed.
andrewpozdnakov7-jpg commented 2026-11-27 19:34:33 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-27T19:34:33Z.


Windows CI passed on e5eb57a1c599b057dfebb29356ef7434e7df4983. CI job

The same synthetic archive and separate shader containers produced no listing on the parent and all 17 records on this commit. The 17 rows agree with the standalone-pack control after sorting. Windows WARP warmup created two distinct pipelines on the cold run and found all 17 records in the library on the second run. The normal search still prefers the standalone pack when both fixture layouts are supplied. The next step is maintainer review.

If you cherry-pick or rebase this commit, please retain its Git author. If you fold it into another commit, please include Co-authored-by: andrewpozdnakov7-jpg <[email protected]>.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7226662898 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/3589#issuecomment-7226662898). Originally posted by [andrewpozdnakov7-jpg](https://github.com/andrewpozdnakov7-jpg) on 2026-11-27T19:34:33Z. --- Windows CI passed on `e5eb57a1c599b057dfebb29356ef7434e7df4983`. [CI job](https://github.com/Marvisak/VIctory/actions/runs/46057178168/job/140702399015) The same synthetic archive and separate shader containers produced no listing on the parent and all 17 records on this commit. The 17 rows agree with the standalone-pack control after sorting. Windows WARP warmup created two distinct pipelines on the cold run and found all 17 records in the library on the second run. The normal search still prefers the standalone pack when both fixture layouts are supplied. The next step is maintainer review. If you cherry-pick or rebase this commit, please retain its Git author. If you fold it into another commit, please include `Co-authored-by: andrewpozdnakov7-jpg <[email protected]>`.
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/3589:upstream-pr/3589'
git switch 'upstream-pr/3589'

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 'main'
git merge --no-ff 'upstream-pr/3589'
git switch 'upstream-pr/3589'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3589'
git switch 'upstream-pr/3589'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3589'
git switch 'main'
git merge --squash 'upstream-pr/3589'
git switch 'main'
git merge --ff-only 'upstream-pr/3589'
git switch 'main'
git merge 'upstream-pr/3589'
git push origin 'main'
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
Marvisak/VIctory!3589
No description provided.