Repository navigation
Conversation
Hash small pipeline descriptions as one contiguous BLAKE3 input, so short shader chunks hash in parallel; stream large descriptions as before. The name output is unchanged (pinned by test), so libraries written before still load. Pass the DXIL slices straight to library::name instead of copying each stage bytes through code_bytes. In Jineggegg/VIctory round 1 this made hot PSO prebuild about 18% faster on an RTX 5090 (hot-start prebuild about 107 us to about 86 us, 380,000 rounds, no failure). Adapted from Jineggegg/VIctory 2b98109. Foxhound names its mesh pipeline "mesh triangles" and has a separate "graphics rectangles" name with its own geometry stage, so those call sites were adapted to the same borrow form.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this fixes
Hot PSO prebuild copies every shader stage's bytes before hashing the pipeline name, and hashes the name parts one by one. This change:
library::nameinstead of copying each stage's bytes throughcode_bytes(now removed).The name output is unchanged, so pipeline libraries written before still load. A new test pins the old name hash and checks the length framing at the 8 KiB buffer limit.
Testing
cargo check -p victory-gpu --lib: clean (only pre-existing warnings elsewhere).cargo test -p victory-gpu --lib pipeline::library: 7 passed, 0 failed, including the new framing test.Origin
Adapted from Jineggegg/VIctory
2b98109(round-1 item #5). Foxhound names its mesh pipeline "mesh triangles" and has a separate "graphics rectangles" name with its own geometry stage, so those call sites were adapted to the same borrow form.