Report DXIL cache activity and compilation failures #50

Manually merged
github merged 1 commit from gh-pr/50/head into gh-pr/50/base 2026-11-26 04:06:30 +00:00
Owner

@⁠Mavixot on GitHub · 2026-11-22 22:29 UTC · original
pso-cache-diagnostics → main · +204 −4 · 2 files · 1 commits · merged 2026-11-22 22:38 UTC

adds dxil cache stats and compile errors to report.json for runtime pso creation. cache-only misses are counted separately, and the first 20 distinct errors include the shader profile, cache file and dxc output. build + workspace tests pass, no retail samples available.

**@⁠Mavixot** on GitHub · 2026-11-22 22:29 UTC · [original](https://github.com/xcl-dev/xcl/pull/50) `pso-cache-diagnostics` → `main` · +204 −4 · 2 files · 1 commits · merged 2026-11-22 22:38 UTC adds dxil cache stats and compile errors to `report.json` for runtime pso creation. cache-only misses are counted separately, and the first 20 distinct errors include the shader profile, cache file and dxc output. build + workspace tests pass, no retail samples available.
Include runtime shader-cache statistics in report.json, separating deferred PSO probes from compilation failures. Retain bounded compiler diagnostics with cache and shader-profile context.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:06:28 +00:00
github manually merged commit a3feb68b94 into gh-pr/50/base 2026-11-26 04:06:30 +00:00
Author
Owner

@⁠ivall on GitHub · 2026-11-22 22:38 UTC · original

Thanks, merged! I tested it together with #51 on top of current main, with the MSVC toolchain on Windows and an RX 9070:

  • All tests pass: 342 lib tests with your three, the e2e test title, and the GPU tests.
  • The Compiling guard from 521ec08 (the XCL window's "compiling shaders" count) survived the rewrite of compile_cached_in_with.
  • Nothing matches on the DXC error strings, so the longer messages are safe.
  • A Minecraft run writes "dxil_cache": {"hits": 28, "misses": 0, …} to report.json with a warm cache.

The compilation_errors samples with the cache file name will help with reports like #42's.

**@⁠ivall** on GitHub · 2026-11-22 22:38 UTC · [original](https://github.com/xcl-dev/xcl/pull/50#issuecomment-7086971064) Thanks, merged! I tested it together with #51 on top of current `main`, with the MSVC toolchain on Windows and an RX 9070: - All tests pass: 342 lib tests with your three, the e2e test title, and the GPU tests. - The `Compiling` guard from 521ec08 (the XCL window's "compiling shaders" count) survived the rewrite of `compile_cached_in_with`. - Nothing matches on the DXC error strings, so the longer messages are safe. - A Minecraft run writes `"dxil_cache": {"hits": 28, "misses": 0, …}` to `report.json` with a warm cache. The `compilation_errors` samples with the cache file name will help with reports like #42's.
This discussion has been locked. Commenting is limited to contributors.
No description provided.