Repository navigation
Conversation
Keep the exact name held across load, creation, and StorePipeline so a second request can reuse the stored PSO. Requests for different names can still create pipelines concurrently. Adapted from the per-name guard by TG0000 in Marvisak/VIctory#1000 (f821cb9).
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.
Two concurrent requests for the same pipeline library name can both miss and create duplicate host PSOs. Reserve the exact name across lookup, creation, and the store attempt, and release the reservation on return or error. Independent names can still create PSOs in parallel. This adapts TG0000's per-name guard from Marvisak/VIctory#1000.
Synthetic D3D12 compute-PSO regression on Windows 11 with an RTX 5070 and VICTORY_LIBRARY_LOCK=1. With the same fixture, base c96b4f2 reached two overlapping creations for one name and failed the expected assertion. Candidate a3f997b made one creation and returned a library hit to the second caller. The controls confirmed overlapping creation for distinct names and a successful retry after an injected creation failure. The fixture uses an in-memory pipeline library. Frame timing and the cause of the drops reported in #470 remain unverified.
AI-assisted.