XCL_DXC_ARGS never reaches the cached compile path; the DXIL cache key also omits the optimisation level #559

Open
opened 2026-11-26 04:25:41 +00:00 by github-bot · 1 comment
Owner

@⁠sub-north on GitHub · 2026-11-24 01:47 UTC · original

XCL_DXC_ARGS never reaches the cached compile path; the DXIL cache key also omits the optimisation level

Line numbers are 85bdf21 (origin/main), paths under crates/xcl/src/gpu/recomp/.

What an operator expects

XCL_DXC_ARGS is the documented way to pass arguments to DXC — "XCL_DXC_ARGS="-O1 …": extra DXC
arguments (comparing optimisation levels)" (tests.rs:4882-4884), "XCL_DXC_ARGS passes DXC
arguments in the survey" (HANDOFF.md:922). compile() takes exactly that list as extra: &[&str] (dxc.rs:460-461), and the disk cache exists to hand back DXIL for programs DXC already
compiled. So the expectation is two-fold:

  1. Setting the variable changes the codegen an operator sees.
  2. Because the cache is keyed on what determines the DXIL, a different argument list is a miss, not a
    hit.

Neither holds.

What actually happens

The variable is never consulted on the cached path

compile_cached_in — the entry point everything uses (dxc.rs:887-889) — hardcodes an empty
argument list:

// crates/xcl/src/gpu/recomp/dxc.rs:631-633
pub fn compile_cached_in(dir: &Path, src: &str, entry: &str, profile: &str) -> Result<(Vec<u8>, bool), String> {
    compile_cached_in_with(dir, src, entry, profile, || compile(src, entry, profile, &[]))
}

XCL_DXC_ARGS is read in exactly three places, all in tests.rs, all ignored helpers, and all of
them call the uncached dxc::compile:

// crates/xcl/src/gpu/recomp/tests.rs:4734-4737
    let args = std::env::var("XCL_DXC_ARGS").unwrap_or_default();
    let extra: Vec<&str> = args.split_whitespace().collect();
    let t0 = std::time::Instant::now();
    let r = super::dxc::compile(&h, "main", profile, &extra);
// crates/xcl/src/gpu/recomp/tests.rs:4883-4885
                            let args = std::env::var("XCL_DXC_ARGS").unwrap_or_default();
                            let args: Vec<&str> = args.split_whitespace().collect();
                            let r = super::dxc::compile(&t.hlsl, "main", profile, &args);
// crates/xcl/src/gpu/recomp/tests.rs:5000-5001
    let args = std::env::var("XCL_DXC_ARGS").unwrap_or_default();
    let extra: Vec<&str> = args.split_whitespace().collect();

So in a normal run the variable has no effect at all: nothing reads it, and even if something
did, the cached path drops the list on the floor. It only ever reaches DXC through the two survey
helpers, which bypass the cache entirely — which is also why nobody noticed: the survey reports DXC
times and DXIL sizes that look like the flag worked.

The key omits the argument list

// crates/xcl/src/gpu/recomp/dxc.rs:538-552
/// FNV-1a 64 of the inputs that determine the DXIL.
fn cache_key_for_toolchain(src: &str, entry: &str, profile: &str, toolchain: &str) -> u64 {
    let mut h = 0xcbf2_9ce4_8422_2325u64;
    for part in [env!("CARGO_PKG_VERSION"), toolchain, profile, entry, src] {
        for b in part.bytes().chain([0u8]) {
            h ^= b as u64;
            h = h.wrapping_mul(0x100_0000_01b3);
        }
    }
    h
}

fn cache_key(src: &str, entry: &str, profile: &str) -> u64 {
    cache_key_for_toolchain(src, entry, profile, toolchain_identity())
}

Package version, toolchain identity, profile, entry, source. Not the arguments.

The optimisation level is decided somewhere else entirely, after the key is computed, from the
source size only:

// crates/xcl/src/gpu/recomp/dxc.rs:468-485
fn compile_here(src: &str, entry: &str, profile: &str, extra: &[&str]) -> Result<Vec<u8>, String> {
    let c = compiler()?;
    let mut args: Vec<Vec<u16>> = ["-E", entry, "-T", profile, "-HV", "2021"].iter().map(|a| crate::util::wide(a)).collect();
    ...
    if !extra.iter().any(|a| a.starts_with("-O")) {
        if src.len() > 8 * 1024 * 1024 {
            args.push(crate::util::wide("-O0"));
        } else if src.len() > 1024 * 1024 {
            args.push(crate::util::wide("-O1"));
        }
    }
    args.extend(extra.iter().map(|a| crate::util::wide(a)));

Two separate problems from one omission:

  • The key cannot tell callers apart. Any caller that supplies arguments — the entire purpose of
    extra — lands on the same key as one that supplies none, so the second caller gets the first
    caller's DXIL. This is dormant today only because no caller passes arguments (pso.rs:771,
    pso.rs:865 pass none, and compile_cached_in hardcodes &[]); it is armed, not harmless.
  • The rule producing -O0/-O1 is not keyed either. Only src.len() is keyed, not the rule
    applied to it. Change a threshold, or the flags injected above it, and a build that keeps
    CARGO_PKG_VERSION (dxc.rs:541 — it only moves on a version bump) keeps hitting artifacts
    compiled under the old rule. This is the specific hazard for development builds: same version
    string, different optimiser decisions, one cache.

What is not wrong

Worth stating so the report is not overclaimed: lookup, the in-process flight, the cross-process
mutex, and the atomic write-then-rename all derive from that one key, so there is no
lookup/store mismatch:

// crates/xcl/src/gpu/recomp/dxc.rs:774-776
    let key = cache_key(src, entry, profile);
    let dir = normalized_cache_dir(dir);
    let file = dir.join(format!("{key:016x}.dxil"));
// crates/xcl/src/gpu/recomp/dxc.rs:789-791
    let flight = cache_flight((dir.clone(), key));
    let _guard = flight.lock().unwrap_or_else(|e| e.into_inner());
    let _process_guard = process_cache_lock(&file)?;
