Diagnostics: identify translated shaders in PIX GPU captures #2551

Open
opened 2026-11-25 23:01:23 +00:00 by mokkamokacaffe · 0 comments
mokkamokacaffe commented 2026-11-25 23:01:23 +00:00 (Migrated from github.com)
Contributor

Imported from ivall/xcl. Originally posted by mokkamokacaffe on 2026-11-25T23:01:23Z.


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.

<!-- greyfinch-sync:ivall/xcl:issue:6615513553 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2561). Originally posted by [mokkamokacaffe](https://github.com/mokkamokacaffe) on 2026-11-25T23:01:23Z. --- # 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.
Sign in to join this conversation.
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#2551
No description provided.