Shaders: prepare exact graphics history at launch #3197

Merged
bmjask merged 3 commits from upstream-pr/3197 into main 2026-11-28 19:22:59 +00:00
bmjask commented 2026-11-28 18:07:45 +00:00 (Migrated from github.com)

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


Stacked on #3196; only the top commit belongs here.

Uses exact recipe identities captured by the preceding PR to prepare recorded graphics and mesh pipelines before title entry. Compute and graphics selections share the existing 500-pipeline cap and bounded deadline; ambiguous rows from older manifests are skipped safely.

What is in it

  • aca2aef5 selects exact graphics/mesh recipes alongside compute history in crates/xcl/src/shaders/milestone.rs.
  • Resolves and validates recorded recipes from the title and shared recipe files, then prepares them sequentially while checking the shared deadline between driver calls.
  • Documents exact-history requirements and old-manifest behavior 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: 2157 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: aca2aef5a973d9f71ed157c9991bfae461f2db80
gpu: NVIDIA GeForce RTX 4090
title: local-regression
seconds: 10
exit: 0x0
frames shown: 105 (PresentX 106)
presents per 2 s (last 3): 11 56 33
device removals: 0
crashes: 0
peak commit: 8250 MB

Not tested

  • AMD GPUs.
  • The smoke run used XCL_PREPARE=0; it validates runtime regression but not large-manifest graphics/mesh preparation latency.

AI use

  • Codex with GPT-5 implemented, reviewed, and tested the change.
<!-- greyfinch-sync:ivall/xcl:issue:5543141900 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3197). Originally posted by [bmjask](https://github.com/bmjask) on 2026-11-28T18:07:45Z. --- Stacked on #3196; only the top commit belongs here. Uses exact recipe identities captured by the preceding PR to prepare recorded graphics and mesh pipelines before title entry. Compute and graphics selections share the existing 500-pipeline cap and bounded deadline; ambiguous rows from older manifests are skipped safely. **What is in it** - `aca2aef5` selects exact graphics/mesh recipes alongside compute history in `crates/xcl/src/shaders/milestone.rs`. - Resolves and validates recorded recipes from the title and shared recipe files, then prepares them sequentially while checking the shared deadline between driver calls. - Documents exact-history requirements and old-manifest behavior 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`: 2157 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: aca2aef5a973d9f71ed157c9991bfae461f2db80 gpu: NVIDIA GeForce RTX 4090 title: local-regression seconds: 10 exit: 0x0 frames shown: 105 (PresentX 106) presents per 2 s (last 3): 11 56 33 device removals: 0 crashes: 0 peak commit: 8250 MB ``` **Not tested** - AMD GPUs. - The smoke run used `XCL_PREPARE=0`; it validates runtime regression but not large-manifest graphics/mesh preparation latency. **AI use** - Codex with GPT-5 implemented, reviewed, and tested the change.
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!3197
No description provided.