Repository navigation
Conversation
|
On exact #2906 head I added a synthetic two-PSO test using a temporary cache and the NVIDIA D3D12 adapter. It warms distinct A and B, replaces only B's file with nonempty invalid bytes, then creates a fresh The small candidate below restores per-entry native validation while retaining this PR's worker scheduling and LPT changes. With it, B was repaired and Restoring validation removes the reported 2.27 s warm-cache shortcut, so that timing needs a new measurement if this approach is adopted. A future skip path would need validity established per entry for the current adapter/driver, rather than inferred from one other blob. I have not run the full workspace suite or paired retail smoke for this local candidate. Candidate correction and regression diffdiff --git a/crates/xcl/src/shaders.rs b/crates/xcl/src/shaders.rs
index d543ece6..58fe1013 100644
--- a/crates/xcl/src/shaders.rs
+++ b/crates/xcl/src/shaders.rs
@@ -1254,9 +1254,6 @@ struct Pipelines {
most: usize,
/// DXIL bytes a pipeline is still handed to the driver (`XCL_PIPELINE_MAX_KB`, 8 MiB; 0: off)
max_dxil: usize,
- /// True once at least one cached `.pso` blob passed D3D12 validation on this device; remaining
- /// non-empty `.pso` files in the same driver cache can then be skipped without D3D12 calls.
- cache_verified: std::sync::atomic::AtomicBool,
#[cfg(test)]
cache_dir: Option<PathBuf>,
}
@@ -1443,6 +1440,59 @@ mod pipeline_cap_tests {
assert_eq!(pipelines.reused.load(Ordering::Relaxed), reused_before + 1);
}
}
+
+ #[test]
+ fn a_valid_canary_does_not_hide_a_second_stale_compute_blob() {
+ use super::{Pipelines, recomp, Ordering};
+ use crate::hle::d3d12x::real::driver_cache;
+ use std::time::{SystemTime, UNIX_EPOCH};
+
+ 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 warm = match Pipelines::for_adapter("NVIDIA") {
+ Ok(p) => p,
+ Err(reason) => {
+ recomp::runner::skip_test(&format!("no NVIDIA D3D12 device: {reason}"));
+ return;
+ }
+ };
+ let nonce = SystemTime::now().duration_since(UNIX_EPOCH).unwrap().as_nanos();
+ let scratch = Scratch(std::env::temp_dir().join(format!("xcl-two-pso-{nonce}")));
+ std::fs::create_dir(&scratch.0).expect("scratch cache directory");
+ warm.cache_dir = Some(scratch.0.clone());
+
+ let compile = |value| {
+ let hlsl = format!("RWByteAddressBuffer mem : register(u2); [numthreads(1,1,1)] void main() {{ mem.Store(0, {value}); }}");
+ let dxil = recomp::dxc::compile(&hlsl, "main", "cs_6_6", &[]).expect("DXC compile");
+ recomp::pso::Compiled { dispatch_chain: None, dxil, samplers: vec![] }
+ };
+ let (a, b) = (compile(7), compile(11));
+ assert_ne!(a.dxil, b.dxil);
+ let b_path = scratch.0.join(driver_cache::name_for(&b.dxil, 0, false));
+ warm.make(&a);
+ warm.make(&b);
+ assert!(b_path.is_file());
+ std::fs::write(&b_path, b"damaged nonempty driver blob").expect("damage B");
+
+ let mut fresh = Pipelines::for_adapter("NVIDIA").expect("same NVIDIA device");
+ fresh.cache_dir = Some(scratch.0.clone());
+ fresh.make(&a); // valid canary
+ assert_eq!(fresh.reused.load(Ordering::Relaxed), 1);
+ fresh.make(&b); // corrupt entry must be rebuilt, not reported as reused
+ let b_bytes = std::fs::read(&b_path).expect("B cache file");
+ let reused = fresh.reused.load(Ordering::Relaxed);
+ let made = fresh.made.load(Ordering::Relaxed);
+ println!("second blob still damaged: {}, made={made}, reused={reused}", b_bytes == b"damaged nonempty driver blob");
+ assert_ne!(b_bytes, b"damaged nonempty driver blob");
+ assert_eq!(reused, 1);
+ assert_eq!(made, 2);
+ }
}
// D3D12 devices and root signatures are free-threaded
@@ -1480,7 +1530,6 @@ impl Pipelines {
running: (Mutex::new(0), std::sync::Condvar::new()),
most,
max_dxil,
- cache_verified: std::sync::atomic::AtomicBool::new(false),
#[cfg(test)]
cache_dir: None,
})
@@ -1556,7 +1605,6 @@ impl Pipelines {
};
use crate::hle::d3d12x::real::driver_cache;
let over_cap = self.max_dxil != 0 && dxil.len() > self.max_dxil;
- let has_override = path_override.is_some();
let path = path_override.or_else(|| {
#[cfg(test)]
if let Some(dir) = self.cache_dir.as_deref() {
@@ -1564,19 +1612,6 @@ impl Pipelines {
}
driver_cache::path_for(dxil, desc.Flags.0, chained)
});
- // Fast path for resumed / warm runs: once one canary `.pso` blob has passed D3D12
- // validation on this device, trust other existing non-empty in-cap `.pso` files without
- // paying `CreateComputePipelineState` + `GetCachedBlob` on thousands of already-cached blobs.
- if !over_cap && !has_override && self.cache_verified.load(Ordering::Acquire) {
- if let Some(p) = path.as_deref() {
- if std::fs::metadata(p).is_ok_and(|m| m.len() > 0) {
- self.reused.fetch_add(1, Ordering::Relaxed);
- self.made.fetch_add(1, Ordering::Relaxed);
- drop(std::mem::ManuallyDrop::into_inner(desc.pRootSignature));
- return;
- }
- }
- }
let mut cached = path.as_deref().and_then(driver_cache::load);
// over the cap and no blob from an earlier run: the driver's compile of this one takes
// tens of minutes and gigabytes; the pass finishes without it, and the runtime builds it
@@ -1636,7 +1671,6 @@ impl Pipelines {
return;
}
let r = if let Some(pso) = from_cache {
- self.cache_verified.store(true, Ordering::Release);
self.reused.fetch_add(1, Ordering::Relaxed);
Ok(pso)
} else {AI use: Codex (GPT-6.2 Sol) traced the cache path, wrote and ran the regression and candidate, and drafted this report. |
…m, pure std) Upstream single-commit 7575f67 on 8b957be: 1 file shaders.rs +38/-2. Helper + 2 direct_sweep call-site swaps + regression test, hunk bodies identical (only line offset from linux-only helpers). xcl-dev#2909/xcl-dev#2910 SKIP (hle/d3d12x/real.rs, Windows-only); xcl-dev#2906 SKIP (dev-stack tip, same shape as xcl-dev#2886); xcl-dev#2889 re-pinned f334cc9 (force-push, still SKIP).
5224220 to
023395a
Compare
|
Good catch — thank you for the concrete repro. Removed the Added |
|
The new dynamic worker count has the same byte/MiB mismatch as the older worker selection tracked by #2705. On I compiled the exact helper from this head on Windows and fed it synthetic commit snapshots using the caller's units. With 16 logical CPUs, 2 pipeline threads per worker and 3 GiB free, the current call selects 4 workers versus 2 after converting the bytes to MiB. At 512 MiB free it selects 4 versus 1. No system memory pressure was induced. A shared bytes-to-MiB conversion at both host-commit call sites, plus a test starting from bytes, would cover this path without changing the explicit The clean head also passed the |
|
Tested: Clean Not tested: Retail performance, automatic worker sizing under pressure, startup graphics preparation, and the full suite. AI use: T3 Code / Codex ( |
|
On head I built the unmodified head with
The expected driver blob was absent in both capped runs. With the default cap and a fresh cache, the standalone pipeline command created one native pipeline and its driver blob for the same pack. The worker currently acknowledges each input line after calling All inputs were synthetic. The test covers the startup preparation gate. Retail title behavior was outside this run. AI use: OpenAI Codex (GPT-6.2 Astra) generated the synthetic pack, ran the controls, inspected the source, and drafted this report. |
|
Follow-up to my capped-job report: a local candidate keeps an acknowledgement for scheduling progress but separately makes a worker exit unsuccessfully if a translation, size-cap or native-pipeline failure occurred. The parent checks acknowledged job count and the exit status of workers that actually started. In synthetic subprocess checks:
The injection is test-only and not part of the candidate. These runs validate the scheduling and failure gates, not GTA VI loading time or retail behavior. The distinction between requested workers and successfully started workers matters: a failed spawn need not fail an otherwise fully completed job set. AI use: OpenAI Codex with GPT-6.2 Astra designed and ran the synthetic checks and reviewed the candidate; Codex coordinated and prepared this report. |
|
I checked an interaction with #2931 using a local integration of the two PRs. Two overlapping test/scheduling hunks needed manual resolution; this is not a test of either standalone head. Trace-only instrumentation counted shared-helper starts and fallback-helper starts. With the same four synthetic split shaders and separate fresh caches:
Both runs completed successfully and produced the same set of distinct PSO filenames; the worker acknowledged all four jobs. Source review indicates that the shared pool currently starts inside This is synthetic integration evidence, not a measured GTA VI thread count or loading-time regression. AI use: OpenAI Codex with GPT-6.2 Astra integrated and ran the checks; Codex coordinated and prepared this report. |
|
A scope correction to my #2931 interaction test above: the four synthetic compute records split into 16 pieces with On unmodified #2906 head With four windows and a forced limit of 16, the same four records again split into 16 pieces. Through No retail title was used. These tests varied a synthetic split threshold and did not measure loading time or repeat the helper-thread count at four windows. AI use: OpenAI Codex (GPT-6.2 Astra) ran the comparisons and prepared this follow-up. |
|
Another startup-discovery case on head Three native runs used the repository synthetic title, the same valid compute bytes, fresh separate caches and data roots, and
The two successful builds produced the same PSO key. The finding concerns prewarming only; the test does not establish whether retail packs contain such names or whether gameplay stalls. Checking the separator before interpreting a stage prefix would protect this example; inspecting the container stage remains the reliable choice for arbitrary names. AI use: OpenAI Codex with GPT-6.2 Astra constructed and ran the synthetic controls; Codex coordinated and prepared this follow-up. |
|
Follow-up to the The pack tests passed 5/5, covering all eight recognized tokens, namespaced names and ASCII case. Four synthetic title launches with worker preparation exited 0: This fixes accidental prefix collisions, not every possible name/payload disagreement. For example, a compute payload explicitly named AI use: OpenAI Codex with GPT-6.2 Astra wrote, tested and reviewed the local candidate; Codex coordinated and prepared this follow-up. |
|
I checked the loose-input case listed under Not tested on unmodified head With The native driver blobs were not byte-identical across runs, so the comparison is of the cache filename and successful behavior, not blob bytes. No retail title or GTA VI loading time was tested. AI use: OpenAI Codex with GPT-6.2 Astra ran the synthetic checks; Codex coordinated and prepared this follow-up. |
|
Another synthetic CLI summary case on head With fresh caches and one valid synthetic compute blob, This finding concerns the summary, not missing requested-stage output or demonstrated GTA VI behavior. The worker-job duplicate test in the discussion covers a different path. AI use: OpenAI Codex with GPT-6.2 Astra ran the synthetic checks; Codex coordinated and prepared this follow-up. |
|
Paired measurements of PR On this 6-core CPU, PR 1. Warm startup preparation (
|
| tree | worker configuration | compute pipeline prep time | total prep ready time |
|---|---|---|---|
nvidia-dev (ecc0bb57, run 1) |
8 worker processes | 24 s | 32.8 s |
nvidia-dev (ecc0bb57, run 2) |
8 worker processes | 22 s | 31.1 s |
PR #2906 (023395ae + ecc0bb57) |
3 worker processes (2 threads/worker, 698 unique pipelines) |
50.8 s | 59.4 s |
Log progression on #2906 warm run:
10.1 s:26503 of 26503 records translated(note5.0 sonly reached4061/26503vs20832/26503onnvidia-dev)15 s->24/698,20 s->54/698,25 s->83/698,30 s->116/698,35 s->170/698,40 s->304/698,45 s->698/698,59.4 s->done in 50.8 s.
Withcores = 12logical (6physical),compute_worker_count(12, free_mb, 2)spawns only 3 workers (6concurrent threads total), which spent ~35 s chewing through the heaviest LPT-first cached blobs before clearing the remaining entries.
2. Cold compute pipeline precompilation (xcl shaders shaders.rpf --precompile --only cs --pipelines --used-only)
Isolated XCL_DXIL_CACHE containing translated/ from the snapshot, no driver/ blobs, and the first 120 lines of used-pipelines.txt / used-shaders.txt (XCL_DEVICE_TYPE=lockhart, XCL_DIRECT_DXIL=1):
| tree | wall time | reported time | summary output |
|---|---|---|---|
nvidia-dev (ecc0bb57) |
22.21 s | 22.0 s | compiled 92, already cached 0, pipelines made 126 (12 split, 49 pieces) |
PR #2906 (023395ae + ecc0bb57) |
47.2 s | 47.0 s | compiled 90, already cached 614, pipelines made 126 (12 split, 49 pieces) |
Two anomalies visible in #2906's cold output:
- Between
5600/26503 (4 s)and5800/26503 (15 s)there was an 11 s stall duringprecompile, and#2906reportedalready cached 614(vs0onnvidia-dev). - Overall wall time was 2.14× slower (
47.2 svs22.21 s) thannvidia-dev's 8-worker path on this 6C/12T CPU.
xcl-smoke v1
commit: 023395ae4cec59763b37334c2e6b51058643794e
gpu: NVIDIA GeForce RTX 3060 Ti
title: 9cc6a39e
seconds: 90
exit: 0x0
frames shown: 2410 (PresentX 2410)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 13915 MB
Not tested: 8-core/16-core CPUs, XCL_PIPELINE_THREADS overrides, full 26k-shader cold run.
|
The FSPX admission change from #2822 needs one additional caller when combined with #2906. Otherwise packed FSPX compute shaders can reach guest entry but miss offline pipeline warming when multiple preparation workers are enabled. This concerns the FSPX inputs reported in #2057 and startup preparation tracked in #2088. I tested #2906 head
The bulk-only port compiled the shader in both runs, so its successful guest exit did not show whether pipeline warming completed. The multi-worker collector separately called These are local integration results using the repository’s synthetic guest and generated shader bytes. No GTA files, retail timing, or performance improvement were measured. AI use: OpenAI Codex with GPT-6.2 Astra adapted the existing admission change, built and tested the local variants, and independently reviewed the result; Codex coordinated and prepared this report. |
|
Cold startup-preparation timing of #2906 on an Ampere card, head Setup
Results (times from the log's preparation lines)
So on this machine the whole preparation took 2.1× less time, and the compute phase 2.2×. Memory note, for the worker count. With Edit: the head's default worker count runs this machine out of RAM. A cold run of the head with Not tested
AI use |
|
Desk check from reading the diff at AI use: Claude Code (Claude Sonnet 5.5). |
023395a to
d90683e
Compare
|
@andrewDoing Thanks for the thorough edge-case testing — all three standalone findings are fixed in
Re-ran |
d90683e to
2ff7cb8
Compare
|
@Anon64 @oni-swr Both issues are fixed in
Re-ran |
|
The new incomplete-translation handling in I ran the repository's synthetic guest on Windows 11, Ryzen 7 5700X3D / RTX 5070. Each row used a loose mesh DXBC with its PSV0 metadata, a fresh cache for the cold run, the same cache for the warm run, and fresh guest data for both. Settings included
For the mixed input the parent reported two compilations and one skip on the cold run, then two cache hits and one skip. Its two keys ( These were startup correctness controls on loose inputs. No retail loading-time or worker-balancing measurement was made. AI assistance: OpenAI Codex (GPT-6) ran the matched controls and drafted this report. Tested candidate for Apply-checked patch with regression test--- a/crates/xcl/src/shaders.rs
+++ b/crates/xcl/src/shaders.rs
@@ -2537,10 +2537,13 @@
}
if crate::gpu::dxil::kernel::enabled() && sh.stage == "MS" {
match recomp::pso::console_mesh_in(&blob, split, windows) {
- Ok(_) => { compiled.fetch_add(1, Ordering::Relaxed); }
- Err(e) if e.starts_with("incomplete translation") => {
- if startup.is_some() { skipped.fetch_add(1, Ordering::Relaxed); }
+ Ok(_) => {
+ compiled.fetch_add(1, Ordering::Relaxed);
+ record_done();
+ continue;
}
+ // Another program in this container can still translate.
+ Err(e) if e.starts_with("incomplete translation") => {}
Err(e) => {
if startup.is_some() {
let mut g = errors.lock().unwrap();
@@ -2549,10 +2552,10 @@
}
failed.fetch_add(1, Ordering::Relaxed);
}
+ record_done();
+ continue;
}
}
- record_done();
- continue;
}
if direct_gfx {
let direct_stage = match sh.stage.as_str() {
--- a/crates/xcl/tests/gpu_two_pass_cache_e2e.rs
+++ b/crates/xcl/tests/gpu_two_pass_cache_e2e.rs
@@ -203,6 +203,39 @@
list.iter().flat_map(|(n, e, f, l)| encode(n, e, f, *l).unwrap_or_else(|x| panic!("{n}: {x}"))).collect()
}
+struct TempDir(PathBuf);
+impl Drop for TempDir {
+ fn drop(&mut self) {
+ let _ = fs::remove_dir_all(&self.0);
+ }
+}
+
+#[test]
+fn mixed_mesh_preparation_keeps_supported_variants() {
+ let nonce = SystemTime::now().duration_since(UNIX_EPOCH).unwrap().as_nanos();
+ let root = TempDir(std::env::temp_dir().join(format!("xcl-mixed-ms-{}-{nonce}", std::process::id())));
+ fs::create_dir(&root.0).unwrap();
+ let input = root.0.join("input");
+ fs::create_dir(&input).unwrap();
+ let file = input.join("mixed.dxbc");
+ let code = [0x01, 0x03, 0x80, 0xbe, 0x01, 0x0b, 0x00, 0x06, 0x00, 0x00, 0x81, 0xbf];
+ let mut incomplete = code;
+ incomplete[..4].copy_from_slice(&0x7e00_1d00u32.to_le_bytes()); // v_cvt_off_f32_i4
+ let stage = [(7, 13)];
+ let dxil = dxil_part(13, &[fssm(&incomplete, &stage), fssm(&code, &stage)]);
+ let psv = mesh_psv(3, 1, [128, 1, 1]);
+ fs::write(&file, container(&[(b"SFI0", &[0; 8]), (b"HASH", &[0; 20]), (b"DXIL", &dxil), (b"PSV0", &psv), (b"PRIV", &[7; 16])])).unwrap();
+ for (compiled, cached) in [(2, 0), (0, 2)] {
+ let output = Command::new(env!("CARGO_BIN_EXE_xcl"))
+ .arg("shaders").arg(&input).args(["--precompile", "--only", "MS", "--split", "1"])
+ .env("XCL_DXIL_CACHE", root.0.join("cache")).env("XCL_DIRECT_DXIL", "all")
+ .output().unwrap();
+ let text = String::from_utf8_lossy(&output.stdout);
+ assert!(output.status.success(), "{text}");
+ assert!(text.contains(&format!("compiled {compiled}, already cached {cached}, errors 0")), "{text}");
+ }
+}
+
fn synthetic_ms_container(alt: bool) -> Vec<u8> {
let osg1 = sig_part(&[("SV_Position", 1, 3, 0, 0xF), ("TEXCOORD", 0, 3, 1, 0xF)]);
let psv0 = mesh_psv(128, 128, [128, 1, 1]);
@@ -550,12 +583,6 @@
if let Ok(case) = std::env::var(CHILD_CASE) {
return run_case(&case);
}
- struct TempDir(PathBuf);
- impl Drop for TempDir {
- fn drop(&mut self) {
- let _ = fs::remove_dir_all(&self.0);
- }
- }
let nonce = SystemTime::now().duration_since(UNIX_EPOCH).unwrap().as_nanos();
let root = TempDir(std::env::temp_dir().join(format!("xcl-two-pass-{}-{nonce}", std::process::id())));
let exe = std::env::current_exe().unwrap(); |
Speeds up startup shader preparation on NVIDIA GPUs by removing static-slice tail stalls, pack-RAM duplication across workers, and under-utilized pipeline concurrency: - Replaces static worker slicing with dynamic LPT (largest-first) work-stealing over a single shared --compute-worker job stream; workers read individual records via seek_read (0 MB pack RAM per worker) and propagate translation, refusal, and XCL_PIPELINE_MAX_KB size-cap failures back to launch preparation. - Tunes default worker pipeline concurrency to XCL_PIPELINE_THREADS=2 and adds compute_worker_count converting system_commit() bytes to MiB, budgeting 1 GiB + 2.5 GiB/thread per worker (6 GiB at 2 threads/worker) plus a 4 GiB OS/parent reserve, and capping the automatic default at 4 workers (override with XCL_PREPARE_WORKERS) so high-core machines do not OOM (measured 1.88x-2.2x faster cold CS PSO prep). - Requires an explicit _ separator and non-empty suffix in pack::name_stage so non-canonical names like Asset01 fall through to container inspection instead of colliding with AS. - Keeps per-entry D3D12 validation for cached .pso blobs so damaged or stale cache entries are always detected and rebuilt. - Sorts precompile() and graphics_in_workers() largest-first, deduplicates identical blobs in precompile() after --only stage filtering, lowers dxc::set_memory_reserve(2) during prepare_for_launch (restored via RAII before title start), and routes VS/PS/MS through console_to_dxil_in / console_mesh_in when XCL_DIRECT_DXIL is enabled (treating incomplete translations as skipped, matching the per-program loop). - Adds unit tests for compute job parsing, worker count sizing, stage-prefix parsing, and per-entry cache validation. Assisted-by: Antigravity (Gemini 4 Neon) # Conflicts: # crates/xcl/src/shaders.rs
2ff7cb8 to
6612fa0
Compare
|
@andrewDoing Thanks for the catch and clean patch — folded into
|
|
Confirmed the adopted fix on exact
The mixed arm compiled two artifacts and skipped one unsupported variant cold, then reported two cache hits and one skip warm, with zero errors both times. Both mixed artifacts ( AI assistance: OpenAI Codex built the exact revision, ran the controls, verified the artifact contents and drafted this report. |
|
Closing this PR as it'll be redundant with the new shader compilers which have been announced. |
Speeds up startup shader preparation on NVIDIA GPUs by removing static-slice tail stalls, pack-RAM duplication across workers, and under-utilized pipeline concurrency. Rebased onto
main(beeb81be) after thenvidia-devmerge.What is in it
crates/xcl/src/gpu/pack.rs:Pack::seek_read(random-access single-record read viaFileExt::seek_read) andPack::record_lenso workers read individual records on demand without loading the entire shader pack into memory.pack::name_stageto require an explicit_separator and non-empty suffix (<STAGE>_<nonempty>) so non-canonical names likeAsset01fall through to container inspection rather than colliding withAS.crates/xcl/src/gpu/recomp/dxc.rs: addsset_memory_reserve(gb)soprepare_for_launchcan temporarily lower the DXC commit reserve (restored via RAII before title start).crates/xcl/src/shaders.rs:ComputeCoveragemap is active) with dynamic LPT (largest-first) work-stealing over a single shared--compute-workerjob stream (0 MBpack RAM per worker), usingPipelines::prepare_compiled_compute+warm_blobsand propagating translation, refusal, andXCL_PIPELINE_MAX_KBsize-cap failures back to launch preparation.XCL_PIPELINE_THREADS=2and addscompute_worker_countconvertingsystem_commit()bytes to MiB, reserving 4 GiB for the OS/parent, budgeting1 GiB + 2.5 GiB * per_workerper worker (6 GiBat 2 threads/worker), and capping the automatic default at 4 workers (override withXCL_PREPARE_WORKERS) so high-core machines do not exhaust RAM/commit.precompile()andgraphics_in_workers()largest-first (LPT), deduplicates identical blobs inprecompile()after--onlystage filtering, lowersdxc::set_memory_reserve(2)duringprepare_for_launch(restored to 6 GB via RAII before title start), and routesMSthroughconsole_mesh_inwhenXCL_DIRECT_DXILis enabled — falling through to the per-program loop onincomplete translationso mixed containers still prepare supported variants.parse_compute_job_accepts_three_numbers_and_rejects_malformed,compute_worker_count_saturates_cpu_within_commit_budget,a_valid_canary_does_not_hide_a_second_stale_compute_blob, and stage-prefix edge-case assertions ingpu::pack::tests.crates/xcl/tests/gpu_two_pass_cache_e2e.rs: addsmixed_mesh_preparation_keeps_supported_variantsregression test for mixed incomplete + supported mesh containers.Tested
32.0.16.2140), AMD Ryzen 7 7800X3D (8 cores / 16 threads),rustc 1.100.0 (0ef1bc386 2026-11-09), DXC/DXIL1.8.2502.11.cargo test -p xcl --lib shaders:: -- --test-threads=1: 66 passed, 0 failed, 0 ignored (1 skipped:pso_measurement_compiles_an_exact_synthetic_record, Developer Mode required).cargo test -p xcl --lib gpu::pack:: -- --test-threads=1: 4 passed, 0 failed.cargo test -p xcl --test gpu_two_pass_cache_e2e mixed_mesh_preparation_keeps_supported_variants -- --test-threads=1: 1 passed, 0 failed.XCL_DIRECT_DXIL=1, isolated caches, prior head):4w × 1tstatic modulo slicing: 315.3 s4w × 2tLPT: 167.8 s (1.88× faster;8w × 2tmeasured 229.9 s due to SMT/L3 thrashing on 8 physical cores, confirmingcores / 2as the sweet spot).Regression run
main:PR head (
XCL_DIRECT_DXIL=1,XCL_PREPARE=0,XCL_PSO_PRELOAD=0):Not tested
.dxbcfolder inputs forprepare_for_launch(pack path tested).AI use