Diagnostics: label translated pipelines in PIX captures #2556

Open
mokkamokacaffe wants to merge 2 commits from upstream-pr/2566 into main
mokkamokacaffe commented 2026-11-25 23:03:58 +00:00 (Migrated from github.com)

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


Part of #1269.

XCL already inserts a D3D12 marker after each translated pipeline bind for DRED attribution, but the GPU-visible text is only xcl pipeline. This exposes the existing console shader label in that marker and adds an independent XCL_PIX=1 switch for captures.

What is in it

  • crates/xcl/src/hle/d3d12x/dred.rs: enable pipeline-label tracking for either XCL_DRED or XCL_PIX and write the existing stage/hash label as terminated UTF-16 marker text.
  • Preserve the marker ordering used by DRED and the title-marker accounting that keeps its breadcrumb indices aligned.
  • Add focused coverage for the exact marker encoding and label text.
  • README.md: document XCL_PIX=1 and that it uses the D3D12 command-list marker API directly, with no WinPixEventRuntime dependency.

Example marker text:

xcl vs 0123456789abcdef ps fedcba9876543210

Tested

  • Contributor integration test of head 7f108b8d on main a815de93, Windows 11 and RTX 3060 (610.88): workspace build passed. The four-thread workspace run reported 3,019 passed, 0 failed, 56 ignored and 26 explicit skips. A debug-layer run recorded six markers with XCL_PIX enabled and zero with both switches off. The title used untranslated pipelines. Separate forced-switch library runs crashed in bind and list_x; the reporter observed the same behavior on main with DRED enabled. Interactive PIX display, device removal and retail gameplay were outside this run.

  • On 7f108b8d, the Windows workspace passed 2,741 tests (49 ignored), the focused UTF-16 marker test passed, and the paired retail smoke completed. On an earlier Wine/Proton integration (merge SHA unreported), SlopTart also verified marker encoding on an RX 7900 XT; the cold GPU suite reported 165 passed and three reported baseline failures. AMD report

  • Windows 11 with an NVIDIA GeForce RTX 3060 Ti, branch merged with the contributor's current main:

    • cargo test -p xcl --lib: all tests that ran passed, 0 failed, 26 ignored.
  • Linux x86-64, Rust 1.100.0, compile-only Windows MSVC target at clean head 72e94879f2680935608975a993e1663889c66838:

    • cargo check -p xcl --tests --target x86_64-pc-windows-msvc: passed, including the new marker-encoding test.
  • git diff --check: passed.

The Windows test report establishes that the library suite passes on an NVIDIA machine after integration with main; it does not by itself verify marker presentation in a PIX capture.

Regression run

Conflict repair on pinned main 0fe06eb0f0, PR head 7f108b8d03. Workspace: 2741 passed, 0 failed, 49 ignored, 27 explicit SKIPPED lines. The focused marker encoding test passed. An interactive PIX capture was not exercised in this repair. Both release smokes used separate empty XCL caches and XCL_PREPARE=0 on the same RTX 4080 SUPER. OpenAI Codex reconciled the changes, ran validation, and prepared this update.

Main

xcl-smoke v1
commit: 0fe06eb0f05459007ebfffc67bb9983acb3a832d
gpu: NVIDIA GeForce RTX 4080 SUPER
title: retail-local
seconds: 60
exit: 0x0
frames shown: 1584 (PresentX 1584)
presents per 2 s (last 3): 60 60 60
device removals: 0
crashes: 0
peak commit: 16004 MB

PR

xcl-smoke v1
commit: 7f108b8d0378be39cfa6b546d87c5fe465743056
gpu: NVIDIA GeForce RTX 4080 SUPER
title: retail-local
seconds: 60
exit: 0x0
frames shown: 1620 (PresentX 1620)
presents per 2 s (last 3): 61 58 61
device removals: 0
crashes: 0
peak commit: 16493 MB

Pending PIX verification — The paired smoke above is complete. A multi-frame PIX capture should check that marker history restarts after console-list Reset and KickoffX. The source review identified related recording-restart work in #2510. Reset-path review

Not tested

  • A Windows PIX capture confirming that PIX displays the D3D12 marker text and associates it with the expected command list.
  • A forced device removal confirming that DRED attribution remains aligned after the marker text change.
  • AMD and Intel runtime behavior on the repaired head.

