Diagnostics: identify translated shaders in PIX GPU captures #2561

Open
opened 2026-11-26 05:33:49 +00:00 by github-bot · 0 comments
Owner

@⁠mokkamokacaffe on GitHub · 2026-11-25 23:01 UTC · original

Diagnostics: identify translated shaders in PIX GPU captures

Summary

Expose XCL's existing translated-pipeline labels as D3D12 marker text so a PIX GPU capture can identify the console shader hashes bound at each pipeline change.

Part of #1269.

Motivation

With XCL_DRED=1, XCL already inserts a D3D12 marker after a translated pipeline is bound and keeps the corresponding console shader hashes in a private map. The marker text is currently the generic string xcl pipeline, so a PIX capture cannot identify the shader from the GPU event stream alone.

The existing label has the form cs HASH, vs HASH ps HASH, ms HASH ps HASH, or vs HASH gs HASH ps HASH. Putting this label in the marker text lets a capture be matched to XCL shader dumps and diagnostic manifests without adding WinPixEventRuntime.

Proposed behavior

  • XCL_PIX=1 enables XCL's pipeline-label tracking and marker insertion without forcing DRED collection.
  • Each translated pipeline bind records a UTF-16 D3D12 marker such as xcl vs 0123… ps 4567….
  • XCL_DRED=1 retains its existing behavior and receives the more descriptive marker text as well.
  • Ordinary runs add no marker or label-tracking work.

Success criteria

  • A Windows PIX capture shows the XCL marker text at translated pipeline binds.
  • The hashes match XCL's shader dumps for the same pipeline.
  • Existing DRED pipeline attribution remains correct.
  • Paired smoke runs show no correctness regression.

AI use

OpenAI Codex inspected XCL's DRED pipeline-label path and drafted this proposal.

**@⁠mokkamokacaffe** on GitHub · 2026-11-25 23:01 UTC · [original](https://github.com/xcl-dev/xcl/issues/2561) # Diagnostics: identify translated shaders in PIX GPU captures ## Summary Expose XCL's existing translated-pipeline labels as D3D12 marker text so a PIX GPU capture can identify the console shader hashes bound at each pipeline change. Part of #1269. ## Motivation With `XCL_DRED=1`, XCL already inserts a D3D12 marker after a translated pipeline is bound and keeps the corresponding console shader hashes in a private map. The marker text is currently the generic string `xcl pipeline`, so a PIX capture cannot identify the shader from the GPU event stream alone. The existing label has the form `cs HASH`, `vs HASH ps HASH`, `ms HASH ps HASH`, or `vs HASH gs HASH ps HASH`. Putting this label in the marker text lets a capture be matched to XCL shader dumps and diagnostic manifests without adding WinPixEventRuntime. ## Proposed behavior - `XCL_PIX=1` enables XCL's pipeline-label tracking and marker insertion without forcing DRED collection. - Each translated pipeline bind records a UTF-16 D3D12 marker such as `xcl vs 0123… ps 4567…`. - `XCL_DRED=1` retains its existing behavior and receives the more descriptive marker text as well. - Ordinary runs add no marker or label-tracking work. ## Success criteria - A Windows PIX capture shows the XCL marker text at translated pipeline binds. - The hashes match XCL's shader dumps for the same pipeline. - Existing DRED pipeline attribution remains correct. - Paired smoke runs show no correctness regression. ## AI use OpenAI Codex inspected XCL's DRED pipeline-label path and drafted this proposal.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:33:49 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.