Shaders: load prepared pipelines at runtime #3054
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3054"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by bmjask on 2026-11-27T18:13:33Z.
Stacked on #3053, #3051, #3046, #3045, and #2829. ## What and why The validated native libraries from #3053 must be used by the actual runtime device. This activates them once and lazily loads prepared pipelines at the same creation sites that otherwise invoke the driver compiler. What is in it - Runtime-device activation while retaining the serialized backing bytes for the lifetime required by D3D12. - Stable-name loads for standalone compute and dispatch-chain pipelines. - Stable-name loads for conventional graphics and depth-bounds stream pipelines. - Stable-name loads for mesh/geometry pipelines and their hidden compute pass. - 64-way name locking so concurrent loads of the same name are serialized without globally serializing unrelated pipelines. - Existing driver-blob and compilation behavior remains the fallback for every miss or rejected descriptor. Tested Commit
9e7513dd, Windows 11, NVIDIA RTX 4090: -cargo test -p xcl --lib warm_library -- --test-threads=1 --nocapture: 4 passed, 0 failed, 0 ignored, 0 skipped. The synthetic test activates the runtime library, loads its compute PSO, and confirms a missing name falls back. -cargo test -p xcl --lib pipeline_library -- --test-threads=1 --nocapture: 5 passed, 0 failed, 0 ignored, 0 skipped. -cargo test -p xcl --lib finish_two_pass -- --test-threads=1 --nocapture: 1 passed, 0 failed, 0 ignored, 0 skipped. - Full-stack heade475c76f, Windows 11, NVIDIA RTX 4090:cargo build --workspacepassed;cargo test --workspace -- --test-threads=4passed 1,510 tests in 38 suites, with 0 failed, 47 ignored, and 26 explicitly reportedSKIPPEDcapability tests. Regression run Not run. Repository policy requires a real-title smoke pair here, while this task explicitly prohibited launching a retail title. No smoke block or result has been invented. Not tested - A real-title regression smoke pair or a full real corpus (explicitly prohibited for this task). This remains a draft until the complete stack is validated. AI use Codex, GPT-5 implemented and reviewed the change and ran the commands reported above.