Skip to content

Shaders: the preparation trusts the driver blobs it checked before - #2951

Closed
throny wants to merge 1 commit into
xcl-dev:mainfrom
throny:prep-skip-verified
Closed

throny wants to merge 1 commit into
xcl-dev:mainfrom
throny:prep-skip-verified

Conversation

@throny

@throny throny commented Nov 27, 2026 •

Copy link
Copy Markdown
Collaborator

At every launch the shader preparation created each used compute pipeline again from its stored driver blob, only to apply its check (the driver makes a pipeline from the blob and returns a blob of the same size), and then dropped the pipeline. That is not free: on an RTX 4080 (driver 621.40) creating a large pipeline from its blob was measured to take as long as compiling it, so the preparation took minutes at every launch, also right after a launch that had completed it. This PR remembers that a blob passed the check and does not create its pipeline again. Part of #2088 (plan and discussion there; the content digest is @ettehn's point).

What is in it

  • crates/xcl/src/hle/d3d12x/real.rs (driver_cache): a marker <blob>.ok beside a blob that passed the check or was just written: the driver's identity (the one the graphics blobs use), the blob's length and an FNV-64 digest of its bytes. verified compares all three with the file as it is now; remove deletes a refused blob together with its marker.
  • crates/xcl/src/shaders.rs (Pipelines::make_one): a record whose blob matches its marker is counted ("pipelines whose blob an earlier pass verified, not created again N") and returns before the worker slot and the driver call. Anything else goes the present way and is marked afterwards. XCL_PREPARE_VERIFY=1 applies the check to every blob again.
  • Tests: a_verified_blob_is_trusted_until_it_changes_or_is_refused (other driver, changed length, same-length overwrite, missing blob, refusal), GPU test a_second_pass_trusts_the_blobs_the_first_verified, and gpu_compute_e2e::offline_compute_pipeline_is_reused_by_a_second_process extended across processes (trusted; a blob overwritten with zeros of the same length is rebuilt and trusted again). Two existing e2e tests list only .pso files and run their reuse assertions with XCL_PREPARE_VERIFY=1, unchanged otherwise.
  • README.md: one bullet for the markers and the switch.

The marker says what the preparation's check said before, no more: it does not prove the driver used the blob (the comment at the check already notes a driver may compile from the DXIL and still succeed). It changes when the check runs, not what it proves.

Tested

  • RTX 4080 16 GB, NVIDIA 621.40, i9-12900K, 64 GB, Windows 11 Pro 26300, Rust 1.100.0, debug for the tests, release for the title.
  • cargo test --workspace --no-fail-fast -- --test-threads=4 on 551bcb90 (this commit before a comment-only amend): 1825 passed, 8 failed, 48 ignored, 27 SKIPPED lines (mostly "no wave64", two "no heap windows"). The 8 failures are 6 tests that fail the same way on the clean base ecc0bb57 on this machine, each rerun alone with and without the change: listed in Nvidia dev #2572 (comment). None is in code this PR touches except gpu_compute_e2e, where the two failing tests fail at the same lines without it.
  • cargo test -p xcl --lib driver_cache: 7 passed; --lib pipeline_cap_tests: 4 passed; --test gpu_compute_e2e: 5 passed, 2 failed (the two above).
  • Retail title, three launches of this build in a row, each ended 5 s after the title started; time from process start to the first game frame: with XCL_PREPARE_VERIFY=1 (the present behaviour) 131 s (compute pipelines 120 s); the two launches after it, with the markers, 11 s and 11 s (compute pipelines 3 s). 4,203 markers were written.

Regression run
On a commit of main, on the base commit (nvidia-dev, which this PR is against) and on this PR's head, same title, 120 s:

xcl-smoke v1
commit: 83b008188efbf954b846667f48d75e3fa9310a01
gpu: NVIDIA GeForce RTX 4080
title: 21222967
seconds: 120
exit: 0x0
frames shown: 3391 (PresentX 3391)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 20174 MB
xcl-smoke v1
commit: ecc0bb57976b1bc94854199ddf4f915fd00e0a59
gpu: NVIDIA GeForce RTX 4080
title: 21222967
seconds: 120
exit: 0x0
frames shown: 3462 (PresentX 3462)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 20430 MB
xcl-smoke v1
commit: 40a14da3716bc28d0c34c86928de987a473192bb
gpu: NVIDIA GeForce RTX 4080
title: 21222967
seconds: 120
exit: 0x0
frames shown: 3449 (PresentX 3449)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 20318 MB

Not tested

  • AMD and Intel GPUs; other NVIDIA drivers (on 621.24 another tester sees blobs load in under a second, where the saving will be smaller).
  • The world: the smoke runs stay in the title's first screens. Whether the title's own first creation of these pipelines gets slower when the preparation no longer creates them (a driver cache kept warm by it) was not measured.
  • A driver update with unchanged version fields, or a D3D12 runtime update: the marker does not cover them; XCL_PREPARE_VERIFY=1 does.
  • The whole suite was not rerun after the comment-only amend (no code token changed between 551bcb90 and the head).

AI use

  • Claude Code with Claude Fable 5.2: plan, measurements, review of the diff, this description. A Claude Sonnet 5.5 sub-agent wrote the code and tests; two independent Claude Opus 5.5 sub-agent reviews, whose findings (three broken e2e tests, wording that overstated the check) are fixed in this commit.

🤖 Generated with Claude Code

At every launch the preparation workers created each used compute pipeline
from its stored driver blob only to run its check (the driver makes a
pipeline from the blob and returns a blob of the same size), and dropped
it. Creating a pipeline from a blob is not free: on an RTX 4080
(driver 621.40) it was measured to cost as much as compiling it, and the
preparation took 7-8 minutes at every launch, also right after a launch
that had completed it (186 of 192 slow creations in two launches were such
hits).

A blob that passed that check, or that was just written, now gets a marker
beside it (`<blob>.ok`: the driver's identity, the blob's length and a
digest of its bytes). A later pass counts a record whose blob still matches
its marker as prepared without creating the pipeline. This is the same
check as before, so it changes when the check runs, not what it proves (it
does not show that the driver used the blob). A blob that changed, also at
the same length, is checked the old way and repaired; a blob the driver
refuses is removed together with its marker. XCL_PREPARE_VERIFY=1 checks
every blob again.

