From ef599bcb3dbfb9d6833fc33184cb2fe3f350ed0f Mon Sep 17 00:00:00 2001 From: grahamster2 <128315603+grahamster2@users.noreply.github.com> Date: Sat, 28 Nov 2026 23:15:41 -0500 Subject: [PATCH] Shaders: scheduling and diagnostic switches leave the warm pipeline key alone warm_settings hashes every XCL_* variable but an exclusion list into the key of the driver-blob / pipeline-recipe cache, so changing a runtime knob between runs made every saved blob miss and forced a full pipeline re-preparation (about 10 min on an RTX 3080, seen several times). Now also left out, each checked where it is read: the bind wait budgets (XCL_PSO_WAIT_MS, XCL_GFX_PSO_WAIT_MS: how long a bind waits before the stand-in), the huge-compile gate (XCL_HUGE_PSO_CONCURRENCY, XCL_HUGE_PSO_WANTED_CONCURRENCY), which builds keep a disk file (XCL_PSO_DISK_CACHE_MIN_MS), the sync watchdogs (XCL_GPU_WAIT_TIMEOUT_MS, and XCL_WAIT_TIMEOUT_MS: the CPU wait for an unsatisfied Wait32/64BitValueX), target dumps (XCL_DUMP_TARGETS, XCL_DUMP_AFTER_S), XCL_THREAD_DUMP_AT, XCL_NETWORK, XCL_DRED (device-removal reporting), XCL_PLACE_RETIRE (resource placement), XCL_PLACE_CHECK (logs and counts placements over live textures only), and the logging-only XCL_TRACE_* family. None of them changes a pipeline description, its DXIL or root signature. Translation, heap/UMA, device and page-alias switches stay in the key. shaders.rs is not a translation cache input. Test: warm_settings_ignore_waits_watchdogs_and_traces_but_keep_pipeline_switches (each of the 14 names and two XCL_TRACE_ ones on its own and all together; fails before this change). Assisted-by: Claude Code (Claude Opus 5.5) --- crates/xcl/src/shaders.rs | 44 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/crates/xcl/src/shaders.rs b/crates/xcl/src/shaders.rs index 427de54058..6252257325 100644 --- a/crates/xcl/src/shaders.rs +++ b/crates/xcl/src/shaders.rs @@ -38,7 +38,16 @@ fn warm_settings(vars: impl IntoIterator