Shaders: prepare post-present pipeline history #3271
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3271"
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-29T02:57:23Z.
Part of #2088. A recorded run can first request split compute variants after its final present, so preparing only an earlier present leaves those driver pipelines on the launch path. This adds an explicit post-present history selection and prepares the indirect-chain forms that the recording used.
What is in it
crates/xcl/src/shaders/milestone.rs: select the final manifest tail, tolerate unavailable post-present compute sources, and carry recorded indirect use into preparationcrates/xcl/src/shaders.rs: build required indirect pieces with at most two workers and keep scheduler-only settings out of the reusable warm identityREADME.md: documentXCL_PREPARE_HISTORY_PRESENT=tailTested
cargo test -p xcl --lib required_indirect_piece_preparation_is_capped_at_two_workers -- --test-threads=1: 1 passed, 0 failed, 0 ignoredcargo test -p xcl --lib warm_settings_ignore_worker_identity_but_keep_backend_changes -- --test-threads=1: 1 passed, 0 failed, 0 ignoredcargo test -p xcl --lib shaders::milestone -- --test-threads=1: 11 passed, 0 failed, 0 ignoredcargo test -p xcl --lib pipeline_selection_tests -- --test-threads=1: 3 passed, 0 failed, 0 ignored.\scripts\test.ps1: 2,611 passed, 0 failed, 49 ignored; 28 GPU tests reportedSKIPPEDcargo build --release -p xcl: passedRegression run
Both runs used the same hard-linked title view and
XCL_PREPARE=0so the 60-second runtime comparison did not repeat the staged corpus preparation.Not tested
AI use
Imported from ivall/xcl. Originally posted by andrewDoing on 2026-11-29T03:03:29Z.
The tail boundary is the last recorded present milestone. This can precede the actual last present by 1,023 frames. The recorder emits powers of two through 1,024, then every 1,024th present. With zero presents, tail selection currently accepts the entire first-use history.
I compiled the current production present_milestone predicate and launch_selection disk reader from 8f075e85's tree in a bounded Windows harness. I wrote a synthetic compute first-use A immediately before the final present, then B immediately after. With 3 and 2,047 presents the reader selected A and B. With 4 and 2,048 it selected only B. Every control kept a repeated B once, ignored graphics without a recipe, and retained the exact graphics recipe. A separate zero-present recording also returned its compute and exact graphics entries.
This matters near the 4,096-entry limit: earlier work since the last milestone counts against the same cap as genuinely post-present work. If milestone-tail preparation is intended, I suggest naming the boundary in the README and deciding explicitly what zero presents should mean. An exact last-present boundary would require additional information from the recorder. This checks manifest selection, before shader lookup or driver compilation. No launch-time or title measurement. OpenAI Codex built and ran the controls and drafted this comment.