Shaders: bound history-backed launch preparation #3195

Merged
bmjask merged 1 commit from upstream-pr/3195 into main 2026-11-28 19:22:24 +00:00
bmjask commented 2026-11-28 18:07:20 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by bmjask on 2026-11-28T18:07:20Z.


Adds opt-in, bounded launch preparation from the previous present-order manifest. It lets repeat launches prepare a strict prefix before title entry without turning an incomplete history into an unbounded startup wait.

What is in it

  • 74cddb7b adds XCL_PREPARE_HISTORY_PRESENT, a 500-pipeline cap, a 15-second default deadline configurable with XCL_PREPARE_HISTORY_SECONDS, and history selection tests in crates/xcl/src/shaders.rs and crates/xcl/src/shaders/milestone.rs.
  • Documents the opt-in controls in README.md.

Tested

  • Windows 11 Pro 10.0.26200; Intel Core i9-12900K; NVIDIA GeForce RTX 4090, driver 610.88; rustc 1.100.0; debug tests and release smoke build.
  • cargo test --workspace -- --test-threads=4: 2154 passed, 0 failed, 48 ignored; 26 tests explicitly reported SKIPPED on this adapter/configuration.
  • cargo build --release -p xcl: passed.

Regression run

Main:

xcl-smoke v1
commit: 10d272970f25b02b72ebe3c883d02d74d4d4763b
gpu: NVIDIA GeForce RTX 4090
title: local-regression
seconds: 10
exit: 0x0
frames shown: 104 (PresentX 105)
presents per 2 s (last 3): 4 60 37
device removals: 0
crashes: 0
peak commit: 8278 MB

This PR:

xcl-smoke v1
commit: 74cddb7b0b13c3a44c36374fe456cab5891562ce
gpu: NVIDIA GeForce RTX 4090
title: local-regression
seconds: 10
exit: 0x0
frames shown: 106 (PresentX 107)
presents per 2 s (last 3): 1 58 40
device removals: 0
crashes: 0
peak commit: 8204 MB

Not tested

  • AMD GPUs.
  • The smoke run used XCL_PREPARE=0, so it checks launch/runtime regression but does not exercise opt-in history preparation against a large recorded manifest.

AI use

  • Codex with GPT-5 implemented, reviewed, and tested the change.
