Repository navigation
Conversation
… done When the GPU-wait watchdog releases a wait (xcl-dev#505), its lines say which queues wait on which, but not what the GPU is running. With XCL_GPU_CULPRIT=1 every dispatch XCL records (title lists, console-recorded lists, ExecuteIndirect of a translated compute pipeline) is wrapped in WriteBufferImmediate markers, in before and out after, one pair of words per PC list in a readback buffer. At a release the lists whose marker in is above their marker out are logged with the dispatches between the two: console CS (fnv64 of the title's bytecode), PC pipeline and groups. On the retail title of xcl-dev#505 (RTX 5080) this named, at each stall, one list with a run of 1-D dispatches of one CS whose first never finished; not the same CS from run to run. DRED breadcrumbs were tried first: they change the driver's pipeline cache keys, so every pipeline was built again and the title never got past its start. Off by default; without the variable nothing is recorded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tches When the culprit report names a dispatch that started and did not finish, the next question is what the title passed it. Two retail compute programs (a542b07e605c8fd7, 777348c43857fdd2) loop over a count the title supplies in a constant buffer and exit only on equality (xcl-dev#1452): a stale or garbage count keeps the GPU inside one dispatch until the device is removed. With XCL_GPU_CULPRIT_ARGS=<cs hash>[,...] the dispatches of those console shaders keep their root arguments at record time: root constants, and the first 16 words of each root buffer. A not-done dispatch in the report is then logged with them and with each root buffer's words read again at report time, so a count can be compared as recorded and as it is now. Nothing changes without the variable. Assisted-by: Claude Code (Claude Opus 5.5)
Prime1997
marked this pull request as ready for review
November 25, 2026 10:41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Prime. · project thread
When
XCL_GPU_CULPRITnames a dispatch that started and did not finish, the next question is what the title passed it. Two retail compute programs,a542b07e605c8fd7and777348c43857fdd2, loop over a count the title supplies in a constant buffer and exit only on equality (analysis in #1452). A stale or garbage count would keep the GPU inside one dispatch until the device is removed. WithXCL_GPU_CULPRIT_ARGS=<cs hash>[,...], the not-done dispatches of those shaders are logged with their root arguments: root constants, and the first 16 words of each root buffer, both as recorded and as read again when the report is made. Nothing changes without the variable. Part of #1452.Stacked on #1323; only the top commit (
7e197a7) belongs here. #1323 conflicts with currentmainin two places (bind.rsExecuteIndirect,list_x.rswatchdog log), so this branch carries #1323's commit rebased onto568e7dbwith those two resolved, its authorship kept.What is in it
crates/xcl/src/hle/d3d12x/culprit.rs:XCL_GPU_CULPRIT_ARGSparsing, the root-argument description, the kept arguments per dispatch number (capped at 4096), and their lines in the culprit report.crates/xcl/src/hle/d3d12x/bind.rs: a translatedDispatchwith a culprit marker keeps its root arguments when its shader is named.Tested
cargo test --workspace --no-fail-fast -- --test-threads=4at7e197a7: 1159 passed, 0 failed, 46 ignored; 25SKIPPEDlines (no wave64 on this adapter; per-lane form refused for some f16/f32 cases; driver cache cannot be disabled).culprit_args_hashes_parse_as_printed,root_arguments_are_described_with_their_buffers;cargo test -p xcl --lib culprit: 5 passed, 0 failed.Regression run
Both runs are no-input and stop at the start screen, so they do not reach the dispatch this reports on, and they ran without
XCL_GPU_CULPRIT.Not tested
XCL_GPU_CULPRIT=1 XCL_GPU_CULPRIT_ARGS=a542b07e605c8fd7,777348c43857fdd2is pending, so no count has been read yet. This stays a draft until that run is in.I use a temporary Discord to coordinate my work. Anyone helping test XCL or compare results is welcome. Test coordination on Discord
AI use
🤖 Generated with Claude Code