GPU: serialize pipeline library misses for the same name #503

Closed
DoubleD17 wants to merge 1 commit from upstream-pr/503 into main
DoubleD17 commented 2026-11-25 01:50:40 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by DoubleD17 on 2026-11-25T01:50:40Z.


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 c96b4f2b83 reached two overlapping creations for one name and failed the expected assertion. Candidate a3f997be9a 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.

<!-- greyfinch-sync:fxceless/victory-fork:issue:6595290049 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/503). Originally posted by [DoubleD17](https://github.com/DoubleD17) on 2026-11-25T01:50:40Z. --- 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 c96b4f2b8365bf43d54ab074940923ef8267f4c6 reached two overlapping creations for one name and failed the expected assertion. Candidate a3f997be9a421432516ab36997f3c63209fd3d41 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.
upstream-sync closed this pull request 2026-11-26 10:06:31 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
fxceless/victory-fork!503
No description provided.