Shaders: bound history-backed launch preparation #3195
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3195"
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-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
74cddb7baddsXCL_PREPARE_HISTORY_PRESENT, a 500-pipeline cap, a 15-second default deadline configurable withXCL_PREPARE_HISTORY_SECONDS, and history selection tests incrates/xcl/src/shaders.rsandcrates/xcl/src/shaders/milestone.rs.README.md.Tested
cargo test --workspace -- --test-threads=4: 2154 passed, 0 failed, 48 ignored; 26 tests explicitly reportedSKIPPEDon this adapter/configuration.cargo build --release -p xcl: passed.Regression run
Main:
This PR:
Not tested
XCL_PREPARE=0, so it checks launch/runtime regression but does not exercise opt-in history preparation against a large recorded manifest.AI use
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-28T18:40:06Z.
Tested
Independently reran the pinned XCL library test executable at
74cddb7b0b13c3a44c36374fe456cab5891562ceon 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-onlyXCL_TEST_HISTORY_INPUTSpointed to verified copies of the synthetic manifests.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 returnedmanifest 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.