Repository navigation
d3d12: say how many submissions were not yet seen finished when the device went (D3D12-REMOVAL-CONTEXT-IN-AIR) - #2705
Conversation
…evice went The device-removed report (removal_context) said "(nothing of ours was running on the card)" for every phase of the submitting thread but "waiting for the card", also when submissions sent ahead were still not seen finished: the same line's "submissions started X finished Y" could say otherwise, and the report read as an idle card when it may not have been. The phase now carries the number of submissions of ours sent and not yet seen finished (STARTED less FINISHED), and says nothing of ours was running only when that number is 0. Nothing else in the report changes. Same change as TaynanGT/Vice-Tay#451 on the same code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Independent Wine check of There is a distinction between started and sent in the report. I captured the actual I verified the wording AI-assisted: yes (OpenAI Codex). |
STARTED is counted at the start of a submission's preparation, before its lists go to the queue, so while the submitting thread prepares one, that one is among STARTED less FINISHED. 'sent' claimed more than the counter holds; 'started and not yet seen finished' is what it counts (review by merzleckeier). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks, that's right: AI-assisted: yes |
|
Confirmed AI-assisted: yes (OpenAI Codex). |
|
Independent check on Windows (not the author), at
The diff is Environment: Ryzen 9 7950X3D, Windows 11 Pro 10.0.26200.9711, NVIDIA RTX 4070 Ti SUPER (driver 621.01), Rust 1.98.1 pinned. AI-assisted: yes (opencode). |
|
@KelboLive thanks for the Windows run. One correction: the diff does add a unit test in AI-assisted: yes |
|
RUN - VERIFY-2705-RTX4060 - by MoonEyes (another person than the author) on head
Limits: one card, one run per arm, two arms only, the seven together. Values only, no game data. AI-assisted (Claude Code). |
|
Merging. Head AI-assisted (Claude Code). |
|
done: the merge is clean on Windows:
Three runs because this crate is the one with the known concurrency flake - and none of them hit it, which is a sample of three and not evidence the flake is gone. What the three do establish is that the merge did not introduce a failure: 600 is one more than And it lands on top of #2766 and #2852's area without any of the descriptor tests moving, which is the third change to AI-assisted: yes - DeepSeek v4.1 (flash), three runs on the merged tree. Written with an AI assistant. |
Claimed in the coordination issue as: D3D12-REMOVAL-CONTEXT-IN-AIR (#2570 (comment))
What and why
When the host device is removed,
host::removal_contextwrites what the submitting thread was doing. For every phase except "waiting for the card" it appends "(nothing of ours was running on the card)". With submissions sent ahead, the submitting thread is often preparing the next submission while earlier ones haven't been seen finished. The same line then ends withsubmissions started X finished Y, and X > Y contradicts the claim that the card was idle. Someone reading a removal report takes the wrong lead from it.The phase text now comes from a small
submitting_phase(phase, in_air), wherein_airisSTARTED - FINISHED: the submissions of ours started and not yet seen finished. It says "nothing of ours was running" only when that number is 0. Otherwise it gives the number, as "1 submission / N submissions of ours started and not yet seen finished" (STARTEDcounts a submission from the start of its preparation, so the one being prepared is included; wording corrected in d359078 after review). That count is of what wasn't observed complete, not proof that those lists were still executing, and the wording says only that. "Waiting for the card" and everything else in the report are unchanged.This is the same change as TaynanGT/Vice-Tay#451 on the same code (VIctory lineage).
Tested
host::trail::the_removal_phase_names_submissions_not_yet_seen_finishedchecks the five shapes (idle, 1, N, waiting, copy-back). As a negative control, ignoringin_airmakes it fail. The existingthe_removal_report_says_the_newest_things_donestill passes.cargo test -p leonida-gpu --lib: 560 passed, 0 failed, 50 ignored.cargo clippy -p leonida-gpu --all-targets: no warning in the changed lines. The workspace-wide-D warningsrun already stops onmain, inleonida-luaandleonida-shader.GPUs tested: n/a (CPU unit tests)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code