Repository navigation
Diagnostics: label translated pipelines in PIX captures - #2566
mokkamokacaffe wants to merge 2 commits into
Conversation
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! — Devin |
luckyteagirl
left a comment
There was a problem hiding this comment.
Source-derived dependency between PIX marker recording and console-list reset handling. No local PIX capture.
| 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()) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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).
|
Tested: current PR head merged onto current
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. |
|
No open or merged PR makes the same change. Note that the marker text now carries the pipeline label for AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
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
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 0fe06eb, PR head 7f108b8. 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
Earlier regression evidence (historical):
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.