GPU: reuse scratch storage for pipeline input descriptions #3690
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3690"
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 Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T07:15:38Z.
Graphics pipeline descriptions now reuse a scratch string for the input elements and write each entry directly to the existing debug list. This preserves the order and escaping in the text that feeds the pipeline library key.
I compared the exact old and new description routines and the resulting hashes over 1,024 generated layouts, including control characters and non-ASCII semantic names. The descriptions and hashes matched. With 16 elements the fixture counted 61 to 14 allocations or reallocations per description, and with 32 it counted 112 to 14. In 11 alternating CPU measurements, the medians were 35.3 to 28.2 µs at 16 elements and 53.3 to 40.7 µs at 32. This measures description formatting outside pipeline creation.
The committed test checks order and escaping. All five pipeline-host tests, strict GPU Clippy and the asset policy passed. The optional prebuild marker includes the host pipeline source in its fingerprint and is refreshed on the next prebuild.
Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding the change into another commit.AI-assisted with OpenAI Codex.
Imported from Marvisak/VIctory. Originally posted by andrewpozdnakov7-jpg on 2026-11-28T07:18:48Z.
Windows CI passed at
f7e419b, including Clippy on both build configurations and the repository test job. The 1,024 generated description and key comparisons in the description apply to this head. Four sample masks still produced distinct cache keys in the combined test with #1866.The next step is maintainer review.
Please retain the Git author on cherry-pick or rebase, or add
Co-authored-by: andrewpozdnakov7-jpg <[email protected]>if folding this change into another commit.AI-assisted with OpenAI Codex.
Imported from Marvisak/VIctory. Originally posted by cloph-dsp on 2026-11-28T11:15:05Z.
Independent local verification (Windows, Rust 1.100.0/MSVC, no game data):
f7e419b19b3e2f9308351043123c18aeb7e42034, base/parent63bcca43c6a00a758510398fa43096ce7e4f7df0.cargo test --locked -p victory-gpu --lib -- pipeline::host::tests::pipeline_description_keeps_input_order_and_escaping --exact --test-threads=1 --quiet→ 1 passed, 0 failed, 232 filtered, exit 0 (2 pre-existing warnings in the lib test build).git grep -Ffor the test name on the base returned no match (test is new on this PR);git diff --check 63bcca4 HEADclean (1 file, +47/-11).CARGO_TARGET_DIR(never shared) withCARGO_BUILD_JOBS=2.AI-assisted (Hy4 flash).
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.