Assisted-by: Claude Code (Claude Fable 5.2; first version written by a Claude Sonnet 5.5 sub-agent, reviewed by a Claude Opus 5.5 sub-agent)
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@andrewDoing

Copy link
Copy Markdown
Contributor

On 40a14da3716bc28d0c34c86928de987a473192bb, the verified-blob marker and explicit pipeline-size cap behaved consistently across seven fresh Windows CLI processes on an RTX 5070. The test used one synthetic packed compute shader, 4,452 bytes of compiled DXIL, a 2,318-byte driver blob and one isolated cache. No code changes were needed.

Step Observed result
Cold, uncapped Created one pipeline and wrote the blob and .ok marker.
Valid marker, 1 KiB cap Trusted one blob and created zero pipelines.
Same inputs, forced verification Created one pipeline with zero refusals and trusted zero markers.
Overwrote the blob with zeros of identical length, retained the old marker, 1 KiB cap Trusted zero markers, deferred one pipeline, and removed both the rejected blob and its marker. No fresh pipeline was created.
Another capped pass, forced verification Still deferred one pipeline with zero creations.
Uncapped recovery Created one pipeline and wrote a new blob and marker.
Restored 1 KiB cap Trusted the recovered blob and created zero pipelines.

All seven xcl shaders --precompile --pipelines runs exited successfully. This checks the interaction between same-length damage, the size cap and marker cleanup through the public CLI. It does not measure startup or first-dispatch latency in a retail title.

AI use: OpenAI Codex with GPT-6.2 Astra prepared the synthetic checks and compared the CLI counters and cache files; Codex coordinated and prepared this report.

@andrewDoing

Copy link
Copy Markdown
Contributor

I checked whether marker-bypass savings shifted into the first native consumer PSO creation, using head 40a14da3716bc28d0c34c86928de987a473192bb plus a test-only fixture on RTX 5070 / driver 616.92. Twelve synthetic compute shaders were seeded with driver blobs and markers. Each of 32 fresh processes began with a separate copy; the implicit OS/driver cache remained warm and its contents were not inspected. Eight counterbalanced runs were made per arm.

Preparation Consumer blob Median preparation Median sum of 12 first native creates Median paired subtotal
Trust marker Supplied 23.701 ms 8.752 ms 32.674 ms
Force verification Supplied 42.995 ms 8.292 ms 51.225 ms
Trust marker Omitted 24.120 ms 257.450 ms 281.548 ms
Force verification Omitted 42.629 ms 257.413 ms 300.571 ms

All 384 consumer creates succeeded. One 115.253 ms trust/supplied preparation outlier is retained. The paired subtotal excludes fixture/setup overhead. Consumer blob I/O and root-signature setup were outside the timed native calls; PSOs remained alive. This checks a small synthetic corpus on one device and shows little transfer of the preparation difference to first native creation in this setup. It does not establish which blob path a title uses, cold-driver behavior, GTA VI startup, dispatch correctness or frame time.

AI use: OpenAI Codex with GPT-6.2 Astra built and ran the synthetic measurement and audited the artifacts; Codex coordinated and prepared this report.

@throny

throny commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator Author

@andrewDoing thank you for both checks, in particular the second one: whether the saving just moves into the title's first creation was the open point in Not tested, and your 32 processes on driver 616.92 show little transfer for small programs. The size cap together with a same-length overwrite is a combination I had not run.

