Skip to content

Shaders: distinguish precompiled PSOs from saved driver blobs #2737

Backlog

Description

@KOLESNiii

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions