Repository navigation
Conversation
…heaps # Conflicts: # crates/victory-gpu/src/descriptor/host.rs
…le slots monotonic
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.
Imported from Marvisak#2177 for review on this fork.
Upstream source head:
0497f58408a446e7d86566a141e39d6a7da63237(fromn-romanovich/VIctory). Its original merge base isf3578e386ea0f06153445af10a698df029620aad, three commits behind current main. This import is intentionally preserved as a draft and needs a rebase/conflict review before it is considered merge-ready.Interaction warning: overlaps Marvisak#3300 in
descriptor/host.rsand overlaps Marvisak#2885 in descriptor/shader lowering. Review as a descriptor-heap stack; do not merge independently without reconciling the allocator and shader heap bounds.Draft import only. Inspect all touched code and tests, resolve interactions with sibling review branches, and run Windows/D3D12 tests before merging. No local build or GPU validation has been performed by this import.
BLOCKER — allocator boundary case to fix before merge
The upstream discussion reports a concrete layout bug in the current head: on a 1,000,000-slot host heap, the ordinary
DYNAMICallocation branch does not reserveCAPPED_PAIRS + 3slots for memory SRV/UAV pairs and the top null/clamp descriptors. Requests around 713,278–737,856 can leave pair space shrinking to zero; at 737,854–737,856 the null slots can be overlapped or not installed, and a memory view pair can be assigned a null/clamp slot. The proposed fix is to include the pair and top-slot reserve in that branch's requested capacity (the reporter testedcount.saturating_add(DYNAMIC + CAPPED_PAIRS + 3).max(views)) and add boundary regression tests. Also reconcile the competing allocator policy in Marvisak#3300 and the raw structured-buffer shader changes in Marvisak#2885/Marvisak#2178; do not merge this PR untouched.