AI use

OpenAI Codex inspected the existing DRED marker and pipeline-label flow, implemented the opt-in PIX path and UTF-16 regression coverage, ran the Windows-target compile check, reviewed the external Windows/NVIDIA test report, and drafted this description.

<!-- greyfinch-sync:ivall/xcl:issue:5500688379 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2566). Originally posted by [mokkamokacaffe](https://github.com/mokkamokacaffe) on 2026-11-25T23:03:58Z. --- Part of #1269. XCL already inserts a D3D12 marker after each translated pipeline bind for DRED attribution, but the GPU-visible text is only `xcl pipeline`. This exposes the existing console shader label in that marker and adds an independent `XCL_PIX=1` switch for captures. **What is in it** - `crates/xcl/src/hle/d3d12x/dred.rs`: enable pipeline-label tracking for either `XCL_DRED` or `XCL_PIX` and write the existing stage/hash label as terminated UTF-16 marker text. - Preserve the marker ordering used by DRED and the title-marker accounting that keeps its breadcrumb indices aligned. - Add focused coverage for the exact marker encoding and label text. - `README.md`: document `XCL_PIX=1` and that it uses the D3D12 command-list marker API directly, with no WinPixEventRuntime dependency. Example marker text: ```text xcl vs 0123456789abcdef ps fedcba9876543210 ``` **Tested** - [Contributor integration test](https://github.com/xcl-dev/xcl/pull/2566#issuecomment-7381397263) of head `7f108b8d` on main `a815de93`, Windows 11 and RTX 3060 (610.88): workspace build passed. The four-thread workspace run reported 3,019 passed, 0 failed, 56 ignored and 26 explicit skips. A debug-layer run recorded six markers with XCL_PIX enabled and zero with both switches off. The title used untranslated pipelines. Separate forced-switch library runs crashed in bind and list_x; the reporter observed the same behavior on main with DRED enabled. Interactive PIX display, device removal and retail gameplay were outside this run. - On `7f108b8d`, the Windows workspace passed 2,741 tests (49 ignored), the focused UTF-16 marker test passed, and the paired retail smoke completed. On an earlier Wine/Proton integration (merge SHA unreported), SlopTart also verified marker encoding on an RX 7900 XT; the cold GPU suite reported 165 passed and three reported baseline failures. [AMD report](https://github.com/xcl-dev/xcl/pull/2566#issuecomment-7183292931) - Windows 11 with an NVIDIA GeForce RTX 3060 Ti, branch merged with the contributor's current `main`: - `cargo test -p xcl --lib`: all tests that ran passed, 0 failed, 26 ignored. - Linux x86-64, Rust 1.100.0, compile-only Windows MSVC target at clean head `72e94879f2680935608975a993e1663889c66838`: - `cargo check -p xcl --tests --target x86_64-pc-windows-msvc`: passed, including the new marker-encoding test. - `git diff --check`: passed. The Windows test report establishes that the library suite passes on an NVIDIA machine after integration with `main`; it does not by itself verify marker presentation in a PIX capture. **Regression run** Conflict repair on pinned main 0fe06eb0f05459007ebfffc67bb9983acb3a832d, PR head 7f108b8d0378be39cfa6b546d87c5fe465743056. Workspace: 2741 passed, 0 failed, 49 ignored, 27 explicit SKIPPED lines. The focused marker encoding test passed. An interactive PIX capture was not exercised in this repair. Both release smokes used separate empty XCL caches and XCL_PREPARE=0 on the same RTX 4080 SUPER. OpenAI Codex reconciled the changes, ran validation, and prepared this update. Main ``` xcl-smoke v1 commit: 0fe06eb0f05459007ebfffc67bb9983acb3a832d gpu: NVIDIA GeForce RTX 4080 SUPER title: retail-local seconds: 60 exit: 0x0 frames shown: 1584 (PresentX 1584) presents per 2 s (last 3): 60 60 60 device removals: 0 crashes: 0 peak commit: 16004 MB ``` PR ``` xcl-smoke v1 commit: 7f108b8d0378be39cfa6b546d87c5fe465743056 gpu: NVIDIA GeForce RTX 4080 SUPER title: retail-local seconds: 60 exit: 0x0 frames shown: 1620 (PresentX 1620) presents per 2 s (last 3): 61 58 61 device removals: 0 crashes: 0 peak commit: 16493 MB ``` **Pending PIX verification** — The paired smoke above is complete. A multi-frame PIX capture should check that marker history restarts after console-list `Reset` and `KickoffX`. The source review identified related recording-restart work in #2510. [Reset-path review](https://github.com/xcl-dev/xcl/pull/2566#pullrequestreview-6068161250) **Not tested** - A Windows PIX capture confirming that PIX displays the D3D12 marker text and associates it with the expected command list. - A forced device removal confirming that DRED attribution remains aligned after the marker text change. - AMD and Intel runtime behavior on the repaired head. **AI use** OpenAI Codex inspected the existing DRED marker and pipeline-label flow, implemented the opt-in PIX path and UTF-16 regression coverage, ran the Windows-target compile check, reviewed the external Windows/NVIDIA test report, and drafted this description.
DavidM1911 commented 2026-11-26 00:05:39 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T23:19:18Z.


Verification on RTX 3060 Ti (Windows 11), branch merged with current main:

  • cargo test -p xcl --lib: all passed, 0 failed, 26 ignored.

Thanks!

— Devin

<!-- greyfinch-sync:ivall/xcl:comment:7177405240 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2566#issuecomment-7177405240). Originally posted by [DavidM1911](https://github.com/DavidM1911) on 2026-11-25T23:19:18Z. --- Verification on RTX 3060 Ti (Windows 11), branch merged with current `main`: - `cargo test -p xcl --lib`: all passed, 0 failed, 26 ignored. Thanks! — Devin
luckyteagirl commented 2026-11-26 03:27:50 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T03:27:50Z.

Review: COMMENTED


Source-derived dependency between PIX marker recording and console-list reset handling. No local PIX capture.

<!-- greyfinch-sync:ivall/xcl:review:6068161250 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2566#pullrequestreview-6068161250). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-26T03:27:50Z. **Review:** COMMENTED --- Source-derived dependency between PIX marker recording and console-list reset handling. No local PIX capture.
mokkamokacaffe commented 2026-11-26 04:07:22 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by mokkamokacaffe on 2026-11-26T03:32:41Z.

Review: COMMENTED


No description provided.

<!-- greyfinch-sync:ivall/xcl:review:6068190578 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2566#pullrequestreview-6068190578). Originally posted by [mokkamokacaffe](https://github.com/mokkamokacaffe) on 2026-11-26T03:32:41Z. **Review:** COMMENTED --- _No description provided._
luckyteagirl commented 2026-11-26 04:07:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T03:27:51Z.

Code review location: crates/xcl/src/hle/d3d12x/dred.rs; line 39

@@ -34,7 +36,7 @@ thread_local! {
 
 pub fn on() -> bool {
     static ON: OnceLock<bool> = OnceLock::new();
-    *ON.get_or_init(|| std::env::var_os("XCL_DRED").is_some())
+    *ON.get_or_init(|| std::env::var_os("XCL_DRED").is_some() || std::env::var_os("XCL_PIX").is_some())

XCL_PIX=1 now activates DRED's MARKS recording even when XCL_DRED is unset, but the console-list Reset and KickoffX paths still do not start a new recording. On multi-frame captures, marker history can therefore carry across resets and grow. Open PR #2510 already adds the missing recording restart and initial-pipeline marking in those paths. Could #2510 be merged first and this PR refreshed on it, or could the reset wiring be coordinated with its author? A multi-frame marker-history check would cover the combined behavior. This is a source-derived dependency; I did not run a PIX capture.

AI-assisted review: OpenAI Codex (GPT-6; exact serving variant unavailable) and a Luna subagent.

<!-- greyfinch-sync:ivall/xcl:review-comment:4703560316 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2566#discussion_r4703560316). Originally posted by [luckyteagirl](https://github.com/luckyteagirl) on 2026-11-26T03:27:51Z. **Code review location:** `crates/xcl/src/hle/d3d12x/dred.rs`; line 39 ~~~~diff @@ -34,7 +36,7 @@ thread_local! { pub fn on() -> bool { static ON: OnceLock<bool> = OnceLock::new(); - *ON.get_or_init(|| std::env::var_os("XCL_DRED").is_some()) + *ON.get_or_init(|| std::env::var_os("XCL_DRED").is_some() || std::env::var_os("XCL_PIX").is_some()) ~~~~ --- `XCL_PIX=1` now activates DRED's `MARKS` recording even when `XCL_DRED` is unset, but the console-list `Reset` and `KickoffX` paths still do not start a new recording. On multi-frame captures, marker history can therefore carry across resets and grow. Open PR #2510 already adds the missing recording restart and initial-pipeline marking in those paths. Could #2510 be merged first and this PR refreshed on it, or could the reset wiring be coordinated with its author? A multi-frame marker-history check would cover the combined behavior. This is a source-derived dependency; I did not run a PIX capture. AI-assisted review: OpenAI Codex (GPT-6; exact serving variant unavailable) and a Luna subagent.
mokkamokacaffe commented 2026-11-26 04:07:48 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by mokkamokacaffe on 2026-11-26T03:32:41Z.

Code review location: crates/xcl/src/hle/d3d12x/dred.rs; line 39

@@ -34,7 +36,7 @@ thread_local! {
 
 pub fn on() -> bool {
     static ON: OnceLock<bool> = OnceLock::new();
-    *ON.get_or_init(|| std::env::var_os("XCL_DRED").is_some())
+    *ON.get_or_init(|| std::env::var_os("XCL_DRED").is_some() || std::env::var_os("XCL_PIX").is_some())

Good catch — I confirmed the dependency at 72e9487.

XCL_PIX=1 enables the shared MARKS recorder, while list_x::reset_pc and kickoff_x call the native Reset directly and therefore bypass real::cl_reset. Without #2510, those paths keep appending markers to the previous recording, so the per-list history can span frames and the RECORDINGS cap is not applied.

#2510 already provides the appropriate post-successful-Reset wiring, records the initial pipeline, and includes a ten-frame test verifying that only four recordings are retained. I will avoid duplicating that work: this PR will be refreshed on #2510 after it lands, preserving its ON_FOR_TEST hook while extending on() to enable recording for either XCL_DRED or XCL_PIX.

After refreshing, I’ll rerun the combined multi-frame recording test and the PIX marker-text test. I’ll leave this thread open until that integration is present. Thank you for catching the interaction.

AI-assisted review: OpenAI Codex (GPT-6.2 Astra, Ultra reasoning).

<!-- greyfinch-sync:ivall/xcl:review-comment:4703585842 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2566#discussion_r4703585842). Originally posted by [mokkamokacaffe](https://github.com/mokkamokacaffe) on 2026-11-26T03:32:41Z. **Code review location:** `crates/xcl/src/hle/d3d12x/dred.rs`; line 39 ~~~~diff @@ -34,7 +36,7 @@ thread_local! { pub fn on() -> bool { static ON: OnceLock<bool> = OnceLock::new(); - *ON.get_or_init(|| std::env::var_os("XCL_DRED").is_some()) + *ON.get_or_init(|| std::env::var_os("XCL_DRED").is_some() || std::env::var_os("XCL_PIX").is_some()) ~~~~ --- Good catch — I confirmed the dependency at `72e9487`. `XCL_PIX=1` enables the shared `MARKS` recorder, while `list_x::reset_pc` and `kickoff_x` call the native Reset directly and therefore bypass `real::cl_reset`. Without #2510, those paths keep appending markers to the previous recording, so the per-list history can span frames and the `RECORDINGS` cap is not applied. #2510 already provides the appropriate post-successful-Reset wiring, records the initial pipeline, and includes a ten-frame test verifying that only four recordings are retained. I will avoid duplicating that work: this PR will be refreshed on #2510 after it lands, preserving its `ON_FOR_TEST` hook while extending `on()` to enable recording for either `XCL_DRED` or `XCL_PIX`. After refreshing, I’ll rerun the combined multi-frame recording test and the PIX marker-text test. I’ll leave this thread open until that integration is present. Thank you for catching the interaction. AI-assisted review: OpenAI Codex (GPT-6.2 Astra, Ultra reasoning).
SlopTart commented 2026-11-26 06:06:40 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-26T05:13:31Z.


Tested: current PR head merged onto current origin/main (clean), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, Radeon RX 7900 XT (NAVI31), cargo target x86_64-pc-windows-gnu run under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29).

gpu_ suite (cold cache): 165 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR.
Targeted run of pix_marker_contains_the_pipeline_label_as_terminated_utf16: passed. PIX itself is Windows tooling; this lane only checks the marker encoding, which is all the test claims.

Not tested: retail titles (no title data on this lane, counts only).

AI use: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.

<!-- greyfinch-sync:ivall/xcl:comment:7183292931 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2566#issuecomment-7183292931). Originally posted by [SlopTart](https://github.com/SlopTart) on 2026-11-26T05:13:31Z. --- **Tested**: current PR head merged onto current `origin/main` (clean), Linux (Arch, kernel 7.2.15), Mesa 26.2.5 RADV, Radeon RX 7900 XT (NAVI31), cargo target `x86_64-pc-windows-gnu` run under wine-11.0 (Proton), rustc 1.94.0, vkd3d-proton 3.1 with the XCL patch, official MS DXC (binaries 2026-09-29). `gpu_` suite (cold cache): 165 passed / 3 failed, no crashes. The three are the known baseline on this lane (seed-1003 fuzz, mad/mac contraction, promoted-UAV-clear driver gap, PR #2490); none caused by this PR. Targeted run of `pix_marker_contains_the_pipeline_label_as_terminated_utf16`: passed. PIX itself is Windows tooling; this lane only checks the marker encoding, which is all the test claims. **Not tested**: retail titles (no title data on this lane, counts only). **AI use**: Hermes agent (local Qwen-class) ran both machines and drafted this; I checked it before posting.
mokkamokacaffe commented 2026-11-29 19:52:32 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by mokkamokacaffe on 2026-11-29T19:52:32Z.


Now see the DXC information in window title, from DXC 0 to 3.

image
<!-- greyfinch-sync:ivall/xcl:comment:7261628772 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2566#issuecomment-7261628772). Originally posted by [mokkamokacaffe](https://github.com/mokkamokacaffe) on 2026-11-29T19:52:32Z. --- Now see the DXC information in window title, from DXC 0 to 3. <img width="409" height="22" alt="image" src="https://github.com/user-attachments/assets/c53b4620-9d0b-48b8-a5f6-9eb6b159feeb" />
Foniass commented 2026-12-01 08:23:08 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:23:08Z.


Triage (#1607) – head 7f108b8

No open or merged PR makes the same change. Note that the marker text now carries the pipeline label for XCL_DRED=1 too, not only XCL_PIX=1, and XCL_PIX=1 turns on all of dred::on() (label bookkeeping and the watchdog's label lookup), not only the marker text. Both look intended and only apply under the switches. No problems found in the diff.
Recommendation: keep open.

AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.

<!-- greyfinch-sync:ivall/xcl:comment:7305246718 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2566#issuecomment-7305246718). Originally posted by [Foniass](https://github.com/Foniass) on 2026-12-01T08:23:08Z. --- **Triage (#1607)** – head 7f108b8 No open or merged PR makes the same change. Note that the marker text now carries the pipeline label for `XCL_DRED=1` too, not only `XCL_PIX=1`, and `XCL_PIX=1` turns on all of `dred::on()` (label bookkeeping and the watchdog's label lookup), not only the marker text. Both look intended and only apply under the switches. No problems found in the diff. Recommendation: keep open. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
fromthemoonx commented 2026-12-03 14:24:35 +00:00 (Migrated from github.com)

Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-12-03T14:24:35Z.


merge-check
base: a815de932c
head: 7f108b8d03
merge: clean
build: cargo build --workspace -> ok
tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 3019 passed, 0 failed, 56 ignored; SKIPPED: 26 (22 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps, and 1 pso_async test that found no room for a build ahead, "short of commit", on this machine); failing: none.
review: read the whole diff (3 files, +22 -6). No blocking finding.

  1. The marker text is what the description says. With scratch logging in the SetMarker hook and XCL_PIX=1, a labelled pipeline on a real command list gives metadata 0 and the terminated UTF-16 text xcl vs 2bf5b359c07353c9 ps 8f379aa225d0f83f, the same hashes as the fnv64 of the shader bytes. The list ran with 0 debug-layer messages.
  2. The test title runs with it. Under xcl run with the debug layer on, XCL_PIX=1 gives 6 markers and exit 0, and the debug-layer messages are the same as without it. DRED itself stays off. The title's pipelines are not translated, so their markers say "a stand-in, or not translated" instead of hashes.
  3. Without either switch there are no markers (0 in the same run), so the default path does not change. With XCL_DRED=1 the marker text changes too; the marker count is the same, and that count is what DRED's attribution uses.
  4. Not from this PR: with XCL_PIX=1 set for the test run, the hle::d3d12x library tests crash in bind and list_x. Main crashes in the same way with XCL_DRED=1. The bind test I looked at uses a fake command list. The other hle::d3d12x modules run with it.
  5. Not tested: a PIX capture (so not how PIX shows the text), a device removal, a retail title, AMD.
    performance: none by default (reasoned: both switches are read once and the marker code returns at once). With a switch on, each pipeline bind makes one more string.
    verdict: safe to merge
    hardware / tool and model: RTX 3060 12 GB (610.88), Ryzen 7 5700X, Windows 11 Pro 26300 / Claude Code (Claude Opus 5.5)
<!-- greyfinch-sync:ivall/xcl:comment:7381397263 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/pull/2566#issuecomment-7381397263). Originally posted by [fromthemoonx](https://github.com/fromthemoonx) on 2026-12-03T14:24:35Z. --- merge-check base: a815de932c4dc8da3b383ca44f4b094aa406fec9 head: 7f108b8d0378be39cfa6b546d87c5fe465743056 merge: clean build: cargo build --workspace -> ok tests: cargo test --workspace --no-fail-fast -- --test-threads=4 -> 3019 passed, 0 failed, 56 ignored; SKIPPED: 26 (22 no wave64, 2 no heap windows, 1 no GPU_UPLOAD heaps, and 1 `pso_async` test that found no room for a build ahead, "short of commit", on this machine); failing: none. review: read the whole diff (3 files, +22 -6). No blocking finding. 1) **The marker text is what the description says.** With scratch logging in the `SetMarker` hook and `XCL_PIX=1`, a labelled pipeline on a real command list gives metadata 0 and the terminated UTF-16 text `xcl vs 2bf5b359c07353c9 ps 8f379aa225d0f83f`, the same hashes as the `fnv64` of the shader bytes. The list ran with 0 debug-layer messages. 2) **The test title runs with it.** Under `xcl run` with the debug layer on, `XCL_PIX=1` gives 6 markers and exit 0, and the debug-layer messages are the same as without it. DRED itself stays off. The title's pipelines are not translated, so their markers say "a stand-in, or not translated" instead of hashes. 3) Without either switch there are no markers (0 in the same run), so the default path does not change. With `XCL_DRED=1` the marker text changes too; the marker count is the same, and that count is what DRED's attribution uses. 4) Not from this PR: with `XCL_PIX=1` set for the test run, the `hle::d3d12x` library tests crash in `bind` and `list_x`. Main crashes in the same way with `XCL_DRED=1`. The `bind` test I looked at uses a fake command list. The other `hle::d3d12x` modules run with it. 5) Not tested: a PIX capture (so not how PIX shows the text), a device removal, a retail title, AMD. performance: none by default (reasoned: both switches are read once and the marker code returns at once). With a switch on, each pipeline bind makes one more string. verdict: safe to merge hardware / tool and model: RTX 3060 12 GB (610.88), Ryzen 7 5700X, Windows 11 Pro 26300 / Claude Code (Claude Opus 5.5)
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2566:upstream-pr/2566'
git switch 'upstream-pr/2566'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2566'
git switch 'upstream-pr/2566'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2566'
git switch 'upstream-pr/2566'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2566'
git switch 'main'
git merge --squash 'upstream-pr/2566'
git switch 'main'
git merge --ff-only 'upstream-pr/2566'
git switch 'main'
git merge 'upstream-pr/2566'
git push origin 'main'
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!2556
No description provided.