Shaders: report bounded preparation timing #3198

Merged
bmjask merged 4 commits from upstream-pr/3198 into main 2026-11-28 19:23:13 +00:00
bmjask commented 2026-11-28 18:07:57 +00:00 (Migrated from github.com)

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


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

Adds bounded-preparation timing and cache-outcome telemetry so slow launch preparation can be attributed to individual driver calls and cache paths. It does not change cache identity or scheduling policy.

What is in it

  • b19254be reports calls taking at least one second with pipeline kind/key, elapsed time, and remaining budget.
  • Adds aggregate wall/call time, slowest call, over-budget time, compute cache outcomes, and graphics driver-cache hit/reject/store deltas.

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: 2158 passed, 0 failed, 48 ignored; 26 tests explicitly reported SKIPPED on this adapter/configuration.
  • cargo build --workspace: passed.
  • 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: b19254be1627db04b6b59b71acfd2f7b7c07d861
gpu: NVIDIA GeForce RTX 4090
title: local-regression
seconds: 10
exit: 0x0
frames shown: 107 (PresentX 107)
presents per 2 s (last 3): 0 13 57
device removals: 0
crashes: 0
peak commit: 8137 MB

Not tested

  • AMD GPUs.
  • The regression run disables preparation and therefore does not produce slow-call telemetry from a large history workload.

AI use

  • Codex with GPT-5 implemented, reviewed, and tested the change.
<!-- greyfinch-sync:ivall/xcl:issue:5543143463 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/3198). Originally posted by [bmjask](https://github.com/bmjask) on 2026-11-28T18:07:57Z. --- Stacked on #3197; only the top commit belongs here. Adds bounded-preparation timing and cache-outcome telemetry so slow launch preparation can be attributed to individual driver calls and cache paths. It does not change cache identity or scheduling policy. **What is in it** - `b19254be` reports calls taking at least one second with pipeline kind/key, elapsed time, and remaining budget. - Adds aggregate wall/call time, slowest call, over-budget time, compute cache outcomes, and graphics driver-cache hit/reject/store deltas. **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`: 2158 passed, 0 failed, 48 ignored; 26 tests explicitly reported `SKIPPED` on this adapter/configuration. - `cargo build --workspace`: passed. - `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: b19254be1627db04b6b59b71acfd2f7b7c07d861 gpu: NVIDIA GeForce RTX 4090 title: local-regression seconds: 10 exit: 0x0 frames shown: 107 (PresentX 107) presents per 2 s (last 3): 0 13 57 device removals: 0 crashes: 0 peak commit: 8137 MB ``` **Not tested** - AMD GPUs. - The regression run disables preparation and therefore does not produce slow-call telemetry from a large history workload. **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!3198
No description provided.