Diagnostics: label translated pipelines in PIX captures #2556
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2566"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 independentXCL_PIX=1switch for captures.What is in it
crates/xcl/src/hle/d3d12x/dred.rs: enable pipeline-label tracking for eitherXCL_DREDorXCL_PIXand write the existing stage/hash label as terminated UTF-16 marker text.README.md: documentXCL_PIX=1and that it uses the D3D12 command-list marker API directly, with no WinPixEventRuntime dependency.Example marker text:
Tested
Contributor integration test of head
7f108b8don maina815de93, 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 reportWindows 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 head7f108b8d03. 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
PR
Pending PIX verification — The paired smoke above is complete. A multi-frame PIX capture should check that marker history restarts after console-list
ResetandKickoffX. The source review identified related recording-restart work in #2510. Reset-path reviewNot tested
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.
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
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.
Imported from ivall/xcl. Originally posted by mokkamokacaffe on 2026-11-26T03:32:41Z.
Review: COMMENTED
No description provided.
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 39XCL_PIX=1now activates DRED'sMARKSrecording even whenXCL_DREDis unset, but the console-listResetandKickoffXpaths 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.
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 39Good catch — I confirmed the dependency at
72e9487.XCL_PIX=1enables the sharedMARKSrecorder, whilelist_x::reset_pcandkickoff_xcall the native Reset directly and therefore bypassreal::cl_reset. Without #2510, those paths keep appending markers to the previous recording, so the per-list history can span frames and theRECORDINGScap 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_TESThook while extendingon()to enable recording for eitherXCL_DREDorXCL_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).
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 targetx86_64-pc-windows-gnurun 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.
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.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:23:08Z.
Triage (#1607) – head
7f108b8No open or merged PR makes the same change. Note that the marker text now carries the pipeline label for
XCL_DRED=1too, not onlyXCL_PIX=1, andXCL_PIX=1turns on all ofdred::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.
Imported from ivall/xcl. Originally posted by fromthemoonx on 2026-12-03T14:24:35Z.
merge-check
base:
a815de932chead:
7f108b8d03merge: 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_asynctest 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.
SetMarkerhook andXCL_PIX=1, a labelled pipeline on a real command list gives metadata 0 and the terminated UTF-16 textxcl vs 2bf5b359c07353c9 ps 8f379aa225d0f83f, the same hashes as thefnv64of the shader bytes. The list ran with 0 debug-layer messages.xcl runwith the debug layer on,XCL_PIX=1gives 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.XCL_DRED=1the marker text changes too; the marker count is the same, and that count is what DRED's attribution uses.XCL_PIX=1set for the test run, thehle::d3d12xlibrary tests crash inbindandlist_x. Main crashes in the same way withXCL_DRED=1. Thebindtest I looked at uses a fake command list. The otherhle::d3d12xmodules run with it.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)
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.