Diagnostics: label translated pipelines in PIX captures #2566
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2566
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@mokkamokacaffe on GitHub · 2026-11-25 23:03 UTC · original
mokkamokacaffe:diagnostics/pix-pipeline-markers→main· +22 −6 · 3 files · 1 commits · draftPart 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
main:cargo test -p xcl --lib: all tests that ran passed, 0 failed, 26 ignored.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
Pending paired
xcl-smokeblocks from currentmainand this PR's clean head, with the same title and duration.Not 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.
@DavidM1911 on GitHub · 2026-11-25 23:19 UTC · original
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
@ -35,3 +37,3 @@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())@luckyteagirl on GitHub · 2026-11-26 03:27 UTC · original
XCL_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.
@ -35,3 +37,3 @@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())@mokkamokacaffe on GitHub · 2026-11-26 03:32 UTC · original
Good 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).
@SlopTart on GitHub · 2026-11-26 05:13 UTC · original
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.
@luckyteagirl on GitHub · 2026-11-26 03:27 UTC · original · reviewed
Source-derived dependency between PIX marker recording and console-list reset handling. No local PIX capture.
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.