Repository navigation
Conversation
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>
|
On
All seven 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. |
|
I checked whether marker-bypass savings shifted into the first native consumer PSO creation, using head
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. |
|
@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: AI use: Claude Code (Claude Fable 5.2). |
|
Independent back-to-back verification on RTX 3060 Ti (8 GB) + Ryzen 5 5500 (6C/12T) ( Setup
Two consecutive 90 s runs on the same cache folder
Not tested: driver update invalidation / tampered-blob fallback test on this machine, AMD/Intel adapters. |
luckyteagirl
left a comment
There was a problem hiding this comment.
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.
|
amd-win check of
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. |
|
Following the fresh-export review point, I tried the smallest local resolution on #2951 head On Windows 11 build 26300, RTX 3080 Ti (621.35), Ryzen 7 9800X3D, Rust 1.99.1 MSVC, DXC 1.8.2502.11:
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. |
|
Tested Clean
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 ( |
|
Marked ready for review: the description now has the smoke block on a commit of |
|
Test of
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. |
|
Additional marker-key finding on #2951 head 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: 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); Candidate diff against 40a14dadiff --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 verificationA second focused regression covers a marked blob rejected by a forced Additional candidate diff against 40a14dadiff --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. |
|
merge-check
|
|
@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:
Not tested:
AI use: an agent swarm: Claude Fable 5.2, Claude Opus 5.5, GPT-6.2-Sol and Gemini 4 Neon. |
|
Current-base update for #2951 head I built current 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 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. |
|
Closing as superseded, as @thehollowedone suggested. Since the merge of AI use: Claude Code (Claude Fable 5.2); the comparison was read by Claude Sonnet 5.5. |
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>.okbeside 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.verifiedcompares all three with the file as it is now;removedeletes 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=1applies the check to every blob again.a_verified_blob_is_trusted_until_it_changes_or_is_refused(other driver, changed length, same-length overwrite, missing blob, refusal), GPU testa_second_pass_trusts_the_blobs_the_first_verified, andgpu_compute_e2e::offline_compute_pipeline_is_reused_by_a_second_processextended across processes (trusted; a blob overwritten with zeros of the same length is rebuilt and trusted again). Two existing e2e tests list only.psofiles and run their reuse assertions withXCL_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
cargo test --workspace --no-fail-fast -- --test-threads=4on 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 baseecc0bb57on this machine, each rerun alone with and without the change: listed in Nvidia dev #2572 (comment). None is in code this PR touches exceptgpu_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).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:Not tested
XCL_PREPARE_VERIFY=1does.AI use
🤖 Generated with Claude Code