Repository navigation
Conversation
The on-disk translation cache folds the DXC toolchain, the backend and the direct-DXIL switches into its identity, but not the switches the HLSL emitter reads: XCL_SAFE_BARRIER=0, XCL_WAVE64_SPIN=0, XCL_X64_ALL_MASKS and XCL_RECOMP_NO_STRUCTURED. A run with one of them set loaded the translation an earlier run had cached without it, so XCL_SAFE_BARRIER=0 still ran the spin barrier for every cached program unless XCL_TRANSLATED_CACHE=0 was set too. A non-default value of any of them now adds a tag to the identity (rerouted entries derive from it and follow). Their defaults leave the identity unchanged, so existing caches stay valid.
|
Independent Windows check of Tested
Not tested GPU execution, the emitter output under each setting, the parent revision, retail smoke and the full workspace suite. AI use OpenAI Codex (GPT-6.2 Sol) wrote the temporary cache fixture, ran the tests and prepared this report. |
|
Tested: current PR head merged onto current Disclosure: the branch as fetched carries stacked unmerged content beyond the cache-key commit (title_list, dispatch_chain, split-restore work; 1780 insertions total). This row covers the branch as-is, same as any reviewer building it.
Adds the Wine/vkd3d-proton data point next to the independent Windows check. Not tested: retail titles (no title data on this lane, counts only). AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting. |
Addresses #1409, like #1413, which came first. Correction to what this said before: only
XCL_SAFE_BARRIERhas the bug.XCL_WAVE64_SPIN,XCL_X64_ALL_MASKSandXCL_RECOMP_NO_STRUCTUREDare already incache_allowedonmain, which turns the memory and the disk cache off whenever one of them is set, so they never reuse a stale translation and the tags this adds for them never take effect.XCL_SAFE_BARRIER=0changes the HLSL emitted fors_barrier, but neithercache_allowednor the cache identity knows it, so a run with it can load a translation cached without it, and the other way round. #1413 adds it tocache_allowed(no cache while it is set), the same waymainhandles the other three. This keys the disk cache on it instead (translated::identity()gets a tag when it is set), so a run with it set is still cached. That only matters where the barrier switch is a mode people run in rather than a debug switch, as on the Mac branch from #258, where the native barrier is the default andXCL_SAFE_BARRIER=1brings back the spin barrier. Formain, #1413 fits the existing pattern; if it is merged, I'll close this.What is in it
crates/xcl/src/gpu/recomp/pso.rs:translated::with_emit_switches, applied at the end ofidentity()(rerouted entries derive from it, so they follow), and the testemit_switches_change_the_translated_identity.Tested
x86_64-pc-windows-gnu, debug, at e56c368 (on main 06c9f55).gpu::recomp::pso::shader_cache_tests, all 7 tests (the new one + the 6 existing): 7 passed, 0 failed, each in its own process.XCL_SAFE_BARRIERleft out ofwith_emit_switches, the new test fails (left: 4, right: 6).Regression run
scripts/smoke.ps1on. Needs someone with a title, or the maintainer's call.Not tested
AI use