Report DXIL cache activity and compilation failures #49

Merged
Mavixot merged 1 commit from upstream-pr/50 into main 2026-11-22 22:38:24 +00:00
Mavixot commented 2026-11-22 22:29:43 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Mavixot on 2026-11-22T22:29:43Z.


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.

<!-- greyfinch-sync:ivall/xcl:issue:6548642098 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/50). Originally posted by [Mavixot](https://github.com/Mavixot) on 2026-11-22T22:29:43Z. --- 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.
upstream-sync closed this pull request 2026-11-24 06:56:55 +00:00
ivall commented 2026-11-24 07:00:21 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by ivall on 2026-11-22T22:38:38Z.


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.

<!-- greyfinch-sync:ivall/xcl:comment:7086971064 --> Imported from [ivall/xcl](https://github.com/ivall/xcl/pull/50#issuecomment-7086971064). Originally posted by [ivall](https://github.com/ivall) on 2026-11-22T22:38:38Z. --- 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.
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!49
No description provided.