Shaders: prove native pipeline library round trips #3045

Merged
bmjask merged 19 commits from upstream-pr/3045 into main 2026-11-28 01:12:32 +00:00
bmjask commented 2026-11-27 17:52:16 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-11-27T17:52:16Z.


Stacked on #2829. ## What and why Probe D3D12 pipeline libraries before integrating them with offline preparation. The API retains the serialized input pointer, so XCL needs an owner that keeps the bytes alive while the library exists. What is in it - Empty native libraries are created with a null blob pointer and zero length; serialized libraries retain owned backing bytes for the D3D12-required lifetime. - Store, serialize, compute/graphics load, and pipeline-state-stream load operations. - Synthetic compute, graphics, mesh, duplicate-name, corruption, and small scale coverage. Tested Hardware: local D3D12 adapter selected by XCL. cargo test -p xcl --lib pipeline_library -- --test-threads=1 --nocapture 4 passed, 0 failed, 0 ignored, 0 skipped. A 256-name synthetic library serialized to 47,888 bytes and reopened in 113 microseconds. - 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 a full pipeline corpus. - Large sets of unique native PSOs. AI use Codex, GPT-5, traced the existing preparation path, implemented the wrapper and synthetic tests, and ran the focused test command. The user reviewed and authorized the commit.

<!-- greyfinch-sync:ivall/xcl:issue:5530948186 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3045). Originally posted by [bmjask](https://github.com/bmjask) on 2026-11-27T17:52:16Z. --- Stacked on #2829. ## What and why Probe D3D12 pipeline libraries before integrating them with offline preparation. The API retains the serialized input pointer, so XCL needs an owner that keeps the bytes alive while the library exists. **What is in it** - Empty native libraries are created with a null blob pointer and zero length; serialized libraries retain owned backing bytes for the D3D12-required lifetime. - Store, serialize, compute/graphics load, and pipeline-state-stream load operations. - Synthetic compute, graphics, mesh, duplicate-name, corruption, and small scale coverage. **Tested** Hardware: local D3D12 adapter selected by XCL. `cargo test -p xcl --lib pipeline_library -- --test-threads=1 --nocapture` 4 passed, 0 failed, 0 ignored, 0 skipped. A 256-name synthetic library serialized to 47,888 bytes and reopened in 113 microseconds. - 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 a full pipeline corpus. - Large sets of unique native PSOs. **AI use** Codex, GPT-5, traced the existing preparation path, implemented the wrapper and synthetic tests, and ran the focused test command. The user reviewed and authorized the commit.
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!3045
No description provided.