Status of the checks: Build and test (Windows, no GPU) fails in hle::d3d12x::sparse::tests::a_gpu_write_into_a_gpu_view_lands_in_its_cpu_view, which this PR does not touch; the same check is red on the other open PRs against nvidia-dev I looked at (#2935, #2927, #2923), so it comes from the base. PR description asks for a smoke block made on a commit of main; that run is in progress and I will add the block to the description.

AI use: Claude Code (Claude Fable 5.2).

@throny throny mentioned this pull request Nov 27, 2026
@LocranKing

Copy link
Copy Markdown

Independent back-to-back verification on RTX 3060 Ti (8 GB) + Ryzen 5 5500 (6C/12T) (40a14da3 merged with nvidia-dev ecc0bb57, Series S / lockhart profile).

Setup

  • Machine: Windows 11 Home build 26300, AMD Ryzen 5 5500, 31.8 GB RAM, RTX 3060 Ti (8 GB, driver 621.40), DXC 1.9.2602.17.
  • Env: XCL_DEVICE_TYPE=lockhart XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_TEXTURE_LEVEL_PAGES=1 XCL_PSO_WAIT_MS=50 XCL_GFX_PSO_WAIT_MS=200 XCL_CS_PSO_WAIT_MS=50 XCL_PREPARE_GRAPHICS=0 XCL_DRED=1 + XCL_PRESS_AT (18:A..74:A).

Two consecutive 90 s runs on the same cache folder

  • Run 1 started from a warm lockhart snapshot (1,572 used shaders, 3,206 driver blobs, no .ok markers yet).
  • Run 2 relaunched immediately on the same folder (now with .ok markers written by Run 1).
run compute pipeline prep total pre-launch time frames shown (90 s) first_2pass_mesh_t peak commit
nvidia-dev (ecc0bb57, 2 runs) 22–24 s 31.1–32.8 s – 98.8–112.9 s –
PR #2951 Run 1 (creates .ok) 35 s (43.3 s wall) 43.3 s 1,699 (1 5 11) 128.5 s 19,902 MB
PR #2951 Run 2 (trusts .ok) 6 s (5.8× faster) 11.4 s (3.8× faster) 1,680 (44 31 9) 80.6 s 20,914 MB
xcl-smoke v1
commit: 40a14da3716bc28d0c34c86928de987a473192bb
gpu: NVIDIA GeForce RTX 3060 Ti
title: 9cc6a39e
seconds: 90
exit: 0x0
frames shown: 1699 (PresentX 1699)
presents per 2 s (last 3): 1 5 11
device removals: 0
crashes: 0
peak commit: 19902 MB
xcl-smoke v1
commit: 40a14da3716bc28d0c34c86928de987a473192bb
gpu: NVIDIA GeForce RTX 3060 Ti
title: 9cc6a39e
seconds: 90
exit: 0x0
frames shown: 1680 (PresentX 1681)
presents per 2 s (last 3): 44 31 9
device removals: 0
crashes: 0
peak commit: 20914 MB

Not tested: driver update invalidation / tampered-blob fallback test on this machine, AMD/Intel adapters.

@luckyteagirl luckyteagirl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On 40a14da3716bc28d0c34c86928de987a473192bb, the cold creation path marks a freshly exported blob verified as soon as driver_cache::write succeeds. That path cleared desc.CachedPSO and built the pipeline from DXIL, so the newly written bytes have not passed the check described for this marker: importing them through CreateComputePipelineState, then receiving a cached blob of the same size. On the next normal launch driver_cache::verified returns early and may never perform that check. Could the first pass round-trip the exported blob before marking it, or defer the marker until from_cache succeeds on a later pass? The new test currently expects a marker immediately after cold creation and would need to cover the intended cold → checked → trusted sequence. This is exact-head source review; I did not demonstrate a driver that rejects its own exported blob.

AI use: OpenAI Codex (GPT-6.2 Sol) traced the cold and trusted paths and checked the discussion; OpenAI Codex (GPT-6.2 Astra) independently read the exact source and wrote this review.

@oni-swr

oni-swr commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

amd-win check of 40a14da3 (base nvidia-dev ecc0bb57), RX 7800 XT (RDNA3), driver 32.0.31035.1003, Windows 11 build 26200, Ryzen 7 5700X3D, 64 GB, release builds, DXC 1.8.2502.11.

  • Tests on the head: a_verified_blob_is_trusted_until_it_changes_or_is_refused and a_second_pass_trusts_the_blobs_the_first_verified: 2 passed, 0 failed, 0 skipped. gpu_compute_e2e::offline_compute_pipeline_is_reused_by_a_second_process: 1 passed, 0 failed.
  • Warm second launch, used-only preparation, each exe on its own fresh copy of one warm shader cache: xcl shaders <pack> --precompile --only cs --pipelines --used-only (331 used pipelines, 238 compute programs compiled), XCL_PSO_DISK_CACHE=1 XCL_PIPELINE_THREADS=4, run twice in a row per exe (first pass fills, second is the warm one):
pass 1 pass 2 (second launch) pipelines made / loaded from the driver cache / not created again (pass 2)
base ecc0bb57 159 s 3.4 s 238 made, 238 loaded from the driver cache, -
head 40a14da3 160 s 3.3 s 0 made, 0 loaded, 238 not created again

What this says for AMD: creating the pipelines from the stored blobs costs almost nothing here. The whole second pass of the base, translation included, takes 3.4 s for 238 pipelines (at most about 57 ms each on average with 4 threads), against 159 s for the first pass. So on this driver the marker saves about 0.1 s per launch and is neutral, in contrast to the 19.7 s per create reported on the RTX 4080. It also did no harm: 0 refused, 0 errors, identical pass 1 time.

Not tested: a title run, graphics pipelines, a driver or adapter change between passes, other AMD parts, NVIDIA. The AMD driver's own cache was warm from earlier runs (blobs here are names of entries in it), so this says nothing about a cold driver cache.

AI use: Claude Code (Claude Sonnet 5.5) ran the tests and runs and wrote this.

@thehollowedone

Copy link
Copy Markdown
Contributor

Following the fresh-export review point, I tried the smallest local resolution on #2951 head 40a14da3: write a newly exported blob without marking it, then mark it only after the next pass successfully re-imports that blob through the PR's existing from_cache check. The sequence is cold export → checked import → later trusted skip. This uses the check the marker claims to record; it does not add a second driver creation to the cold pass.

On Windows 11 build 26300, RTX 3080 Ti (621.35), Ryzen 7 9800X3D, Rust 1.99.1 MSVC, DXC 1.8.2502.11:

  • The revised a_second_pass_trusts_the_blobs_the_first_verified test on the unchanged production head failed as intended: 0 passed, 1 failed, 0 ignored, because the fresh export already had a marker. With the candidate fix, it passed 1/0/0.
  • cargo test --offline --locked -j 4 -p xcl --lib pipeline_cap_tests -- --test-threads=1 with the candidate: 4 passed, 0 failed, 0 ignored, no skips.
  • cargo test --offline --locked -j 4 -p xcl --test gpu_compute_e2e offline_compute_pipeline_is_reused_by_a_second_process -- --nocapture --test-threads=1 with the revised damaged-blob recovery expectation: 1 passed, 0 failed, 0 ignored, no skips. This runs the public CLI in fresh processes and uses synthetic shaders.
Candidate diff for the author
--- a/crates/xcl/src/shaders.rs
+++ b/crates/xcl/src/shaders.rs
@@
-    /// The pass that made a blob marks it; the next pass counts it as trusted and creates nothing,
-    /// and with `verify` it creates the pipeline from the blob again.
+    /// A cold pass writes the blob; the next pass checks it through the driver and marks it.
+    /// Only a later pass trusts that marker without creating the pipeline again.
@@
         pipelines.make(&compiled);
         assert_eq!(pipelines.made.load(Ordering::Relaxed), 1);
-        assert!(driver_cache::verified(&path, identity), "a blob the driver just made is marked");
+        assert!(!driver_cache::verified(&path, identity), "a newly exported blob has not been checked by re-import");
         pipelines.make(&compiled);
+        assert_eq!((pipelines.made.load(Ordering::Relaxed), pipelines.reused.load(Ordering::Relaxed)), (2, 1), "checked through the driver");
+        assert!(driver_cache::verified(&path, identity), "a checked blob is marked");
+        pipelines.make(&compiled);
         assert_eq!(pipelines.trusted.load(Ordering::Relaxed), 1);
-        assert_eq!((pipelines.made.load(Ordering::Relaxed), pipelines.reused.load(Ordering::Relaxed)), (1, 0), "nothing created");
+        assert_eq!((pipelines.made.load(Ordering::Relaxed), pipelines.reused.load(Ordering::Relaxed)), (2, 1), "trusted without another creation");
         pipelines.verify = true;
         pipelines.make(&compiled);
-        assert_eq!((pipelines.made.load(Ordering::Relaxed), pipelines.reused.load(Ordering::Relaxed)), (2, 1), "created from the blob again");
+        assert_eq!((pipelines.made.load(Ordering::Relaxed), pipelines.reused.load(Ordering::Relaxed)), (3, 2), "created from the blob again");
@@
-                        if driver_cache::write(path, written) {
-                            if let Some(identity) = self.identity {
-                                driver_cache::mark_verified(path, identity, written);
-                            }
-                        }
+                        driver_cache::write(path, written);
--- a/crates/xcl/tests/gpu_compute_e2e.rs
+++ b/crates/xcl/tests/gpu_compute_e2e.rs
@@
-    let again = run_trusting();
-    assert!(again.contains("pipelines whose blob an earlier pass verified, not created again 1"), "{again}");
+    let checked_again = run_trusting();
+    assert!(checked_again.contains("pipelines loaded from the driver cache 1"), "{checked_again}");
+    assert!(checked_again.contains("pipelines whose blob an earlier pass verified, not created again 0"), "{checked_again}");
+    let trusted_again = run_trusting();
+    assert!(trusted_again.contains("pipelines whose blob an earlier pass verified, not created again 1"), "{trusted_again}");

The tradeoff is that the first later launch with a fresh blob must do the driver check; the next matching launch can skip it. The current second-launch timing claim should be remeasured if this is adopted. I did not run the full workspace suite or paired title smoke on this uncommitted candidate. AI use: Codex (GPT-6.2 Sol) traced the paths, wrote the local diff and ran these tests.

@JJAutoCompare

Copy link
Copy Markdown

Tested

Clean 40a14da3716bc28d0c34c86928de987a473192bb on Windows 11 build 26200.9974, Ryzen 7 3800X, Rust 1.100.0 MSVC, Intel Arc A770 driver 32.0.101.9175, DXC/DXIL 1.9.2602.17. Built with cargo test --offline --locked -j 2 -p xcl --lib --test gpu_compute_e2e --no-run --message-format=json-render-diagnostics. Ran eight fresh xcl shaders <synthetic-input> --precompile --pipelines processes with separate Arc cache roots per control.

  • Removing the checked marker or substituting invalid UTF-8 or a foreign identity caused one native size check using the existing blob. The original marker was restored and the blob hash held. The corrected and untouched trusted markers both skipped native creation on the next launch.
  • An orphan checked marker did not bypass the 1 KiB cap when its blob was absent.
  • shaders::pipeline_cap_tests::stale_blob_cannot_bypass_the_offline_pipeline_cap --exact --nocapture --test-threads=1 passed. The stale blob was removed, the offline cap was recorded, and dispatch read back 42.

All eight CLI controls and the libtest passed. Zero failures, ignores, or runtime skips. The pinned identity probe identified Arc PCI 8086:56a0. Each Arc process used the shared mutex separately.

Not tested

A real adapter or driver change, Arc performance, retail smoke and full suite.

AI use

T3 Code / Codex (gpt-6.2-sol) ran the original verification, independently reproduced the cases reported here, and wrote this report.

@throny
throny marked this pull request as ready for review November 27, 2026 14:39
@throny

throny commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator Author

Marked ready for review: the description now has the smoke block on a commit of main next to the base and head ones, and PR description is green. Build and test (Windows, no GPU) is still red in hle::d3d12x::sparse::tests::a_gpu_write_into_a_gpu_view_lands_in_its_cpu_view, the same failure as on the other open PRs against nvidia-dev, not in code this PR touches. Thanks to @andrewDoing and @LocranKing for the independent runs. AI use: Claude Code (Claude Fable 5.2).

@KDenKC

KDenKC commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Test of 40a14da3 on an RTX 5090 (driver 621.24), unmodified, on its base nvidia-dev ecc0bb57. One release binary, and the arms differ only by XCL_PREPARE_VERIFY: A = 1 (every blob created again, as the base does), B unset (.ok-verified blobs trusted). Order A B B A. Each run starts from a fresh copy of one frozen, fully prepared cache, stamped once by a verify pass (2,169 .ok markers), with one exe name, the same recorded title history, and the same frame-based input. 300 s cap.

run compute prep graphics prep entry point in-title compute builds, blob supplied (sum / max) blob absent end
A1 (verify) 11 s 2 s 16.2 s 987 (3,080 ms / 478 ms) 54 0x887a0005 at 158 s
B1 (trust) 4 s 3 s 9.7 s 980 (1,725 ms / 15 ms) 53 0x887a0005 at 113 s
B2 (trust) 4 s 9.7 s 970 (1,801 ms / 18 ms) 0x887a0005 at 114 s
A2 (verify) 13 s 18.5 s 962 (1,904 ms / 108 ms) 0x887a0005 at 133 s
  • The preparation saving is real: trusting the verified blobs cut compute preparation from 11-13 s to 4 s, and the title starts about 7.7 s sooner. Graphics preparation is the same in both arms (142 from disk).
  • No transfer into the title: blob-supplied compute builds in the title are about the same in both arms (962-987), as are blob-absent builds (about 54 in every run). There were 0 refused or stale lines.
  • The world-entry first-create transfer stays open here: all 4 runs lost the device (0x887a0005, no driver events) 95-140 s after the entry point, before the world-load marker, in both arms alike. That looks like the shader-heap limit (NVIDIA: the device is removed when the pipelines in use need more than 512 MB of shader code (0x887a0005) #2403) on this setup, not this PR.
  • cargo test: a_verified_blob_is_trusted_until_it_changes_or_is_refused, a_second_pass_trusts_the_blobs_the_first_verified and split_compute_program_prebuilds_and_caches_chain_pieces passed. gpu_compute_e2e 5 passed, 2 failed: async_compute_pso_registers_real_pso_and_not_standin and split_compute_prefers_the_offline_whole_pipeline fail the same way on the base ecc0bb57, so they're pre-existing.

Not tested: the world-load first create (we didn't reach it); a cold cache; other GPUs.

AI use: Claude Code (Claude Opus 5.5) ran the arms (t12) and wrote this comment; Gemini (Antigravity) wrote the recipe and the safety review.

@thehollowedone

thehollowedone commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Additional marker-key finding on #2951 head 40a14da3: driver_cache::name_for keys a compute blob by DXIL, flags and chain mode, while Pipelines::make_one also builds its root signature from the static samplers. The .ok marker does not include those sampler words. Consequently, a marker checked for one root signature can cause preparation of a different root signature to return before its driver PSO check.

I extended the existing synthetic GPU test with the same DXIL and point versus linear static samplers. After forcing a real cached-blob check for the point-sampler variant, the test confirmed two distinct root signatures, then failed on the unchanged head: trusted rose from 1 to 2 for the linear variant (0 passed, 1 failed, 0 ignored). I did not measure an actual title's first-bind delay; the observed failure is the preparation bypass.

The candidate below versions the marker and records the exact ordered sampler words and comparison flags, so older markers get checked again. With it, the GPU test passed (1/0/0); pipeline_cap_tests passed (4/0/0), and driver_cache passed (7/0/0), with no skips on Windows 11 build 26300, RTX 3080 Ti / 621.35. This is independent of the earlier cold-export finding and candidate: both changes are needed for a marker to mean that this exact PSO was previously checked.

Candidate diff against 40a14da
diff --git a/crates/xcl/src/hle/d3d12x/real.rs b/crates/xcl/src/hle/d3d12x/real.rs
index 6d473a7f..078fb35b 100644
--- a/crates/xcl/src/hle/d3d12x/real.rs
+++ b/crates/xcl/src/hle/d3d12x/real.rs
@@ -5326,9 +5326,16 @@ pub(crate) mod driver_cache {
         PathBuf::from(m)
     }
 
-    /// `{identity} {len} {digest}`: the driver, and the blob's length and `fnv64` digest.
-    fn marker_text(identity: u64, len: u64, digest: u64) -> String {
-        format!("{identity:016x} {len} {digest:016x}\n")
+    /// Driver, blob and exact static-sampler words (which determine the root signature).
+    fn marker_text(identity: u64, len: u64, digest: u64, samplers: &[([u32; 4], bool)]) -> String {
+        use std::fmt::Write as _;
+        let mut text = format!("v2 {identity:016x} {len} {digest:016x} {}", samplers.len());
+        for (words, comparison) in samplers {
+            for word in words { write!(&mut text, " {word:08x}").unwrap(); }
+            write!(&mut text, " {}", u8::from(*comparison)).unwrap();
+        }
+        text.push('\n');
+        text
     }
 
     /// The blob `p` and its marker, gone (the driver refused it).
@@ -5343,8 +5350,8 @@ pub(crate) mod driver_cache {
     /// driver setups has been measured to cost as much as compiling it); it is the check every
     /// launch applied before, so this changes when it runs, not what it proves. The marker records
     /// the bytes' length and digest.
-    pub fn mark_verified(p: &Path, identity: u64, bytes: &[u8]) {
-        write(&marker(p), marker_text(identity, bytes.len() as u64, crate::gpu::shader::fnv64(bytes)).as_bytes());
+    pub fn mark_verified(p: &Path, identity: u64, samplers: &[([u32; 4], bool)], bytes: &[u8]) {
+        write(&marker(p), marker_text(identity, bytes.len() as u64, crate::gpu::shader::fnv64(bytes), samplers).as_bytes());
     }
 
     /// The blob `p` passed the preparation's check for the driver of `identity` (see
@@ -5353,13 +5360,12 @@ pub(crate) mod driver_cache {
     /// file have the marker's digest. The marker covers the adapter and driver version and the
     /// blob's bytes, not a D3D12 runtime or OS update; a blob the driver later refuses in the
     /// title is removed with its marker there, and `XCL_PREPARE_VERIFY=1` checks all again.
-    pub fn verified(p: &Path, identity: u64) -> bool {
+    pub fn verified(p: &Path, identity: u64, samplers: &[([u32; 4], bool)]) -> bool {
         let Ok(text) = std::fs::read_to_string(marker(p)) else { return false };
         let Ok(meta) = std::fs::metadata(p) else { return false };
-        let Some(rest) = text.strip_prefix(&format!("{identity:016x} {} ", meta.len())) else { return false };
-        let Ok(digest) = u64::from_str_radix(rest.trim(), 16) else { return false };
+        if !text.starts_with(&format!("v2 {identity:016x} {} ", meta.len())) { return false; }
         let Ok(bytes) = std::fs::read(p) else { return false };
-        text == marker_text(identity, bytes.len() as u64, digest) && crate::gpu::shader::fnv64(&bytes) == digest
+        text == marker_text(identity, bytes.len() as u64, crate::gpu::shader::fnv64(&bytes), samplers)
     }
 
     /// Keep `blob`, of a compute pipeline's build that took `took`, for the next run
@@ -5439,29 +5445,30 @@ pub(crate) mod driver_cache {
             let dir = std::env::temp_dir().join(format!("xcl-driver-cache-verified-{}", std::process::id()));
             let _directory = Directory(dir.clone());
             let p = dir.join(name(b"program", 0));
-            assert!(!verified(&p, 7), "no blob, no marker");
+            assert!(!verified(&p, 7, &[]), "no blob, no marker");
             assert!(write(&p, &[1, 2, 3]));
-            assert!(!verified(&p, 7), "a blob nobody verified");
-            mark_verified(&p, 7, &[1, 2, 3]);
-            assert!(verified(&p, 7));
-            assert!(!verified(&p, 8), "another adapter or driver");
+            assert!(!verified(&p, 7, &[]), "a blob nobody verified");
+            mark_verified(&p, 7, &[], &[1, 2, 3]);
+            assert!(verified(&p, 7, &[]));
+            assert!(!verified(&p, 7, &[([0; 4], false)]), "another static sampler");
+            assert!(!verified(&p, 8, &[]), "another adapter or driver");
             assert!(write(&p, &[1, 2, 3, 4]));
-            assert!(!verified(&p, 7), "the blob's length is not the marker's");
-            mark_verified(&p, 7, &[1, 2, 3, 4]);
-            assert!(verified(&p, 7));
+            assert!(!verified(&p, 7, &[]), "the blob's length is not the marker's");
+            mark_verified(&p, 7, &[], &[1, 2, 3, 4]);
+            assert!(verified(&p, 7, &[]));
             assert!(write(&p, &[0, 0, 0, 0]));
-            assert!(!verified(&p, 7), "same length, other bytes");
-            mark_verified(&p, 7, &[0, 0, 0, 0]);
-            assert!(verified(&p, 7));
+            assert!(!verified(&p, 7, &[]), "same length, other bytes");
+            mark_verified(&p, 7, &[], &[0, 0, 0, 0]);
+            assert!(verified(&p, 7, &[]));
             assert!(write(&p, &[1, 2, 3, 4]));
-            mark_verified(&p, 7, &[1, 2, 3, 4]);
+            mark_verified(&p, 7, &[], &[1, 2, 3, 4]);
             std::fs::remove_file(&p).unwrap();
-            assert!(!verified(&p, 7), "the blob is missing");
+            assert!(!verified(&p, 7, &[]), "the blob is missing");
             assert!(write(&p, &[1, 2, 3, 4]));
-            assert!(verified(&p, 7));
+            assert!(verified(&p, 7, &[]));
             note(false, Some(&p));
             assert!(!p.exists() && !marker(&p).exists(), "the refused blob's marker goes with it");
-            assert!(!verified(&p, 7));
+            assert!(!verified(&p, 7, &[]));
         }
 
         /// A compute build of 20 ms or more keeps its file (it was 250 ms, as for the others, and
diff --git a/crates/xcl/src/shaders.rs b/crates/xcl/src/shaders.rs
index f7cfe02a..833e9793 100644
--- a/crates/xcl/src/shaders.rs
+++ b/crates/xcl/src/shaders.rs
@@ -1349,11 +1349,11 @@ mod pipeline_cap_tests {
             &[],
         )
         .expect("DXC compile");
-        let compiled = recomp::pso::Compiled { dispatch_chain: None, dxil: dxil.clone(), samplers: vec![] };
+        let compiled = recomp::pso::Compiled { dispatch_chain: None, dxil: dxil.clone(), samplers: vec![([0; 4], false)] };
         let path = scratch.0.join(driver_cache::name_for(&dxil, 0, false));
         pipelines.make(&compiled);
         assert_eq!(pipelines.made.load(Ordering::Relaxed), 1);
-        assert!(driver_cache::verified(&path, identity), "a blob the driver just made is marked");
+        assert!(driver_cache::verified(&path, identity, &compiled.samplers), "a blob the driver just made is marked");
         pipelines.make(&compiled);
         assert_eq!(pipelines.trusted.load(Ordering::Relaxed), 1);
         assert_eq!((pipelines.made.load(Ordering::Relaxed), pipelines.reused.load(Ordering::Relaxed)), (1, 0), "nothing created");
@@ -1361,6 +1361,17 @@ mod pipeline_cap_tests {
         pipelines.make(&compiled);
         assert_eq!((pipelines.made.load(Ordering::Relaxed), pipelines.reused.load(Ordering::Relaxed)), (2, 1), "created from the blob again");
         assert_eq!(pipelines.trusted.load(Ordering::Relaxed), 1);
+
+        // Same DXIL, different static sampler: a separate root signature must reach the driver.
+        pipelines.verify = false;
+        let other = recomp::pso::Compiled {
+            dispatch_chain: None,
+            dxil,
+            samplers: vec![([0, 0, (1 << 20) | (1 << 22) | (2 << 26), 0], false)],
+        };
+        pipelines.make(&other);
+        assert_eq!(pipelines.signatures.lock().unwrap().len(), 2, "distinct root signatures");
+        assert_eq!(pipelines.trusted.load(Ordering::Relaxed), 1, "a marker from another root signature must not skip this PSO");
     }
 
     #[test]
@@ -1614,7 +1625,7 @@ impl Pipelines {
         // size returned; the check every launch applied before): creating its pipeline again is not
         // free (on some driver setups it has been measured to cost as much as a compile)
         if let (Some(path), Some(identity), false) = (path.as_deref(), self.identity, self.verify) {
-            if driver_cache::verified(path, identity) {
+            if driver_cache::verified(path, identity, samplers) {
                 self.trusted.fetch_add(1, Ordering::Relaxed);
                 drop(std::mem::ManuallyDrop::into_inner(desc.pRootSignature));
                 return;
@@ -1682,7 +1693,7 @@ impl Pipelines {
         let r = if let Some(pso) = from_cache {
             self.reused.fetch_add(1, Ordering::Relaxed);
             if let (Some(path), Some(identity), Some(bytes)) = (path.as_deref(), self.identity, &cached) {
-                driver_cache::mark_verified(path, identity, bytes);
+                driver_cache::mark_verified(path, identity, samplers, bytes);
             }
             Ok(pso)
         } else {
@@ -1696,7 +1707,7 @@ impl Pipelines {
                         let written = unsafe { std::slice::from_raw_parts(bytes, len) };
                         if driver_cache::write(path, written) {
                             if let Some(identity) = self.identity {
-                                driver_cache::mark_verified(path, identity, written);
+                                driver_cache::mark_verified(path, identity, samplers, written);
                             }
                         }
                     }

Update: rejected marker after forced verification

A second focused regression covers a marked blob rejected by a forced XCL_PREPARE_VERIFY=1 pass when its read-only file cannot be replaced. On the unchanged head, the invalid blob is rejected (reused = 0) but the existing marker still passes verified on the next ordinary pass: 0 passed, 1 failed, 0 ignored. Removing the marker as soon as cached re-import fails fixes that sequence without deleting a potentially concurrently replaced blob. With this added candidate, the regression passed 1/0/0 and all pipeline_cap_tests passed 5/0/0, no skips, on the same Windows/RTX 3080 Ti setup.

Additional candidate diff against 40a14da
diff --git a/crates/xcl/src/hle/d3d12x/real.rs b/crates/xcl/src/hle/d3d12x/real.rs
index 6d473a7f..17c01aed 100644
--- a/crates/xcl/src/hle/d3d12x/real.rs
+++ b/crates/xcl/src/hle/d3d12x/real.rs
@@ -5337,6 +5337,11 @@ pub(crate) mod driver_cache {
         let _ = std::fs::remove_file(marker(p));
     }
 
+    /// A rejected blob must not retain proof of an earlier successful check.
+    pub fn unmark(p: &Path) {
+        let _ = std::fs::remove_file(marker(p));
+    }
+
     /// The blob `p` (its content is `bytes`) passed the preparation's check for the driver of
     /// `identity`: the driver made a pipeline from it and returned a blob of the same size. A later
     /// pass need not create that pipeline again (creating one from its blob is not free and on some
diff --git a/crates/xcl/src/shaders.rs b/crates/xcl/src/shaders.rs
index f7cfe02a..019b3bd0 100644
--- a/crates/xcl/src/shaders.rs
+++ b/crates/xcl/src/shaders.rs
@@ -1363,6 +1363,49 @@ mod pipeline_cap_tests {
         assert_eq!(pipelines.trusted.load(Ordering::Relaxed), 1);
     }
 
+    #[test]
+    fn a_rejected_marked_blob_is_not_trusted_after_failed_replacement() {
+        use super::{Pipelines, recomp, Ordering};
+        use crate::hle::d3d12x::real::driver_cache;
+        struct Scratch(std::path::PathBuf);
+        impl Drop for Scratch {
+            fn drop(&mut self) { let _ = std::fs::remove_dir_all(&self.0); }
+        }
+        if let Err(reason) = recomp::dxc::location() {
+            recomp::runner::skip_test(&format!("no DXC: {reason}"));
+            return;
+        }
+        let mut pipelines = match Pipelines::new() {
+            Ok(p) => p,
+            Err(reason) => {
+                recomp::runner::skip_test(&format!("no D3D12 device: {reason}"));
+                return;
+            }
+        };
+        let Some(identity) = pipelines.identity else {
+            recomp::runner::skip_test("no adapter identity");
+            return;
+        };
+        let nonce = std::time::SystemTime::now().duration_since(std::time::UNIX_EPOCH).unwrap().as_nanos();
+        let scratch = Scratch(std::env::temp_dir().join(format!("xcl-rejected-marker-{}-{nonce}", std::process::id())));
+        std::fs::create_dir(&scratch.0).unwrap();
+        let dxil = recomp::dxc::compile("RWByteAddressBuffer mem : register(u2); [numthreads(1,1,1)] void main() { mem.Store(0, 7); }", "main", "cs_6_6", &[]).unwrap();
+        let path = scratch.0.join("rejected.pso");
+        let bad = [0u8; 37];
+        std::fs::write(&path, bad).unwrap();
+        driver_cache::mark_verified(&path, identity, &bad);
+        let mut permissions = std::fs::metadata(&path).unwrap().permissions();
+        permissions.set_readonly(true);
+        std::fs::set_permissions(&path, permissions).unwrap();
+        pipelines.verify = true;
+        pipelines.make_with_cache_path(&recomp::pso::Compiled { dispatch_chain: None, dxil, samplers: vec![] }, Some(path.clone()));
+        let mut permissions = std::fs::metadata(&path).unwrap().permissions();
+        permissions.set_readonly(false);
+        std::fs::set_permissions(&path, permissions).unwrap();
+        assert_eq!(pipelines.reused.load(Ordering::Relaxed), 0, "bad blob was rejected");
+        assert!(!driver_cache::verified(&path, identity), "the rejected marker must not be trusted on the next launch");
+    }
+
     #[test]
     fn split_compute_program_prebuilds_and_caches_chain_pieces() {
         use super::{Pipelines, recomp, Ordering};
@@ -1666,6 +1709,9 @@ impl Pipelines {
                 .ok()
                 .filter(|pso| unsafe { pso.GetCachedBlob() }.is_ok_and(|b| unsafe { b.GetBufferSize() } == bytes.len()))
         });
+        if cached.is_some() && from_cache.is_none() {
+            if let Some(path) = path.as_deref() { driver_cache::unmark(path); }
+        }
         // A stale blob is not a usable cache hit. Do not let its presence bypass the offline
         // size cap and start the expensive uncached driver compile.
         if cached.is_some() && from_cache.is_none() && over_cap {

These two candidate diffs address separate marker invariants and can be adapted together with the earlier cold-export fix. I did not run the full workspace suite or paired title smoke on either uncommitted candidate. AI use: Codex (GPT-6.2 Sol) traced the paths, wrote and ran the synthetic regressions and candidates; Codex (GPT-6.2 Astra) independently reviewed the marker invariants.

@kole07139

kole07139 commented Nov 28, 2026 •

Copy link
Copy Markdown

merge-check
base: 54225f5 (nvidia-dev)
head: 40a14da
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> the library test binary stops with exit code 0x7C10003 after a_refused_gpu_upload_segment_becomes_custom (the fail-stop throny reported on #3041; the same on the base). Up to there: 1385 passed, 4 failed. Other binaries: 130 passed, 2 failed, 20 ignored. Library rerun with --skip a_refused_gpu_upload_segment_becomes_custom: 1773 passed, 6 failed, 28 ignored, 27 SKIPPED lines (base: 1771 passed, the same 6 failed, 28 ignored); that test alone: 1 passed. failing: the 6 library tests (placed_title_textures_share_vram_and_preserve_pixels, 3 stream_recheck_*, d32s8_targets_take_their_own_size_of_video_memory, gpu_retire_queue_holds_heap_until_blocked_queue_passes_mark) fail on the base too. gpu_compute_e2e::a_preparation_worker_also_builds_a_split_programs_whole_form fails on the merge only (finding 1). e2e::test_title_runs_and_game_folder_is_untouched failed once in the full run ([FAIL] … a texture in title memory (XG layout, #44) follows CPU writes: subresource 2 row 0 differs), then passed 3 of 3 alone on the merge; on the base it passed in the full run and 3 of 3 alone. This PR does not touch that path, so I count it as intermittent, not as this PR's.
review:

  1. Semantic conflict with nvidia-dev: gpu_compute_e2e::a_preparation_worker_also_builds_a_split_programs_whole_form came in with Shaders: a title's preparation workers build split programs' whole forms #2794 after this PR's base ecc0bb57. It counts every file in driver/ and now finds the .ok markers too: left: 10, right: 5. It fails 3 of 3 on the merge and passes on the base. With the listing limited to .pso files, as this PR already does for two other e2e tests, it passes 2 of 2 (a scratch edit, not pushed anywhere). A test-only change, but it needs a rebase onto current nvidia-dev.
  2. The static-sampler point (thehollowedone, Shaders: the preparation trusts the driver blobs it checked before #2951 (comment)): the marker does not include the samplers. On nvidia-dev the blob's own name does not include them either (name_for: DXIL, flags, chain). Per NVIDIA: cached pipeline blobs bake static-sampler slots; a later run with a different sampler order samples the wrong samplers #3044, NVIDIA accepts a blob made with other samplers without an error, so the base's check would pass the same blob. My reading is that on nvidia-dev this PR does not make that case worse. That is reasoned, not measured. main names compute blobs by their samplers (ba44b52c, name_for_root), so this matters when nvidia-dev is merged into main: the marker should follow that name.
  3. A blob written just after a compile is marked without being imported once (thehollowedone's first point, Shaders: the preparation trusts the driver blobs it checked before #2951 (comment)). It comes from GetCachedBlob of a pipeline made from the same description, and a blob the title's driver refuses later is removed with its marker (note(false) → remove). I see this as minor.
  4. The trusted early return holds nothing that needs releasing: it comes before the worker slot and the Claim, and it drops the root signature. verified reads and hashes the whole blob, which the base's load read anyway, so the only extra I/O is the small marker file.
    performance: reasoned, not measured. It is on by default. It removes pipeline creations from the preparation and adds nothing per frame. It adds one small .ok file per blob. I made no title run on this machine.
    verdict: not yet: a_preparation_worker_also_builds_a_split_programs_whole_form fails on the merge with current nvidia-dev (finding 1). It needs a rebase with that test counting only .pso files.
    hardware / tool and model: NVIDIA GeForce RTX 3070 8 GB (driver 617.42, wave32), Intel i9-9900K, 32 GB RAM, Windows 11 Pro N 26200, rustc 1.99.0, DXC 1.8.2502.11, debug. Claude Code (Claude Opus 5.5) ran the merge, build and tests, and wrote this check.

@KDenKC

KDenKC commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

@throny a whole-suite run of your head on an RTX 3090 (Ampere), against its own base on the same machine: no failure that the base doesn't have, and your two new tests pass.

Tested: 40a14da3 and its base nvidia-dev ecc0bb57.

  • RTX 3090 24 GB, NVIDIA 621.24, i7-10700T x8 (a VM with the GPU passed through, 9.9 GB RAM), Windows 11 26H2 (26300.9974), Rust 1.99.1 (stable-x86_64-pc-windows-msvc), debug. No XCL_* variable set.
  • cargo test --workspace --no-fail-fast -- --test-threads=4 --skip uma_driver::tests::a_refused_gpu_upload_segment_becomes_custom --skip uma_driver::tests::mixed_window_keeps_its_bytes_and_the_gpu_sees_every_segment --skip uma_driver::tests::failed_restore_stops_before_importing_an_unbacked_window
    • The three skipped remake tests end the lib test binary on driver 621.24 (exit 0x7c10003), on this card and on our RTX 5090, at every commit we ran. The skip lets the rest of the lib report.
base ecc0bb57 head 40a14da3
all binaries 1,820 passed, 9 failed, 48 ignored 1,820 passed, 11 failed, 48 ignored
a_verified_blob_is_trusted_until_it_changes_or_is_refused – ok
a_second_pass_trusts_the_blobs_the_first_verified – ok
offline_compute_pipeline_is_reused_by_a_second_process ok ok
offline_split_compute_pipeline_is_reused_by_a_second_process ok ok
split_compute_prefers_the_offline_whole_pipeline FAILED (gpu_compute_e2e.rs:153) FAILED (same line)
  • The 2 extra failures on the head are title_textures::tests::stream_recheck_keeps_the_whole_upload_baseline_over_partial_uploads and …stream_recheck_partial_upload_without_an_entry_queues_a_whole_upload.
    • Both fail with PoisonError, a lock that placed_title_textures_share_vram_and_preserve_pixels leaves when it fails on 0x8007000E earlier in the same process. That one fails on both trees.
    • Run alone, each passes on this machine. Whether they fail in the full run differs between runs. This PR doesn't touch them.
  • The other failures, the same on both trees:
    • async_compute_pso_registers_real_pso_and_not_standin;
    • console_ms_in_as_slot_and_ms_with_as_are_refused_cleanly;
    • two texture_upload tests (attempt to multiply with overflow, texture_upload.rs:1002);
    • e2e test_title_runs_and_game_folder_is_untouched ("Invalid bitcode signature");
    • two_pass_driver_cache_reuses_both_passes_and_recovers_corrupt_blobs.
    • On nvidia-dev 54225f58 on this machine, the texture_upload, mesh-stream, async-PSO and two-pass ones pass. So they belong to the older base, not to this PR.
  • SKIPPED: 30, the same on both (22 no wave64).

Not tested:

  • A launch preparation or title run with the markers: their speed-up and a blob the driver refuses later in the title.
  • The rebased head on current nvidia-dev (the PR is on ecc0bb57).
  • AMD and Intel.

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

@Prime1997
Prime1997 changed the base branch from nvidia-dev to main November 28, 2026 20:13
@thehollowedone

Copy link
Copy Markdown
Contributor

Current-base update for #2951 head 40a14da3: the PR now targets main and conflicts with it. Since the NVIDIA branch merge, main has a persistent warm_blobs receipt. The preparation skips a previously checked blob only when its filename, root layout (including ordered static sampler words and comparison flags), and blob contents match. Its cache naming also includes the sampler-dependent root signature.

I built current main beeb81be and ran cargo test --offline --locked -j 4 -p xcl --lib static_sampler_root_signatures_have_distinct_compatible_names -- --test-threads=1 and the same command with warm_receipt_matches_only_the_validated_blob_and_layout: 1 passed / 0 failed / 0 ignored each, no skips. These are focused identity tests, not a performance or full-suite result.

This addresses the sampler-key bypass in my earlier report on the old PR head. Before resolving the conflict, I suggest comparing the remaining behavior with main's receipt path and keeping only a distinct, tested improvement, if one remains. Carrying the old .ok marker as-is would add a second verification mechanism.

AI use: Codex (GPT-6.2 Sol) checked the current source and ran the focused tests; Codex (GPT-6.2 Astra) independently traced the cache identity.

@throny

throny commented Nov 28, 2026

Copy link
Copy Markdown
Collaborator Author

Closing as superseded, as @thehollowedone suggested. Since the merge of nvidia-dev, main has its own receipt for checked driver blobs, and it is the stricter one: its stamp includes the root layout with the static samplers, where this PR's marker only had the driver, the blob length and the blob bytes, so a sampler or layout change with an unchanged blob would have been skipped here and is re-checked there. main also has what this PR lacked (one checksummed receipt merged across workers). The only thing here that main does not have is a switch to force the full check (XCL_PREPARE_VERIFY=1); if someone wants that on main it is a few lines for a separate PR.

AI use: Claude Code (Claude Fable 5.2); the comparison was read by Claude Sonnet 5.5.

@throny throny closed this Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants