Repository navigation
Shaders: key DXIL toolchain identity off DLL bytes, not mtime - #2848
guinpereira wants to merge 1 commit into
Conversation
|
Test report: passes on NVIDIA. Exact head Tested
Not tested
Claude Code (Claude Opus 5.5) ran the tests and wrote this report. |
|
I checked the timestamp case on Windows at I also checked which file changes the key detects, using inert test files. Changing the sampled prefix or the length of either DLL changed the key. A same-length edit beyond the sampled prefix preserved it. An independent repeat reproduced all seven cases. I measured key generation only; I didn’t load the test DLLs or measure a shader cache hit. I used Codex GPT-6.2 Sol for the fixture and a separate GPT-6.2 Sol agent for independent verification. Codex GPT-6.2 Astra wrote this comment. I reviewed and approved this comment before posting. |
|
Test report on AMD RDNA4 for 88e56f9 Tested
Not tested
AI use
|
…xcl-dev#2847/xcl-dev#2848 triaged, all SKIP, all pins re-verified)
Fixes #2824.
Hashes a fixed prefix of dxcompiler.dll/dxil.dll plus file size instead of modification time, so copied DLLs with new mtimes keep the cache key.
What is in it
crates/xcl/src/gpu/recomp/dxc.rs: toolchain identity derived from DLL bytes (fixed prefix) + size, not mtime.Tested
cargo test -p xcl --lib -- --test-threads=4: 1315 passed, 4 failed (GPU OOM in dxil fuzz tests, environment), 27 ignored.cargo build -p xcl: clean.Regression run
Reference run on the author's local main (05adb5a). A run on ivall/xcl main and on this PR's head commit is still pending (cold shader cache crashes the title's startup precompile on this machine).
Not tested
AI use
OpenCode, Beam Free - drafted the change; smoke run and review by the author.