Shaders: collect prepared PSOs into native libraries #3051
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3051"
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-27T17:58:16Z.
Stacked on #3046, #3045 and #2829. ## What and why Collect the native PSOs already created by offline corpus preparation into D3D12 pipeline libraries without changing ordinary runtime behavior. What is in it - A process-local library builder with deterministic names, deduplication and atomic replacement. - Separate graphics and compute libraries because graphics preparation runs in a child process. - Collection of conventional graphics, standalone compute, dispatch-chain, mesh and mesh-associated compute PSOs. - Existing verified-blob shortcuts are bypassed only while constructing a library. - Drivers without pipeline-library support retain the current preparation behavior. The files remain
.pending; this PR does not make launch trust them. The stacked receipt PR publishes them only after semantic validation. Testedcargo test -p xcl --lib pipeline_library -- --test-threads=1 --nocapture5 passed, 0 failed, 0 ignored, 0 skipped.cargo test -p xcl --lib shaders::pso_corpus::tests -- --test-threads=1 --nocapture1 passed, 0 failed, 0 ignored, 0 skipped.cargo test -p xcl --lib passthrough_mesh_stream_accepts_a_triangle_driver_blob -- --test-threads=1 --nocapture1 passed, 0 failed, 0 ignored, 0 skipped on an NVIDIA GeForce RTX 4090. - 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 - Full workspace suite. - Real title data or full corpus preparation. AI use Codex, GPT-5, traced every native PSO creation path, implemented the two-library writer and focused tests, and ran the commands above.