D3D12.X: no disk driver blob for a graphics pipeline with static samplers on NVIDIA #3169

Open
KDenKC wants to merge 3 commits from upstream-pr/3169 into main
KDenKC commented 2026-11-28 15:32:00 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KDenKC on 2026-11-28T15:32:00Z.


On NVIDIA, a translated graphics pipeline created from what another process made loses the linear filtering of its static samplers. In the retail title the tone map samples its 33³ LUTs through such a sampler, so a tone map made that way sampled them as point, giving contour bands (#505). On main, "what another process made" is two XCL artifacts:

  • the driver blobs on disk (CachedPSO), written by the preparation workers or an earlier run;
  • XCL's pipeline library, which the preparation stores and the title's process loads from.

This keeps translated graphics pipelines with static samplers (and the mesh pass of two-pass ones) off both on NVIDIA, and on an adapter whose vendor is not known (fail closed). Blobs this process keeps in memory still apply. It covers XCL's own artifacts of translated pipelines only: a title's own native pipeline library or cached PSO passes as before.

The cause and the fix are claudetools-gh's (#505 7235526172: RTX 5070 Ti, 621.01: levels and gaps per channel on a flat wall 10/2, 10/2, 13/1 with the tone map from a disk blob; 23/0, 16/0, 12/0 built without it or by the game process; 24/0, 17/0, 13/0 with the fix). They pointed out that the pipeline library is the same cross-process case (7236405511).

Part of #505.

What is in it (three commits; real.rs, README.md, and tests)

  • One policy, graphics_artifacts_across(device, static_samplers): a pipeline without static samplers always may take and keep what another process made. One with them may only on a known adapter that is not NVIDIA's (blob_across_processes, DXGI VendorId 0x10DE).
    • adapter_vendor asks the device's adapter by LUID, and only for a pipeline with static samplers.
    • It caches only a vendor it found: a failed lookup is not cached, the next pipeline asks again, and meanwhile the pipeline counts as not eligible.
  • Applied at the three XCL graphics paths:
    • translated_graphics_pso_once (descriptions and description-compatible streams): no library load or store, no disk blob. The library load and the disk path go through graphics_from_other_processes, the store through keep_for_other_processes;
    • finish_two_pass: the mesh pass (with its pixel shader's samplers): no library load or store, no disk blob. The NGG compute pass keeps the compute rules as they are;
    • the other translated graphics streams: no disk blob.
  • Tests:
    • the policy (NVIDIA, AMD / Intel / WARP, an adapter not known, with and without static samplers);
    • every_translated_graphics_artifact_path_uses_the_static_sampler_policy pins all graphics artifact call sites;
    • adapter_info_caches_failed_lookups_and_keeps_identity_without_vendor pins failed-lookup caching and the vendor/identity result.
    • a_static_sampler_graphics_pipeline_takes_and_keeps_no_artifact_of_another_process: with an entry of XCL's pipeline library and a blob file of a translated graphics pipeline there (a real device), the desc path's load and disk path take them, and its store keeps a new entry, only where the policy lets them across. It fails if a gate in those functions is removed.
  • What it reaches on main: #3100's import of exact pipelines from a previous library goes through pipeline_library::load_graphics, so it is behind the same gate (a guarded pipeline is neither imported from the last run's library nor stored into this one). #3175's first-use manifest only logs names and holds no pipeline: nothing to gate there. #3244 changes the title's root signatures only, not the translated pipelines this gates.
  • Libraries and blobs already on disk stay. Builds without this keep loading them.

Tested

RTX 3090 VM, Windows 26300, NVIDIA driver 32.0.16.2124, Intel i7-10700T, Rust 1.99.1, debug, XCL_NETWORK=0, head e3a81f91 on main 1c8b5514:

  • Focused tests, all passed with no skips: a_static_sampler_graphics_pipeline_takes_and_keeps_no_artifact_of_another_process (1 passed), every_translated_graphics_artifact_path_uses_the_static_sampler_policy (1 passed), and adapter_info_caches_failed_lookups_and_keeps_identity_without_vendor (1 passed).
  • Isolated lib test binary, --test-threads=4: 2,759 passed, 4 failed, 31 ignored; no crash. Failures: placed_title_textures_share_vram_and_preserve_pixels and the three stream_recheck_* tests.
  • Main 1c8b5514, same isolated command/settings: 2,754 passed, 4 failed, 31 ignored; no crash, with the same four title-texture failures. The rebased head adds five passing tests and introduces no new failure.
  • No full workspace suite has run on this head.

Regression run

Both arms used the seeded profile and held Enter. The 600 s JIT head arm for e3a81f91 is compared with the reused gate-batch-t main block (1c8b5514); the head's merge base is 1c8b5514. Head: 1,977 frames, 0 removals, 48,493 MB peak commit; main: 1,724 frames, 0 removals, 47,581 MB. Both arms exited cleanly; frame and memory checks pass.

Main block (verbatim):

xcl-smoke v1
commit: 1c8b551475e1e7bfe48f94448492a4c3544a2e0f
gpu: NVIDIA GeForce RTX 5090
title: 9cc6a39e
seconds: 600
exit: 0x0
frames shown: 1724 (PresentX 1725)
presents per 2 s (last 3): 2 1 2
device removals: 0
crashes: 0
peak commit: 47581 MB

#3169 head block (verbatim):

xcl-smoke v1
commit: e3a81f9141e68facc14ffba92567310220affd7f
gpu: NVIDIA GeForce RTX 5090
title: 9cc6a39e
seconds: 600
exit: 0x0
frames shown: 1977 (PresentX 1978)
presents per 2 s (last 3): 2 1 2
device removals: 0
crashes: 0
peak commit: 48493 MB

Not tested

  • Compute pipelines, including compute_container and the two-pass mesh compute pass, remain outside this graphics-only change and still use cross-process artifacts when their static-sampler root signatures do.
  • Preparation workers still build guarded graphics pipelines they cannot hand off. A worker counts the build done though no file or library entry comes of it, so the title compiles that pipeline again (and a previous receipt can skip preparation that the runtime then does not use). That is a cost in latency and in the preparation's counts, not a way around the rule. A worker-side skip would be a separate change.
  • The device test reaches the desc-path artifact functions and verifies both allow/deny values; every_translated_graphics_artifact_path_uses_the_static_sampler_policy pins the desc, two-pass mesh, and stream call sites. It does not build a retail console shader pair with a static sampler.
  • AMD and Intel: they keep their disk blobs and library entries.
  • NVIDIA drivers other than 621.x / 616.x.
  • The banding in a title run on this head (claudetools-gh's measurement is on the nvidia-dev form).

AI use
AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 4 Hydrogen (tools: Claude Code, Codex, Antigravity).

Generated with Claude Code
https://claude.ai/code/session_013oPUFCA9W9F8Qb5MPK33bR

<!-- greyfinch-sync:ivall/xcl:issue:5541755089 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3169). Originally posted by [KDenKC](https://github.com/KDenKC) on 2026-11-28T15:32:00Z. --- On NVIDIA, a translated graphics pipeline created from what **another process** made loses the linear filtering of its static samplers. In the retail title the tone map samples its 33³ LUTs through such a sampler, so a tone map made that way sampled them as point, giving contour bands (#505). On main, "what another process made" is two XCL artifacts: - the driver blobs on disk (`CachedPSO`), written by the preparation workers or an earlier run; - XCL's **pipeline library**, which the preparation stores and the title's process loads from. This keeps translated graphics pipelines with static samplers (and the mesh pass of two-pass ones) off both on NVIDIA, and on an adapter whose vendor is not known (fail closed). Blobs this process keeps in memory still apply. It covers XCL's own artifacts of translated pipelines only: a title's own native pipeline library or cached PSO passes as before. The cause and the fix are claudetools-gh's (#505 [7235526172](https://github.com/xcl-dev/xcl/issues/505#issuecomment-7235526172): RTX 5070 Ti, 621.01: levels and gaps per channel on a flat wall 10/2, 10/2, 13/1 with the tone map from a disk blob; 23/0, 16/0, 12/0 built without it or by the game process; 24/0, 17/0, 13/0 with the fix). They pointed out that the pipeline library is the same cross-process case ([7236405511](https://github.com/xcl-dev/xcl/issues/505#issuecomment-7236405511)). Part of #505. **What is in it** (three commits; `real.rs`, `README.md`, and tests) - One policy, `graphics_artifacts_across(device, static_samplers)`: a pipeline without static samplers always may take and keep what another process made. One with them may only on a known adapter that is not NVIDIA's (`blob_across_processes`, DXGI VendorId 0x10DE). - `adapter_vendor` asks the device's adapter by LUID, and only for a pipeline with static samplers. - It caches only a vendor it found: a failed lookup is not cached, the next pipeline asks again, and meanwhile the pipeline counts as not eligible. - Applied at the three XCL graphics paths: - `translated_graphics_pso_once` (descriptions and description-compatible streams): no library load or store, no disk blob. The library load and the disk path go through `graphics_from_other_processes`, the store through `keep_for_other_processes`; - `finish_two_pass`: the mesh pass (with its pixel shader's samplers): no library load or store, no disk blob. The NGG compute pass keeps the compute rules as they are; - the other translated graphics streams: no disk blob. - Tests: - the policy (NVIDIA, AMD / Intel / WARP, an adapter not known, with and without static samplers); - `every_translated_graphics_artifact_path_uses_the_static_sampler_policy` pins all graphics artifact call sites; - `adapter_info_caches_failed_lookups_and_keeps_identity_without_vendor` pins failed-lookup caching and the vendor/identity result. - `a_static_sampler_graphics_pipeline_takes_and_keeps_no_artifact_of_another_process`: with an entry of XCL's pipeline library and a blob file of a translated graphics pipeline there (a real device), the desc path's load and disk path take them, and its store keeps a new entry, only where the policy lets them across. It fails if a gate in those functions is removed. - What it reaches on main: #3100's import of exact pipelines from a **previous** library goes through `pipeline_library::load_graphics`, so it is behind the same gate (a guarded pipeline is neither imported from the last run's library nor stored into this one). #3175's first-use manifest only logs names and holds no pipeline: nothing to gate there. #3244 changes the title's root signatures only, not the translated pipelines this gates. - Libraries and blobs already on disk stay. Builds without this keep loading them. **Tested** RTX 3090 VM, Windows 26300, NVIDIA driver 32.0.16.2124, Intel i7-10700T, Rust 1.99.1, debug, `XCL_NETWORK=0`, head `e3a81f91` on main `1c8b5514`: - Focused tests, all passed with no skips: `a_static_sampler_graphics_pipeline_takes_and_keeps_no_artifact_of_another_process` (1 passed), `every_translated_graphics_artifact_path_uses_the_static_sampler_policy` (1 passed), and `adapter_info_caches_failed_lookups_and_keeps_identity_without_vendor` (1 passed). - Isolated lib test binary, `--test-threads=4`: 2,759 passed, 4 failed, 31 ignored; no crash. Failures: `placed_title_textures_share_vram_and_preserve_pixels` and the three `stream_recheck_*` tests. - Main `1c8b5514`, same isolated command/settings: 2,754 passed, 4 failed, 31 ignored; no crash, with the same four title-texture failures. The rebased head adds five passing tests and introduces no new failure. - No full workspace suite has run on this head. **Regression run** Both arms used the seeded profile and held Enter. The 600 s JIT head arm for `e3a81f91` is compared with the reused gate-batch-t main block (`1c8b5514`); the head's merge base is `1c8b5514`. Head: 1,977 frames, 0 removals, 48,493 MB peak commit; main: 1,724 frames, 0 removals, 47,581 MB. Both arms exited cleanly; frame and memory checks pass. Main block (verbatim): ``` xcl-smoke v1 commit: 1c8b551475e1e7bfe48f94448492a4c3544a2e0f gpu: NVIDIA GeForce RTX 5090 title: 9cc6a39e seconds: 600 exit: 0x0 frames shown: 1724 (PresentX 1725) presents per 2 s (last 3): 2 1 2 device removals: 0 crashes: 0 peak commit: 47581 MB ``` #3169 head block (verbatim): ``` xcl-smoke v1 commit: e3a81f9141e68facc14ffba92567310220affd7f gpu: NVIDIA GeForce RTX 5090 title: 9cc6a39e seconds: 600 exit: 0x0 frames shown: 1977 (PresentX 1978) presents per 2 s (last 3): 2 1 2 device removals: 0 crashes: 0 peak commit: 48493 MB ``` **Not tested** - Compute pipelines, including `compute_container` and the two-pass mesh compute pass, remain outside this graphics-only change and still use cross-process artifacts when their static-sampler root signatures do. - **Preparation workers still build guarded graphics pipelines they cannot hand off.** A worker counts the build done though no file or library entry comes of it, so the title compiles that pipeline again (and a previous receipt can skip preparation that the runtime then does not use). That is a cost in latency and in the preparation's counts, not a way around the rule. A worker-side skip would be a separate change. - The device test reaches the desc-path artifact functions and verifies both allow/deny values; `every_translated_graphics_artifact_path_uses_the_static_sampler_policy` pins the desc, two-pass mesh, and stream call sites. It does not build a retail console shader pair with a static sampler. - AMD and Intel: they keep their disk blobs and library entries. - NVIDIA drivers other than 621.x / 616.x. - The banding in a title run on this head (claudetools-gh's measurement is on the nvidia-dev form). **AI use** AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 4 Hydrogen (tools: Claude Code, Codex, Antigravity). Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_013oPUFCA9W9F8Qb5MPK33bR
andrewDoing commented 2026-11-28 15:51:08 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by andrewDoing on 2026-11-28T15:51:08Z.


RTX 5070 12 GB, NVIDIA 616.92, native Windows: A fresh process accepted the graphics PSO blob with a different sampler creation order, then returned the point-sampled value for a static linear sampler. With the PR's disk guard enabled, the same process setup returned the expected linear value on all 16 pixels.

At head 4c20b5c32f1c1458dbcfd7ab2e9de5cd95b8dead, I added a test-only native graphics fixture. A pixel shader samples halfway between black and white texels through a static linear sampler. Each row used a fresh process. PSO state, shader bytes, texture and sample coordinate were identical. In the last two rows the fixture created a point-sampler root signature first and kept it alive. Each process read back the entire 4×4 RGBA32F render target.

Run Disk blob reused Red value on all 16 pixels
Producer, linear first, empty cache No 0.5
Consumer, same order Yes 0.5
Consumer, point first, disk replay allowed Yes 1.0
Consumer, point first, PR guard enabled, same blob present No 0.5

The driver accepted the 2,274-byte blob in both replay controls. The fixture uses XCL's native adapter vendor lookup, ABI static sampler root signatures, blob_across_processes and graphics_pso_through_cache. It supplies synthetic DXIL and the cache path directly. It covers graphics PSO reuse and the resulting pixels. Console shader translation, two-pass mesh, title performance and retail image quality were outside this test. Four runs completed, zero skips.

AI use: OpenAI Codex (GPT-6) designed and ran the native fixture and prepared this report.

<!-- greyfinch-sync:ivall/xcl:comment:7241784393 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3169#issuecomment-7241784393). Originally posted by [andrewDoing](https://github.com/andrewDoing) on 2026-11-28T15:51:08Z. --- **RTX 5070 12 GB, NVIDIA 616.92, native Windows:** A fresh process accepted the graphics PSO blob with a different sampler creation order, then returned the point-sampled value for a static linear sampler. With the PR's disk guard enabled, the same process setup returned the expected linear value on all 16 pixels. At head `4c20b5c32f1c1458dbcfd7ab2e9de5cd95b8dead`, I added a test-only native graphics fixture. A pixel shader samples halfway between black and white texels through a static linear sampler. Each row used a fresh process. PSO state, shader bytes, texture and sample coordinate were identical. In the last two rows the fixture created a point-sampler root signature first and kept it alive. Each process read back the entire 4×4 RGBA32F render target. | Run | Disk blob reused | Red value on all 16 pixels | | --- | --- | --- | | Producer, linear first, empty cache | No | 0.5 | | Consumer, same order | Yes | 0.5 | | Consumer, point first, disk replay allowed | Yes | 1.0 | | Consumer, point first, PR guard enabled, same blob present | No | 0.5 | The driver accepted the 2,274-byte blob in both replay controls. The fixture uses XCL's native adapter vendor lookup, ABI static sampler root signatures, `blob_across_processes` and `graphics_pso_through_cache`. It supplies synthetic DXIL and the cache path directly. It covers graphics PSO reuse and the resulting pixels. Console shader translation, two-pass mesh, title performance and retail image quality were outside this test. Four runs completed, zero skips. AI use: OpenAI Codex (GPT-6) designed and ran the native fixture and prepared this report.
Aniseto commented 2026-11-28 18:02:04 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Aniseto on 2026-11-28T18:02:04Z.


Ran the static-sampler disk-blob tests at 4c20b5c3 on an NVIDIA Blackwell desktop part:

Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5, debug build.

XCL_ADAPTER=NVIDIA cargo test -p xcl --lib a_pipeline_with_static_samplers_takes_no_disk_blob_on_nvidia -- --test-threads=1
1 passed; 0 failed; 0 ignored; 0 measured; 1807 filtered out      (exit 0)

XCL_ADAPTER=NVIDIA cargo test -p xcl --lib other_vendors_keep_their_disk_blobs -- --test-threads=1
1 passed; 0 failed; 0 ignored; 0 measured; 1807 filtered out      (exit 0)

Both new tests pass: a graphics pipeline with static samplers skips the cross-process disk blob on NVIDIA, and other vendors keep theirs. The thread already has RTX 5070, 3090 and 5090 reports; this adds a 5070 Ti datapoint for the two focused tests. It is a pipeline-selection test, not a rendered tone-map comparison. The PR is a draft pending the sampler-prelude experiment.

Not tested: a retail title, the tone-map contour A/B, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game data.

AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.

<!-- greyfinch-sync:ivall/xcl:comment:7243477307 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3169#issuecomment-7243477307). Originally posted by [Aniseto](https://github.com/Aniseto) on 2026-11-28T18:02:04Z. --- Ran the static-sampler disk-blob tests at `4c20b5c3` on an NVIDIA Blackwell desktop part: Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2124, Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5, debug build. ``` XCL_ADAPTER=NVIDIA cargo test -p xcl --lib a_pipeline_with_static_samplers_takes_no_disk_blob_on_nvidia -- --test-threads=1 1 passed; 0 failed; 0 ignored; 0 measured; 1807 filtered out (exit 0) XCL_ADAPTER=NVIDIA cargo test -p xcl --lib other_vendors_keep_their_disk_blobs -- --test-threads=1 1 passed; 0 failed; 0 ignored; 0 measured; 1807 filtered out (exit 0) ``` Both new tests pass: a graphics pipeline with static samplers skips the cross-process disk blob on NVIDIA, and other vendors keep theirs. The thread already has RTX 5070, 3090 and 5090 reports; this adds a 5070 Ti datapoint for the two focused tests. It is a pipeline-selection test, not a rendered tone-map comparison. The PR is a draft pending the sampler-prelude experiment. Not tested: a retail title, the tone-map contour A/B, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game data. AI-assisted (OpenCode), model: **DeepSeek V4.1 Flash Free** - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used.
Foniass commented 2026-12-01 09:40:03 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T09:40:03Z.


Triage (#1607) – head 395d6bc

No open or merged PR makes the same change. #902 (same area, title similar) adds a disk cache for slow graphics blobs and has no vendor or static-sampler gating. Among the other #505 PRs, none skips the pipeline library and driver blobs for static-sampler pipelines on NVIDIA.
The gate (graphics_artifacts_across) is applied to the load and the store in all three translated graphics paths: the desc path, finish_two_pass (the mesh pass) and translated_graphics_stream_once. In-process GRAPHICS_BLOBS still apply. The desc-path store keeps its old cacheable condition through across.
Minor: adapter_vendor repeats uma_driver::vendor, adding a per-LUID cache. Reusing that helper would avoid a second DXGI lookup.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7307030329 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3169#issuecomment-7307030329). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T09:40:03Z. --- **Triage (#1607)** – head 395d6bc No open or merged PR makes the same change. #902 (same area, title similar) adds a disk cache for slow graphics blobs and has no vendor or static-sampler gating. Among the other #505 PRs, none skips the pipeline library and driver blobs for static-sampler pipelines on NVIDIA. The gate (`graphics_artifacts_across`) is applied to the load and the store in all three translated graphics paths: the desc path, `finish_two_pass` (the mesh pass) and `translated_graphics_stream_once`. In-process `GRAPHICS_BLOBS` still apply. The desc-path store keeps its old `cacheable` condition through `across`. Minor: `adapter_vendor` repeats `uma_driver::vendor`, adding a per-LUID cache. Reusing that helper would avoid a second DXGI lookup. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Foniass commented 2026-12-01 09:53:07 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T09:53:07Z.


Review (head 395d6bcc, diff read, not a merge-check; PR description red: its smoke block names 9f81b661, and the text still calls that the head):

  • No test pins the fix. The new tests call new functions, so on main they don't compile rather than fail. The device test passes its own across value to graphics_from_other_processes / keep_for_other_processes. Changing ~8130 to let across = cacheable;, or removing the filters at ~9495 / ~11041, would fail no test. andrewDoing's fixture that reproduces the wrong sampling isn't in the PR.
  • Compute is left exposed. The cause is NVIDIA allocating static samplers in process creation order, so a blob from another process is accepted and samples point instead of linear. #2326 measured the same order dependence on compute pipelines. compute_container and the two-pass compute pass (abi_rs_for(tp.samplers)) still take blobs and library entries from other processes. Whether their sampling breaks too is unverified.
  • The cost isn't measured. There's no count of guarded pipelines in the retail title, so no estimate of the recompiles every NVIDIA run now pays. The 600 s pair used XCL_PREPARE=0 from the same translated cache and didn't reach the world. Preparation workers also build pipelines they can no longer hand off, as the description says.
  • A fourth vendor lookup. adapter_vendor (~9390) adds one beside ADAPTER_VENDOR (real.rs ~227 / ~1015), driver_cache::note_vendor and uma_driver::vendor, and #3516 (yours) adds gpu::adapter::note_main_vendor. driver_identity already calls EnumAdapterByLuid per LUID and could record it once.
  • Old blobs on disk stop being read on NVIDIA but stay; builds without the PR keep loading them. The commit subject is over 72 characters, and README ~370-373 (the disk cache bullet) doesn't mention the exception.

Fine: the gate covers all three graphics paths (desc, both finish_two_pass callers, stream), and gating the mesh form on ps_samplers is right. Blobs kept in memory still apply. The vendor comes from each device's own adapter by LUID, so preparation and title agree, and an unknown vendor counts as possibly NVIDIA (fail closed). Disabling is a sound stopgap; #2326 (one fixed sampler order) is the structural fix.

AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7307347916 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3169#issuecomment-7307347916). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T09:53:07Z. --- Review (head 395d6bcc, diff read, not a merge-check; `PR description` red: its smoke block names 9f81b661, and the text still calls that the head): - **No test pins the fix.** The new tests call new functions, so on main they don't compile rather than fail. The device test passes its own `across` value to `graphics_from_other_processes` / `keep_for_other_processes`. Changing ~8130 to `let across = cacheable;`, or removing the filters at ~9495 / ~11041, would fail no test. andrewDoing's fixture that reproduces the wrong sampling isn't in the PR. - **Compute is left exposed.** The cause is NVIDIA allocating static samplers in process creation order, so a blob from another process is accepted and samples point instead of linear. #2326 measured the same order dependence on compute pipelines. `compute_container` and the two-pass compute pass (`abi_rs_for(tp.samplers)`) still take blobs and library entries from other processes. Whether their sampling breaks too is unverified. - **The cost isn't measured.** There's no count of guarded pipelines in the retail title, so no estimate of the recompiles every NVIDIA run now pays. The 600 s pair used `XCL_PREPARE=0` from the same translated cache and didn't reach the world. Preparation workers also build pipelines they can no longer hand off, as the description says. - **A fourth vendor lookup.** `adapter_vendor` (~9390) adds one beside `ADAPTER_VENDOR` (`real.rs` ~227 / ~1015), `driver_cache::note_vendor` and `uma_driver::vendor`, and #3516 (yours) adds `gpu::adapter::note_main_vendor`. `driver_identity` already calls `EnumAdapterByLuid` per LUID and could record it once. - Old blobs on disk stop being read on NVIDIA but stay; builds without the PR keep loading them. The commit subject is over 72 characters, and README ~370-373 (the disk cache bullet) doesn't mention the exception. Fine: the gate covers all three graphics paths (desc, both `finish_two_pass` callers, stream), and gating the mesh form on `ps_samplers` is right. Blobs kept in memory still apply. The vendor comes from each device's own adapter by LUID, so preparation and title agree, and an unknown vendor counts as possibly NVIDIA (fail closed). Disabling is a sound stopgap; #2326 (one fixed sampler order) is the structural fix. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
Foniass commented 2026-12-01 20:58:56 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T20:58:56Z.


Follow-up review (head 656ede24, since 395d6bc, diff read, not a merge-check):

  • No test pins the fix: partly fixed. The device test now gets across from graphics_artifacts_across on the real adapter (real.rs ~14307), so the live vendor lookup is exercised. The call sites are still not covered: making ~8131 let across = cacheable;, or dropping the mesh_across filters at ~9496 / ~9498 / ~9671 or the filter at ~11041, fails no test, and the fixture that reproduces the wrong sampling is still not in the PR.
  • Compute is left exposed: still open. compute_container (~6342 library load, ~6353 disk path) and the two-pass compute pass still take blobs and library entries from other processes; whether their static samplers break the same way is unverified.
  • The cost is not measured: still open. The new 600 s RTX 5090 pair (1872 vs 1898 frames) shows no regression but gives no count of guarded pipelines, so the recompiles every NVIDIA run now pays are unknown.
  • A fourth vendor lookup; commit subject and README: still open. adapter_vendor (~9390) is unchanged beside ADAPTER_VENDOR (~227 / ~1015); the first commit's subject is 92 characters; the disk-cache bullet in README.md (~370-372) does not mention the NVIDIA static-sampler exception.
  • PR description red: fixed; the smoke block names 656ede24.

New:

  • The device test now checks only one side of the gate on each machine. Since 656ede24 the test runs only the adapter's own across value (~14307-14318). On AMD, Intel or WARP only across == true runs, so removing the if !across return in graphics_from_other_processes (~9438) or keep_for_other_processes (~9455) fails nothing there, including the maintainer's RDNA4 batch run (CI has no GPU). The previous version ran both values on any GPU; keep the live-policy assertion and also call both helpers with true and false.
  • No full suite at this head. The head run is the lib suite with --test-threads=1 plus e2e and lists gpu_direct_image_get_resinfo_d16 as failing, which is not among main's failures on that machine; the full-workspace counts are from 9f81b661.

Fine: the gate still covers the desc path, the two-pass mesh pass and the stream path; the desc path keeps its old cacheable condition through across; an unknown vendor counts as possibly NVIDIA (fail closed); blobs kept in memory still apply.

AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7325564612 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3169#issuecomment-7325564612). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T20:58:56Z. --- Follow-up review (head 656ede24, since 395d6bc, diff read, not a merge-check): - **No test pins the fix:** partly fixed. The device test now gets `across` from `graphics_artifacts_across` on the real adapter (`real.rs` ~14307), so the live vendor lookup is exercised. The call sites are still not covered: making ~8131 `let across = cacheable;`, or dropping the `mesh_across` filters at ~9496 / ~9498 / ~9671 or the filter at ~11041, fails no test, and the fixture that reproduces the wrong sampling is still not in the PR. - **Compute is left exposed:** still open. `compute_container` (~6342 library load, ~6353 disk path) and the two-pass compute pass still take blobs and library entries from other processes; whether their static samplers break the same way is unverified. - **The cost is not measured:** still open. The new 600 s RTX 5090 pair (1872 vs 1898 frames) shows no regression but gives no count of guarded pipelines, so the recompiles every NVIDIA run now pays are unknown. - **A fourth vendor lookup; commit subject and README:** still open. `adapter_vendor` (~9390) is unchanged beside `ADAPTER_VENDOR` (~227 / ~1015); the first commit's subject is 92 characters; the disk-cache bullet in `README.md` (~370-372) does not mention the NVIDIA static-sampler exception. - **`PR description` red:** fixed; the smoke block names `656ede24`. New: - **The device test now checks only one side of the gate on each machine.** Since `656ede24` the test runs only the adapter's own `across` value (~14307-14318). On AMD, Intel or WARP only `across == true` runs, so removing the `if !across` return in `graphics_from_other_processes` (~9438) or `keep_for_other_processes` (~9455) fails nothing there, including the maintainer's RDNA4 batch run (CI has no GPU). The previous version ran both values on any GPU; keep the live-policy assertion and also call both helpers with `true` and `false`. - **No full suite at this head.** The head run is the lib suite with `--test-threads=1` plus e2e and lists `gpu_direct_image_get_resinfo_d16` as failing, which is not among main's failures on that machine; the full-workspace counts are from `9f81b661`. Fine: the gate still covers the desc path, the two-pass mesh pass and the stream path; the desc path keeps its old `cacheable` condition through `across`; an unknown vendor counts as possibly NVIDIA (fail closed); blobs kept in memory still apply. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
Foniass commented 2026-12-01 23:02:14 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T23:02:14Z.


Follow-up review (head ea02c3e6, since 656ede24, diff read, not a merge-check; checks red):

  • The device test checks only one side of the gate: fixed. It now runs graphics_from_other_processes and keep_for_other_processes with both false and true on any GPU (real.rs ~14327-14346) and still checks the live policy.
  • No test pins the call sites: partly fixed. every_translated_graphics_artifact_path_uses_the_static_sampler_policy (~14355-14368) pins the text of the desc-path line (~8131), the two mesh_across filters (~9512 / ~9514), mesh_stored (~9687) and the stream filter (~11057), but not the line that defines mesh_across (~9511), so let mesh_across = true; still fails nothing. It matches source text, not behaviour.
  • Cost and compute: partly fixed. note_guarded_static_sampler_pipeline (~9413) logs a running count, but no run reports it; README (~374-378) now says compute is outside the rule, which is still unchecked.
  • Vendor lookup, commit subject, README: partly fixed. adapter_vendor shares one DXGI lookup per LUID with driver_identity through adapter_info (~9335-9351) and README describes the NVIDIA exception; the first commit's subject is still 92 characters.
  • No full suite and no smoke block at this head: still open; both smoke blocks name earlier commits, which is why PR description is red again.

New:

  • The Tests: commit changes runtime behaviour. ea02c3e6 also replaces the driver_identity cache with adapter_info (~9335-9351) and adds an info log. A failed DXGI lookup used to be cached as None and now is not, so every pipeline creation on that adapter makes a DXGI factory again; and a failed GetDesc now drops the driver identity too, which turns off disk blobs and pipeline-library keys. That needs its own commit (or a squash into the D3D12.X: one) and a line in the description.
  • Stale "Not tested". It still says removing a guard in finish_two_pass or translated_graphics_stream_once would fail no test; the source-anchor test now catches most of those lines.

AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7328689568 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3169#issuecomment-7328689568). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T23:02:14Z. --- Follow-up review (head ea02c3e6, since 656ede24, diff read, not a merge-check; checks red): - **The device test checks only one side of the gate:** fixed. It now runs `graphics_from_other_processes` and `keep_for_other_processes` with both `false` and `true` on any GPU (`real.rs` ~14327-14346) and still checks the live policy. - **No test pins the call sites:** partly fixed. `every_translated_graphics_artifact_path_uses_the_static_sampler_policy` (~14355-14368) pins the text of the desc-path line (~8131), the two `mesh_across` filters (~9512 / ~9514), `mesh_stored` (~9687) and the stream filter (~11057), but not the line that defines `mesh_across` (~9511), so `let mesh_across = true;` still fails nothing. It matches source text, not behaviour. - **Cost and compute:** partly fixed. `note_guarded_static_sampler_pipeline` (~9413) logs a running count, but no run reports it; README (~374-378) now says compute is outside the rule, which is still unchecked. - **Vendor lookup, commit subject, README:** partly fixed. `adapter_vendor` shares one DXGI lookup per LUID with `driver_identity` through `adapter_info` (~9335-9351) and README describes the NVIDIA exception; the first commit's subject is still 92 characters. - **No full suite and no smoke block at this head:** still open; both smoke blocks name earlier commits, which is why `PR description` is red again. New: - **The `Tests:` commit changes runtime behaviour.** `ea02c3e6` also replaces the `driver_identity` cache with `adapter_info` (~9335-9351) and adds an info log. A failed DXGI lookup used to be cached as `None` and now is not, so every pipeline creation on that adapter makes a DXGI factory again; and a failed `GetDesc` now drops the driver identity too, which turns off disk blobs and pipeline-library keys. That needs its own commit (or a squash into the `D3D12.X:` one) and a line in the description. - **Stale "Not tested".** It still says removing a guard in `finish_two_pass` or `translated_graphics_stream_once` would fail no test; the source-anchor test now catches most of those lines. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
Foniass commented 2026-12-02 06:48:24 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-02T06:48:24Z.


Follow-up review (head ef59339c, since ea02c3e6, diff read, not a merge-check; checks red):

  • The Tests: commit changed runtime behaviour: partly fixed. The adapter_info refactor now lives in the D3D12.X: commit, and a failed lookup is cached again while a failed GetDesc leaves only the vendor unknown (adapter_info_parts, with adapter_info_caches_failed_lookups_and_keeps_identity_without_vendor). The top commit ef59339c is still titled Tests: but still changes runtime code: the adapter_info_parts split, the GUARDED_STATIC_SAMPLER_PIPELINES count and its log line (real.rs), and a README paragraph.
  • No test pins the call sites: fixed for the earlier gap; the source-anchor test now also pins the line that defines mesh_across (~14376). It still matches source text, not behaviour.
  • Stale "Not tested": fixed.
  • Compute left exposed, cost not measured: unchanged; README states compute is outside the rule, and no run reports the guarded-pipeline count.
  • No full suite and no smoke block at this head: partly fixed. Tested now has an isolated lib run on ef59339c against main 1c8b5514, but no xcl-smoke pair for this head (the reason PR description is red), and the description says the earlier pair does not validate it.

New: none.

AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7337428692 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3169#issuecomment-7337428692). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-02T06:48:24Z. --- Follow-up review (head ef59339c, since ea02c3e6, diff read, not a merge-check; checks red): - **The `Tests:` commit changed runtime behaviour:** partly fixed. The `adapter_info` refactor now lives in the `D3D12.X:` commit, and a failed lookup is cached again while a failed `GetDesc` leaves only the vendor unknown (`adapter_info_parts`, with `adapter_info_caches_failed_lookups_and_keeps_identity_without_vendor`). The top commit `ef59339c` is still titled `Tests:` but still changes runtime code: the `adapter_info_parts` split, the `GUARDED_STATIC_SAMPLER_PIPELINES` count and its log line (`real.rs`), and a README paragraph. - **No test pins the call sites:** fixed for the earlier gap; the source-anchor test now also pins the line that defines `mesh_across` (~14376). It still matches source text, not behaviour. - **Stale "Not tested":** fixed. - **Compute left exposed, cost not measured:** unchanged; README states compute is outside the rule, and no run reports the guarded-pipeline count. - **No full suite and no smoke block at this head:** partly fixed. **Tested** now has an isolated lib run on `ef59339c` against `main` `1c8b5514`, but no `xcl-smoke` pair for this head (the reason `PR description` is red), and the description says the earlier pair does not validate it. New: none. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
KDenKC commented 2026-12-02 06:49:08 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KDenKC on 2026-12-02T06:49:08Z.


@Foniass thanks for the follow-up. The updated head is ef59339c.

  • The regression coverage now includes every_translated_graphics_artifact_path_uses_the_static_sampler_policy, which pins the descriptor, two-pass mesh, and stream call sites, and a_static_sampler_graphics_pipeline_takes_and_keeps_no_artifact_of_another_process, which tests both allow and deny behavior for library/disk loads and stores. adapter_info_caches_failed_lookups_and_keeps_identity_without_vendor covers per-LUID failed factory/adapter caching and preserves a driver identity when GetDesc cannot provide a vendor. The retail wrong-sampling fixture and a visual reproduction are still not included.
  • Compute is explicitly out of scope in the README: compute_container and the two-pass mesh compute pass remain able to use cross-process artifacts. There is no compute-specific reproduction in this change.
  • The guarded-pipeline counter logs at 1 and each 100 thereafter. That gives periodic cumulative checkpoints; the compile-time cost has not been measured.
  • Adapter information now comes from one cached per-LUID lookup. A failed factory/adapter lookup remains cached; a failed GetDesc leaves the vendor unknown without dropping the independent driver identity. The runtime change is in the D3D12.X commit; its subject is 66 characters, and the README documents the graphics-only NVIDIA rule.
  • On the 3090, all three focused tests passed (1/1 each). The isolated 4-thread lib run on ef59339c completed without a crash: 2,735 passed, 5 failed, 31 ignored. The failures were gpu_direct_image_get_resinfo_d16 plus the four title_textures tests. The isolated main 1c8b5514 lib run also completed without a crash: 2,754 passed, 4 failed, 31 ignored; it had the same four title-texture failures. The additional D16 failure is on this branch's older 9dfbe3ea base and was fixed later on main by 466b75c5; the count comparison is not patch-only. No full workspace suite has run on ef59339c.
  • The old smoke pair is for 656ede24 vs 9dfbe3ea; it does not validate this head. A fresh pair for ef59339c is queued after the combined-stack runs. No current-head title result is claimed.

AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 4 Hydrogen.

<!-- greyfinch-sync:ivall/xcl:comment:7337443032 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3169#issuecomment-7337443032). Originally posted by [KDenKC](https://github.com/KDenKC) on 2026-12-02T06:49:08Z. --- @Foniass thanks for the follow-up. The updated head is `ef59339c`. - The regression coverage now includes `every_translated_graphics_artifact_path_uses_the_static_sampler_policy`, which pins the descriptor, two-pass mesh, and stream call sites, and `a_static_sampler_graphics_pipeline_takes_and_keeps_no_artifact_of_another_process`, which tests both allow and deny behavior for library/disk loads and stores. `adapter_info_caches_failed_lookups_and_keeps_identity_without_vendor` covers per-LUID failed factory/adapter caching and preserves a driver identity when `GetDesc` cannot provide a vendor. The retail wrong-sampling fixture and a visual reproduction are still not included. - Compute is explicitly out of scope in the README: `compute_container` and the two-pass mesh compute pass remain able to use cross-process artifacts. There is no compute-specific reproduction in this change. - The guarded-pipeline counter logs at 1 and each 100 thereafter. That gives periodic cumulative checkpoints; the compile-time cost has not been measured. - Adapter information now comes from one cached per-LUID lookup. A failed factory/adapter lookup remains cached; a failed `GetDesc` leaves the vendor unknown without dropping the independent driver identity. The runtime change is in the D3D12.X commit; its subject is 66 characters, and the README documents the graphics-only NVIDIA rule. - On the 3090, all three focused tests passed (1/1 each). The isolated 4-thread lib run on `ef59339c` completed without a crash: 2,735 passed, 5 failed, 31 ignored. The failures were `gpu_direct_image_get_resinfo_d16` plus the four `title_textures` tests. The isolated main `1c8b5514` lib run also completed without a crash: 2,754 passed, 4 failed, 31 ignored; it had the same four title-texture failures. The additional D16 failure is on this branch's older `9dfbe3ea` base and was fixed later on main by `466b75c5`; the count comparison is not patch-only. No full workspace suite has run on `ef59339c`. - The old smoke pair is for `656ede24` vs `9dfbe3ea`; it does not validate this head. A fresh pair for `ef59339c` is queued after the combined-stack runs. No current-head title result is claimed. AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 4 Hydrogen.
Foniass commented 2026-12-02 07:03:31 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-02T07:03:31Z.


Follow-up review (head e3a81f91, since ef59339c, diff read, not a merge-check; checks red):

  • Earlier points: unchanged. git range-diff shows all three commits identical to de8a9d23 / 6f5614ca / ef59339c; this push only rebases onto a newer main. Still open: the Tests: commit's runtime changes and the missing xcl-smoke pair for this head.

New: none.

AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.

<!-- greyfinch-sync:ivall/xcl:comment:7337723128 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3169#issuecomment-7337723128). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-02T07:03:31Z. --- Follow-up review (head e3a81f91, since ef59339c, diff read, not a merge-check; checks red): - **Earlier points:** unchanged. `git range-diff` shows all three commits identical to `de8a9d23` / `6f5614ca` / `ef59339c`; this push only rebases onto a newer `main`. Still open: the `Tests:` commit's runtime changes and the missing `xcl-smoke` pair for this head. New: none. AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point.
KDenKC commented 2026-12-02 09:44:23 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by KDenKC on 2026-12-02T09:44:23Z.


@Foniass the 600 s JIT smoke pair for e3a81f91 is now recorded in #3169’s Regression run: 1,977 frames for the head versus 1,724 for main, with zero removals in both arms (48,493 MB versus 47,581 MB peak commit).

AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 4 Hydrogen.

<!-- greyfinch-sync:ivall/xcl:comment:7341412109 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3169#issuecomment-7341412109). Originally posted by [KDenKC](https://github.com/KDenKC) on 2026-12-02T09:44:23Z. --- @Foniass the 600 s JIT smoke pair for e3a81f91 is now recorded in #3169’s Regression run: 1,977 frames for the head versus 1,724 for main, with zero removals in both arms (48,493 MB versus 47,581 MB peak commit). AI use: an agent swarm: Claude Opus 5.5, Claude Sonnet 5.5, GPT-6.2-Sol, Gemini 4 Neon and Gemini 4 Hydrogen.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/3169:upstream-pr/3169'
git switch 'upstream-pr/3169'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/3169'
git switch 'upstream-pr/3169'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/3169'
git switch 'upstream-pr/3169'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/3169'
git switch 'main'
git merge --squash 'upstream-pr/3169'
git switch 'main'
git merge --ff-only 'upstream-pr/3169'
git switch 'main'
git merge 'upstream-pr/3169'
git push origin 'main'
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
xcl-dev/xcl!3169
No description provided.