<!-- greyfinch-sync:ivall/xcl:issue:5543138273 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3195). Originally posted by [bmjask](https://github.com/bmjask) on 2026-11-28T18:07:20Z. --- Adds opt-in, bounded launch preparation from the previous present-order manifest. It lets repeat launches prepare a strict prefix before title entry without turning an incomplete history into an unbounded startup wait. **What is in it** - `74cddb7b` adds `XCL_PREPARE_HISTORY_PRESENT`, a 500-pipeline cap, a 15-second default deadline configurable with `XCL_PREPARE_HISTORY_SECONDS`, and history selection tests in `crates/xcl/src/shaders.rs` and `crates/xcl/src/shaders/milestone.rs`. - Documents the opt-in controls in `README.md`. **Tested** - Windows 11 Pro 10.0.26200; Intel Core i9-12900K; NVIDIA GeForce RTX 4090, driver 610.88; rustc 1.100.0; debug tests and release smoke build. - `cargo test --workspace -- --test-threads=4`: 2154 passed, 0 failed, 48 ignored; 26 tests explicitly reported `SKIPPED` on this adapter/configuration. - `cargo build --release -p xcl`: passed. **Regression run** Main: ``` xcl-smoke v1 commit: 10d272970f25b02b72ebe3c883d02d74d4d4763b gpu: NVIDIA GeForce RTX 4090 title: local-regression seconds: 10 exit: 0x0 frames shown: 104 (PresentX 105) presents per 2 s (last 3): 4 60 37 device removals: 0 crashes: 0 peak commit: 8278 MB ``` This PR: ``` xcl-smoke v1 commit: 74cddb7b0b13c3a44c36374fe456cab5891562ce gpu: NVIDIA GeForce RTX 4090 title: local-regression seconds: 10 exit: 0x0 frames shown: 106 (PresentX 107) presents per 2 s (last 3): 1 58 40 device removals: 0 crashes: 0 peak commit: 8204 MB ``` **Not tested** - AMD GPUs. - The smoke run used `XCL_PREPARE=0`, so it checks launch/runtime regression but does not exercise opt-in history preparation against a large recorded manifest. **AI use** - Codex with GPT-5 implemented, reviewed, and tested the change.
JJAutoCompare commented 2026-11-28 18:40:06 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-28T18:40:06Z.


Tested

Independently reran the pinned XCL library test executable at 74cddb7b0b13c3a44c36374fe456cab5891562ce on Windows 11 x64 build 26200.9974 with a Ryzen 7 3800X. The binary was built with Rust and Cargo 1.100.1 (x86_64 MSVC) from the exact-head source plus one private fixture in the existing test module. The child-only XCL_TEST_HISTORY_INPUTS pointed to verified copies of the synthetic manifests.

xcl-8941870b96d3eddf.exe --exact shaders::milestone::tests::prepare_launch_stops_at_history_selection_boundary --nocapture --test-threads=1
xcl-8941870b96d3eddf.exe --exact shaders::milestone::tests::launch_options_are_opt_in_bounded_and_strict --nocapture --test-threads=1

Both native processes exited 0 with empty stderr. Total was 2 passed, 0 failed, 0 ignored, 0 skipped. At present 1, an empty compute prefix returned Ok(()) and set progress to (0, 0, 1). A prefix of 500 distinct keys plus a duplicate, with empty record inputs, returned the unmatched diagnostic with all 500 keys in first-use order. Adding a 501st distinct key returned manifest prefix exceeds the 500-pipeline startup limit. Both errors preserved progress at (17, 29, 43). All three fixture cases exited before adapter creation. The stock launch-options control passed separately.

Not tested

Runtime boot, a nonempty selection that resolves records, actual pipeline preparation, deadline timing, GPU, caches, retail titles, and the workspace suite.

AI use

T3 Code through Codex (gpt-6.2-sol, high) prepared the fixture, verified the source and executable pins, independently reran both tests, and drafted this report.

<!-- greyfinch-sync:ivall/xcl:comment:7243965266 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3195#issuecomment-7243965266). Originally posted by [JJAutoCompare](https://github.com/JJAutoCompare) on 2026-11-28T18:40:06Z. --- **Tested** Independently reran the pinned XCL library test executable at `74cddb7b0b13c3a44c36374fe456cab5891562ce` on Windows 11 x64 build 26200.9974 with a Ryzen 7 3800X. The binary was built with Rust and Cargo 1.100.1 (x86_64 MSVC) from the exact-head source plus one private fixture in the existing test module. The child-only `XCL_TEST_HISTORY_INPUTS` pointed to verified copies of the synthetic manifests. ```text xcl-8941870b96d3eddf.exe --exact shaders::milestone::tests::prepare_launch_stops_at_history_selection_boundary --nocapture --test-threads=1 xcl-8941870b96d3eddf.exe --exact shaders::milestone::tests::launch_options_are_opt_in_bounded_and_strict --nocapture --test-threads=1 ``` Both native processes exited 0 with empty stderr. Total was 2 passed, 0 failed, 0 ignored, 0 skipped. At present 1, an empty compute prefix returned `Ok(())` and set progress to `(0, 0, 1)`. A prefix of 500 distinct keys plus a duplicate, with empty record inputs, returned the unmatched diagnostic with all 500 keys in first-use order. Adding a 501st distinct key returned `manifest prefix exceeds the 500-pipeline startup limit`. Both errors preserved progress at `(17, 29, 43)`. All three fixture cases exited before adapter creation. The stock launch-options control passed separately. **Not tested** Runtime boot, a nonempty selection that resolves records, actual pipeline preparation, deadline timing, GPU, caches, retail titles, and the workspace suite. **AI use** T3 Code through Codex (`gpt-6.2-sol`, high) prepared the fixture, verified the source and executable pins, independently reran both tests, and drafted this report.
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!3195
No description provided.