Shaders: distinguish precompiled PSOs from saved driver blobs #2737

Open
opened 2026-11-26 11:14:28 +00:00 by github-bot · 0 comments
Owner

@⁠KOLESNiii on GitHub · 2026-11-26 09:18 UTC · original

Part of #2508 (Pipeline Rebuild) and related to #2088, #2453, #2512 and #2551. Verified on main at b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7.

xcl shaders --precompile --pipelines counts a successful native creation in pipelines made on the GPU. An accepted disk hit increments both made and reused. A cold creation can also increment made when GetCachedBlob fails, returns no bytes, disk caching is disabled, or driver_cache::write returns false. As a result, a successful precompile and a high made count alone cannot establish which persistent XCL artifacts a title can try on relaunch. The native driver may have its own cache. Native create and storage · Summary

Add separate counts for successful creation, accepted XCL disk input, newly saved blobs, unavailable blobs and failed writes. Break down whole and chain artifacts if both are produced by the run. Preserve the current summary for scripts that already read it, or update those consumers explicitly. A deterministic regression can simulate a successful create with an unavailable blob and a failed write. A fresh-process case can verify that a reported persisted entry is discoverable on relaunch.

This concerns the native cache summary. #2613 improves translated-DXIL cache-hit reporting, and #2105 concerned the command's exit code. No Windows timing or filesystem failure was measured for this issue.

AI use was OpenAI Codex (GPT-6, exact serving variant unavailable) for static review and drafting.

**@⁠KOLESNiii** on GitHub · 2026-11-26 09:18 UTC · [original](https://github.com/xcl-dev/xcl/issues/2737) Part of #2508 (Pipeline Rebuild) and related to #2088, #2453, #2512 and #2551. Verified on `main` at `b49be1836844fe0b0cdb3211dce3cb7fb4e21ac7`. `xcl shaders --precompile --pipelines` counts a successful native creation in `pipelines made on the GPU`. An accepted disk hit increments both `made` and `reused`. A cold creation can also increment `made` when `GetCachedBlob` fails, returns no bytes, disk caching is disabled, or `driver_cache::write` returns false. As a result, a successful precompile and a high made count alone cannot establish which persistent XCL artifacts a title can try on relaunch. The native driver may have its own cache. [Native create and storage](https://github.com/xcl-dev/xcl/blob/b49be18/crates/xcl/src/shaders.rs#L1510-L1583) · [Summary](https://github.com/xcl-dev/xcl/blob/b49be18/crates/xcl/src/shaders.rs#L1728-L1738) Add separate counts for successful creation, accepted XCL disk input, newly saved blobs, unavailable blobs and failed writes. Break down whole and chain artifacts if both are produced by the run. Preserve the current summary for scripts that already read it, or update those consumers explicitly. A deterministic regression can simulate a successful create with an unavailable blob and a failed write. A fresh-process case can verify that a reported persisted entry is discoverable on relaunch. This concerns the native cache summary. #2613 improves translated-DXIL cache-hit reporting, and #2105 concerned the command's exit code. No Windows timing or filesystem failure was measured for this issue. AI use was OpenAI Codex (GPT-6, exact serving variant unavailable) for static review and drafting.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 11:14:28 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.