Scope native Windows PSO blobs to the adapter, driver, and PIX mode #376
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/gamingwithhomie--larp!376
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-376"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@erdtreefaithful on GitHub · 2026-12-05 23:51 UTC · original
erdtreefaithful:feature/scope-windows-pso-blobs→main· +782 −74 · 6 files · 1 commits · merged 2026-12-06 01:06 UTCProblem
Windows shares a directory of driver-generated pipeline blobs across configurations. After an adapter or driver change, graphics prewarming can accept an old file by its presence. The first draw may then have to compile the pipeline and replace that entry.
Changes
Select the blob directory using the active adapter's persistent identity, its driver version, and capture mode. Use process-local reuse when that identity is unavailable. Keep shader translations and pipeline recipes shareable across configurations and preserve the existing vkd3d-proton path. Prewarming can discover an incompatible configuration before the first draw. Switching back to a known configuration can reuse its original driver blobs.
Note: this will reduce user-caused errors, but it will increase disk load; eventually, we’ll need a way to clear out old data.
@Heliumrich on GitHub · 2026-12-05 23:56 UTC · original
I don't think getting gigabytes of outdated shaders is a solution.
@erdtreefaithful on GitHub · 2026-12-06 00:07 UTC · original
The main benefit is predictable warm-up. Previously, a file from a different configuration could produce a false positive, and cold compilation would only be detected on the first draw. Now the new configuration immediately detects the miss. While active development is underway, the advantage, as I see it, outweighs the drawback, a way to get rid of the old crap can be added later.