Repository navigation
Conversation
Hot prebuild hashed every short shader chunk with its own update and copied each stage's DXIL bytes to name a pipeline. Small descriptions now go into one contiguous frame so BLAKE3 hashes them together, and the name callers borrow the translated DXIL slices instead of copying them. Large descriptions keep the original streaming path, and the length framing is unchanged, so names from before still load. Adapted from Jineggegg/VIctory round 1 item 5 (2b98109) to current main.
MystifiedSky
added a commit
to MystifiedSky/VIctory-NVIDIA-Improved
that referenced
this pull request
Nov 28, 2026
Alxspb
added a commit
to Alxspb/VIctory-NVIDIA
that referenced
this pull request
Nov 28, 2026
…orrow shader bytecode
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 changes
Hot prebuild of the 16 hot pipelines hashed every short shader chunk with its own
updatecall, and each pipeline name was built from a fresh copy of every stage's DXIL bytes.pipeline::namenow puts small descriptions (framing + bytes up to 8 BLAKE3 chunks) into one contiguous frame and hashes it in a singleupdate, so BLAKE3 can hash the short chunks together. Large descriptions keep the original streaming path.pipeline/host.rsnow borrow the translated DXIL slices instead of copying them throughcode_bytes, which is removed.9402d2bc...), and a new test checks the framing at the 8 KiB frame boundary (8191/8192/8193 bytes).Adapted from Jineggegg/VIctory round 1 item 5 (commit
2b98109), rebased onto currentmain. The graphics path has moved on since then: it now names"graphics rectangles"and"graphics"separately with a retry without the geometry stage, so all four name call sites (compute, mesh, graphics with/without the rectangle stage) take the borrowed slices.Testing
cargo check -p victory-gpuis clean, andcargo test -p victory-gpu --lib pipeline::librarypasses all 7 tests, including the pinned-name and frame-boundary tests.Notes on nearby open PRs
Stageargument forpipeline()): still open. It does not touchname(), and this PR does not touchpipeline()calls.code_bytes): still open. It does not usecode_bytes, so removing that helper stays fine if it lands first.