// crates/xcl/src/gpu/recomp/dxc.rs:823-824
        let tmp = file.with_extension(format!("tmp{}", std::process::id()));
        if std::fs::write(&tmp, &b).is_ok() && std::fs::rename(&tmp, &file).is_err() {

And because today's size rule is a pure function of src.len(), and src is keyed, an
argument-less cache cannot collide with itself yet. The defect is an omission in the key, not a
mis-computed one.

Reproduction

No GPU or display needed; the compile helper and its disk cache are exercised on their own
(cache_tests, dxc.rs:891).

1. The variable is inert on the cached path. With XCL_DXC_ARGS="-O1" set, run
dxil_cache_round_trip (dxc.rs:991-1003) twice, or call compile_cached_in twice on the same
source:

let (a, hit) = compile_cached_in(&dir, src, "main", "cs_6_6").unwrap(); // hit == false
let (b, hit) = compile_cached_in(&dir, src, "main", "cs_6_6").unwrap(); // hit == true, a == b

Unset the variable, repeat into a fresh dir: byte-identical DXIL. DXC is not invoked on the second
run and compilation counters do not move, so the flag had no path to the compiler.

2. The key is blind to arguments. Change nothing but the hardcoded &[] at dxc.rs:632 to pass
a list through, and compile the same source twice into the same dir, second time with different
flags (["-O0"], then ["-O1"]): the second is a hit, returns the first -O0 DXIL, and the
directory holds a single .dxil. That is exactly what any caller threading extra through will get.

Proposed fix

Thread the list into the cached path and hash it.

-/// FNV-1a 64 of the inputs that determine the DXIL.
-fn cache_key_for_toolchain(src: &str, entry: &str, profile: &str, toolchain: &str) -> u64 {
+/// FNV-1a 64 of the inputs that determine the DXIL.
+fn cache_key_for_toolchain(src: &str, entry: &str, profile: &str, extra: &[&str], toolchain: &str) -> u64 {
     let mut h = 0xcbf2_9ce4_8422_2325u64;
-    for part in [env!("CARGO_PKG_VERSION"), toolchain, profile, entry, src] {
+    for part in [env!("CARGO_PKG_VERSION"), toolchain, profile, entry, src]
+        .into_iter()
+        .chain(extra.iter().copied())
+    {
         for b in part.bytes().chain([0u8]) {
             h ^= b as u64;
             h = h.wrapping_mul(0x100_0000_01b3);
         }
     }
     h
 }

-fn cache_key(src: &str, entry: &str, profile: &str) -> u64 {
-    cache_key_for_toolchain(src, entry, profile, toolchain_identity())
+fn cache_key(src: &str, entry: &str, profile: &str, extra: &[&str]) -> u64 {
+    cache_key_for_toolchain(src, entry, profile, extra, toolchain_identity())
 }

Each part is already followed by a NUL (part.bytes().chain([0u8])), so the appended arguments
inherit the separator for free: ["-O1","-O2"] hashes as -O1\0-O2\0 and ["-O1 -O2"] as
-O1 -O2\0 — a different digest. Two arguments never alias one argument containing a space.

Plumb it through without churning the existing call sites:

 pub fn compile_cached_in(dir: &Path, src: &str, entry: &str, profile: &str) -> Result<(Vec<u8>, bool), String> {
-    compile_cached_in_with(dir, src, entry, profile, || compile(src, entry, profile, &[]))
+    compile_cached_args(dir, src, entry, profile, &[])
+}
+
+/// `compile_cached_in` with explicit DXC arguments (optimisation level, `XCL_DXC_ARGS`).
+/// The arguments are part of the key, so a different list recompiles instead of hitting.
+pub fn compile_cached_args(dir: &Path, src: &str, entry: &str, profile: &str, extra: &[&str]) -> Result<(Vec<u8>, bool), String> {
+    compile_cached_in_with(dir, src, entry, profile, extra, || compile(src, entry, profile, extra))
 }

 fn compile_cached_in_with<F>(dir: &Path, src: &str, entry: &str, profile: &str, compile_one: F) -> ...
 {
-    compile_cached_in_observed(dir, src, entry, profile, cache_counters(), compile_one)
+    compile_cached_in_observed(dir, src, entry, profile, &[], cache_counters(), compile_one)
 }

 fn compile_cached_in_observed<F>(
     dir: &Path, src: &str, entry: &str, profile: &str,
+    extra: &[&str],
     counters: &CacheCounters, compile_one: F,
 ) -> ...
 {
-    let key = cache_key(src, entry, profile);
+    let key = cache_key(src, entry, profile, extra);

Test, next to cache_key_tracks_the_dxc_toolchain (dxc.rs:1005-1011):

#[test]
fn cache_key_tracks_the_dxc_arguments() {
    let a = cache_key("source", "main", "cs_6_6", &[]);
    assert_eq!(a, cache_key("source", "main", "cs_6_6", &[]));
    assert_ne!(a, cache_key("source", "main", "cs_6_6", &["-O1"]));
    assert_ne!(
        cache_key("source", "main", "cs_6_6", &["-O1"]),
        cache_key("source", "main", "cs_6_6", &["-O0"])
    );
    assert_ne!(
        cache_key("source", "main", "cs_6_6", &["-O1", "-O2"]),
        cache_key("source", "main", "cs_6_6", &["-O1 -O2"])
    );
}

Optional, if you would rather key the rule than only the caller's list: hash the resolved argument
vector (-E/-T/-HV plus the size-derived -O0/-O1) instead of extra. That closes the
threshold-change hole above, at the cost of invalidating existing entries for sources over the
thresholds once.

Migration

The arguments are appended after src, so an empty list leaves the digest unchanged: existing
entries keep hitting, only argument-carrying compiles get new keys. No forced invalidation, no loss
of a warm cache.

Environment

Windows; dxcompiler.dll and dxil.dll located through XCL_DXC_DIR and hashed by name, size and
mtime into toolchain_identity (dxc.rs:507-536); cache folder from XCL_DXIL_CACHE, else
%LOCALAPPDATA%\xcl\dxil (dxc.rs:554-559).

**@⁠sub-north** on GitHub · 2026-11-24 01:47 UTC · [original](https://github.com/xcl-dev/xcl/issues/559) # XCL_DXC_ARGS never reaches the cached compile path; the DXIL cache key also omits the optimisation level Line numbers are `85bdf21` (origin/main), paths under `crates/xcl/src/gpu/recomp/`. ## What an operator expects `XCL_DXC_ARGS` is the documented way to pass arguments to DXC — "`XCL_DXC_ARGS="-O1 …"`: extra DXC arguments (comparing optimisation levels)" (`tests.rs:4882-4884`), "`XCL_DXC_ARGS` passes DXC arguments in the survey" (`HANDOFF.md:922`). `compile()` takes exactly that list as `extra: &[&str]` (`dxc.rs:460-461`), and the disk cache exists to hand back DXIL for programs DXC already compiled. So the expectation is two-fold: 1. Setting the variable changes the codegen an operator sees. 2. Because the cache is keyed on what determines the DXIL, a different argument list is a miss, not a hit. Neither holds. ## What actually happens ### The variable is never consulted on the cached path `compile_cached_in` — the entry point everything uses (`dxc.rs:887-889`) — hardcodes an empty argument list: ```rust // crates/xcl/src/gpu/recomp/dxc.rs:631-633 pub fn compile_cached_in(dir: &Path, src: &str, entry: &str, profile: &str) -> Result<(Vec<u8>, bool), String> { compile_cached_in_with(dir, src, entry, profile, || compile(src, entry, profile, &[])) } ``` `XCL_DXC_ARGS` is read in exactly three places, all in `tests.rs`, all ignored helpers, and all of them call the **uncached** `dxc::compile`: ```rust // crates/xcl/src/gpu/recomp/tests.rs:4734-4737 let args = std::env::var("XCL_DXC_ARGS").unwrap_or_default(); let extra: Vec<&str> = args.split_whitespace().collect(); let t0 = std::time::Instant::now(); let r = super::dxc::compile(&h, "main", profile, &extra); ``` ```rust // crates/xcl/src/gpu/recomp/tests.rs:4883-4885 let args = std::env::var("XCL_DXC_ARGS").unwrap_or_default(); let args: Vec<&str> = args.split_whitespace().collect(); let r = super::dxc::compile(&t.hlsl, "main", profile, &args); ``` ```rust // crates/xcl/src/gpu/recomp/tests.rs:5000-5001 let args = std::env::var("XCL_DXC_ARGS").unwrap_or_default(); let extra: Vec<&str> = args.split_whitespace().collect(); ``` So in a normal run the variable has **no effect at all**: nothing reads it, and even if something did, the cached path drops the list on the floor. It only ever reaches DXC through the two survey helpers, which bypass the cache entirely — which is also why nobody noticed: the survey reports DXC times and DXIL sizes that look like the flag worked. ### The key omits the argument list ```rust // crates/xcl/src/gpu/recomp/dxc.rs:538-552 /// FNV-1a 64 of the inputs that determine the DXIL. fn cache_key_for_toolchain(src: &str, entry: &str, profile: &str, toolchain: &str) -> u64 { let mut h = 0xcbf2_9ce4_8422_2325u64; for part in [env!("CARGO_PKG_VERSION"), toolchain, profile, entry, src] { for b in part.bytes().chain([0u8]) { h ^= b as u64; h = h.wrapping_mul(0x100_0000_01b3); } } h } fn cache_key(src: &str, entry: &str, profile: &str) -> u64 { cache_key_for_toolchain(src, entry, profile, toolchain_identity()) } ``` Package version, toolchain identity, profile, entry, source. Not the arguments. The optimisation level is decided somewhere else entirely, *after* the key is computed, from the source size only: ```rust // crates/xcl/src/gpu/recomp/dxc.rs:468-485 fn compile_here(src: &str, entry: &str, profile: &str, extra: &[&str]) -> Result<Vec<u8>, String> { let c = compiler()?; let mut args: Vec<Vec<u16>> = ["-E", entry, "-T", profile, "-HV", "2021"].iter().map(|a| crate::util::wide(a)).collect(); ... if !extra.iter().any(|a| a.starts_with("-O")) { if src.len() > 8 * 1024 * 1024 { args.push(crate::util::wide("-O0")); } else if src.len() > 1024 * 1024 { args.push(crate::util::wide("-O1")); } } args.extend(extra.iter().map(|a| crate::util::wide(a))); ``` Two separate problems from one omission: - **The key cannot tell callers apart.** Any caller that supplies arguments — the entire purpose of `extra` — lands on the same key as one that supplies none, so the second caller gets the first caller's DXIL. This is dormant today only because no caller passes arguments (`pso.rs:771`, `pso.rs:865` pass none, and `compile_cached_in` hardcodes `&[]`); it is armed, not harmless. - **The rule producing `-O0`/`-O1` is not keyed either.** Only `src.len()` is keyed, not the rule applied to it. Change a threshold, or the flags injected above it, and a build that keeps `CARGO_PKG_VERSION` (`dxc.rs:541` — it only moves on a version bump) keeps hitting artifacts compiled under the old rule. This is the specific hazard for development builds: same version string, different optimiser decisions, one cache. ### What is *not* wrong Worth stating so the report is not overclaimed: lookup, the in-process flight, the cross-process mutex, and the atomic write-then-rename all derive from that one key, so there is no lookup/store mismatch: ```rust // crates/xcl/src/gpu/recomp/dxc.rs:774-776 let key = cache_key(src, entry, profile); let dir = normalized_cache_dir(dir); let file = dir.join(format!("{key:016x}.dxil")); ``` ```rust // crates/xcl/src/gpu/recomp/dxc.rs:789-791 let flight = cache_flight((dir.clone(), key)); let _guard = flight.lock().unwrap_or_else(|e| e.into_inner()); let _process_guard = process_cache_lock(&file)?; ``` ```rust // crates/xcl/src/gpu/recomp/dxc.rs:823-824 let tmp = file.with_extension(format!("tmp{}", std::process::id())); if std::fs::write(&tmp, &b).is_ok() && std::fs::rename(&tmp, &file).is_err() { ``` And because today's size rule is a pure function of `src.len()`, and `src` is keyed, an argument-less cache cannot collide with itself yet. The defect is an omission in the key, not a mis-computed one. ## Reproduction No GPU or display needed; the compile helper and its disk cache are exercised on their own (`cache_tests`, `dxc.rs:891`). **1. The variable is inert on the cached path.** With `XCL_DXC_ARGS="-O1"` set, run `dxil_cache_round_trip` (`dxc.rs:991-1003`) twice, or call `compile_cached_in` twice on the same source: ```rust let (a, hit) = compile_cached_in(&dir, src, "main", "cs_6_6").unwrap(); // hit == false let (b, hit) = compile_cached_in(&dir, src, "main", "cs_6_6").unwrap(); // hit == true, a == b ``` Unset the variable, repeat into a fresh `dir`: byte-identical DXIL. DXC is not invoked on the second run and `compilation` counters do not move, so the flag had no path to the compiler. **2. The key is blind to arguments.** Change nothing but the hardcoded `&[]` at `dxc.rs:632` to pass a list through, and compile the same source twice into the same `dir`, second time with different flags (`["-O0"]`, then `["-O1"]`): the second is a **hit**, returns the first `-O0` DXIL, and the directory holds a single `.dxil`. That is exactly what any caller threading `extra` through will get. ## Proposed fix Thread the list into the cached path and hash it. ```diff -/// FNV-1a 64 of the inputs that determine the DXIL. -fn cache_key_for_toolchain(src: &str, entry: &str, profile: &str, toolchain: &str) -> u64 { +/// FNV-1a 64 of the inputs that determine the DXIL. +fn cache_key_for_toolchain(src: &str, entry: &str, profile: &str, extra: &[&str], toolchain: &str) -> u64 { let mut h = 0xcbf2_9ce4_8422_2325u64; - for part in [env!("CARGO_PKG_VERSION"), toolchain, profile, entry, src] { + for part in [env!("CARGO_PKG_VERSION"), toolchain, profile, entry, src] + .into_iter() + .chain(extra.iter().copied()) + { for b in part.bytes().chain([0u8]) { h ^= b as u64; h = h.wrapping_mul(0x100_0000_01b3); } } h } -fn cache_key(src: &str, entry: &str, profile: &str) -> u64 { - cache_key_for_toolchain(src, entry, profile, toolchain_identity()) +fn cache_key(src: &str, entry: &str, profile: &str, extra: &[&str]) -> u64 { + cache_key_for_toolchain(src, entry, profile, extra, toolchain_identity()) } ``` Each part is already followed by a NUL (`part.bytes().chain([0u8])`), so the appended arguments inherit the separator for free: `["-O1","-O2"]` hashes as `-O1\0-O2\0` and `["-O1 -O2"]` as `-O1 -O2\0` — a different digest. Two arguments never alias one argument containing a space. Plumb it through without churning the existing call sites: ```diff pub fn compile_cached_in(dir: &Path, src: &str, entry: &str, profile: &str) -> Result<(Vec<u8>, bool), String> { - compile_cached_in_with(dir, src, entry, profile, || compile(src, entry, profile, &[])) + compile_cached_args(dir, src, entry, profile, &[]) +} + +/// `compile_cached_in` with explicit DXC arguments (optimisation level, `XCL_DXC_ARGS`). +/// The arguments are part of the key, so a different list recompiles instead of hitting. +pub fn compile_cached_args(dir: &Path, src: &str, entry: &str, profile: &str, extra: &[&str]) -> Result<(Vec<u8>, bool), String> { + compile_cached_in_with(dir, src, entry, profile, extra, || compile(src, entry, profile, extra)) } fn compile_cached_in_with<F>(dir: &Path, src: &str, entry: &str, profile: &str, compile_one: F) -> ... { - compile_cached_in_observed(dir, src, entry, profile, cache_counters(), compile_one) + compile_cached_in_observed(dir, src, entry, profile, &[], cache_counters(), compile_one) } fn compile_cached_in_observed<F>( dir: &Path, src: &str, entry: &str, profile: &str, + extra: &[&str], counters: &CacheCounters, compile_one: F, ) -> ... { - let key = cache_key(src, entry, profile); + let key = cache_key(src, entry, profile, extra); ``` Test, next to `cache_key_tracks_the_dxc_toolchain` (`dxc.rs:1005-1011`): ```rust #[test] fn cache_key_tracks_the_dxc_arguments() { let a = cache_key("source", "main", "cs_6_6", &[]); assert_eq!(a, cache_key("source", "main", "cs_6_6", &[])); assert_ne!(a, cache_key("source", "main", "cs_6_6", &["-O1"])); assert_ne!( cache_key("source", "main", "cs_6_6", &["-O1"]), cache_key("source", "main", "cs_6_6", &["-O0"]) ); assert_ne!( cache_key("source", "main", "cs_6_6", &["-O1", "-O2"]), cache_key("source", "main", "cs_6_6", &["-O1 -O2"]) ); } ``` Optional, if you would rather key the rule than only the caller's list: hash the *resolved* argument vector (`-E/-T/-HV` plus the size-derived `-O0`/`-O1`) instead of `extra`. That closes the threshold-change hole above, at the cost of invalidating existing entries for sources over the thresholds once. ## Migration The arguments are appended *after* `src`, so an empty list leaves the digest unchanged: existing entries keep hitting, only argument-carrying compiles get new keys. No forced invalidation, no loss of a warm cache. ## Environment Windows; `dxcompiler.dll` and `dxil.dll` located through `XCL_DXC_DIR` and hashed by name, size and mtime into `toolchain_identity` (`dxc.rs:507-536`); cache folder from `XCL_DXIL_CACHE`, else `%LOCALAPPDATA%\xcl\dxil` (`dxc.rs:554-559`).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:25:41 +00:00
Author
Owner

@⁠alpz1000 on GitHub · 2026-11-24 02:49 UTC · original

Independent check of both cache layers for #559 on Windows 11 Home 26200.9974, Core i5-8400, Rust 1.100.0 x86_64-pc-windows-msvc, SDK DXC 1.9.2602.17, debug.

  • #591 at 6c68cc703df3e2d75d5820ee594a4a155ce3ee9e: its three focused compiler-cache tests passed with one test thread (argument key separation, cached explicit arguments, and XCL_DXC_ARGS on the cached path).
  • #613 at 920c3807df84c7b9cd9ab7be1ea0122c2199f02d: cargo test --locked -p xcl --lib cached_compiler_arguments_reach_dxc_with_warm_caches -- --nocapture passed.
  • Same #613 head and regression fixture, restoring only pso.rs from its parent e10c3e4 (the rebased #591 change): the test failed with invalid arguments reused a cached translation, exit 101. The edit was reverted afterward.

This independently reproduces the upper-cache problem and validates the follow-up alongside the lower-level argument-keyed cache. Not tested: the whole suite, parallel behavior of #591's environment fixture, or retail titles. No game data used.

AI use: OpenAI Codex (GPT-6) ran the tests and drafted the report from their output.

**@⁠alpz1000** on GitHub · 2026-11-24 02:49 UTC · [original](https://github.com/xcl-dev/xcl/issues/559#issuecomment-7120515348) Independent check of both cache layers for #559 on Windows 11 Home 26200.9974, Core i5-8400, Rust 1.100.0 x86_64-pc-windows-msvc, SDK DXC 1.9.2602.17, debug. - #591 at `6c68cc703df3e2d75d5820ee594a4a155ce3ee9e`: its three focused compiler-cache tests passed with one test thread (argument key separation, cached explicit arguments, and `XCL_DXC_ARGS` on the cached path). - #613 at `920c3807df84c7b9cd9ab7be1ea0122c2199f02d`: `cargo test --locked -p xcl --lib cached_compiler_arguments_reach_dxc_with_warm_caches -- --nocapture` passed. - Same #613 head and regression fixture, restoring only `pso.rs` from its parent `e10c3e4` (the rebased #591 change): the test failed with `invalid arguments reused a cached translation`, exit 101. The edit was reverted afterward. This independently reproduces the upper-cache problem and validates the follow-up alongside the lower-level argument-keyed cache. **Not tested**: the whole suite, parallel behavior of #591's environment fixture, or retail titles. No game data used. **AI use**: OpenAI Codex (GPT-6) ran the tests and drafted the report from their output.
This discussion has been locked. Commenting is limited to contributors.
No description provided.