Scope native Windows PSO blobs to the adapter, driver, and PIX mode #376

Manually merged
github merged 1 commit from github-bot/gh-376 into gh-pr/376/base 2026-12-06 01:34:21 +00:00 AGit
Owner

@⁠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 UTC

Problem

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.

**@⁠erdtreefaithful** on GitHub · 2026-12-05 23:51 UTC · [original](https://github.com/gamingwithhomie/larp/pull/376) `erdtreefaithful:feature/scope-windows-pso-blobs` → `main` · +782 −74 · 6 files · 1 commits · merged 2026-12-06 01:06 UTC ## Problem 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-06 00:06:41 +00:00
Author
Owner

@⁠Heliumrich on GitHub · 2026-12-05 23:56 UTC · original

I don't think getting gigabytes of outdated shaders is a solution.

**@⁠Heliumrich** on GitHub · 2026-12-05 23:56 UTC · [original](https://github.com/gamingwithhomie/larp/pull/376#issuecomment-7447955790) I don't think getting gigabytes of outdated shaders is a solution.
Author
Owner

@⁠erdtreefaithful on GitHub · 2026-12-06 00:07 UTC · original

I don't think getting gigabytes of outdated shaders is a solution.

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.

**@⁠erdtreefaithful** on GitHub · 2026-12-06 00:07 UTC · [original](https://github.com/gamingwithhomie/larp/pull/376#issuecomment-7448109913) > I don't think getting gigabytes of outdated shaders is a solution. 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.
github-bot changed target branch from main to gh-pr/376/base 2026-12-06 01:11:48 +00:00
github manually merged commit 8a9372ee47 into gh-pr/376/base 2026-12-06 01:34:21 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.