Shaders: collect prepared PSOs into native libraries #3051

Merged
bmjask merged 21 commits from upstream-pr/3051 into main 2026-11-28 01:13:21 +00:00
bmjask commented 2026-11-27 17:58:16 +00:00 (Migrated from github.com)

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. Tested cargo test -p xcl --lib pipeline_library -- --test-threads=1 --nocapture 5 passed, 0 failed, 0 ignored, 0 skipped. cargo test -p xcl --lib shaders::pso_corpus::tests -- --test-threads=1 --nocapture 1 passed, 0 failed, 0 ignored, 0 skipped. cargo test -p xcl --lib passthrough_mesh_stream_accepts_a_triangle_driver_blob -- --test-threads=1 --nocapture 1 passed, 0 failed, 0 ignored, 0 skipped on an NVIDIA GeForce RTX 4090. - Full-stack head e475c76f, Windows 11, NVIDIA RTX 4090: cargo build --workspace passed; cargo test --workspace -- --test-threads=4 passed 1,510 tests in 38 suites, with 0 failed, 47 ignored, and 26 explicitly reported SKIPPED capability 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.

<!-- greyfinch-sync:ivall/xcl:issue:5531018328 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3051). Originally posted by [bmjask](https://github.com/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. **Tested** `cargo test -p xcl --lib pipeline_library -- --test-threads=1 --nocapture` 5 passed, 0 failed, 0 ignored, 0 skipped. `cargo test -p xcl --lib shaders::pso_corpus::tests -- --test-threads=1 --nocapture` 1 passed, 0 failed, 0 ignored, 0 skipped. `cargo test -p xcl --lib passthrough_mesh_stream_accepts_a_triangle_driver_blob -- --test-threads=1 --nocapture` 1 passed, 0 failed, 0 ignored, 0 skipped on an NVIDIA GeForce RTX 4090. - Full-stack head `e475c76f`, Windows 11, NVIDIA RTX 4090: `cargo build --workspace` passed; `cargo test --workspace -- --test-threads=4` passed 1,510 tests in 38 suites, with 0 failed, 47 ignored, and 26 explicitly reported `SKIPPED` capability 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.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
xcl-dev/xcl!3051
No description provided.