Repository navigation
Conversation
…list split() closed the title's list and only then reset a spare or made a new list for the next segment. When CreateCommandList failed there, it returned with the list already closed and the wrapper still on it: what the title recorded after the Wait went into a closed list and was lost, Write64 cell writes included (a cell then stays recorded and never submitted, as in xcl-dev#1452), and the title's own Close failed. The next segment is now had first: a spare, or a list made closed on no allocator with CreateCommandList1 (create_closed_pc_command_list). It is reset onto the allocator only after the Close, since an allocator backs one recording at a time. With no segment to be had, the list stays open and the wait stays in it, as with XCL_SPLIT_MIDLIST_WAIT=0. A failed Close puts the segment back as a spare; a failed Reset of it falls back to CreateCommandList on the allocator, as before. Part of xcl-dev#1452. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the Reset that opens a split's next segment failed, split() made a list in its place (or gave up) and dropped the failed one without a Release: with the next segment now made by CreateCommandList1 when there is no spare, that leaked a fresh list. It is released now (title_list::release_segment, as the recording's segments are at its Release), before the fallback is made. The test fails the Reset and, in its second half, the fallback too (test-only switches), and checks that the list's reference was released once in both. Part of xcl-dev#1452. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When the Close that ends a mid-list split's segment failed, the list stayed in the recording. Measured on an RTX 2070 SUPER: submitting a list whose Close failed removes the device, and the list fails every later Close and Reset (E_FAIL). It does not hold its allocator: another list opens on it at once. A title with a pipeline statistics query open across a Write64 -> Wait64 split gets there (a split ends only occlusion queries). Now an empty closed list, recorded on the same allocator, takes the failed list's place with what XCL tracked of it (waits, Write64 signals, CPU writes; what it recorded for the GPU is lost), and the recording goes on in the split's next segment. The failed list is never submitted or reused and goes with the wrapper; a failed primary makes the title's next Reset record on another list. With no list to go on in, the failed list still leaves the submission. Part of xcl-dev#2787 (item 4). Stacked on xcl-dev#2717. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Independent Windows check at One remaining fallback fails a separate local test. Starting from the no-continuation fixture, I used the existing |
|
Under Wine + vkd3d-proton on an RTX 4070, at head No run printed Setup: release,
Not tested: a debug build under Wine; the title (which, as the description says, never has a split's Close fail); the whole test suite. AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this comment. Posted without review by a person: the account owner was away and reads replies later. |
When a mid-list split's Close failed and no list could even be recorded empty in its place (the only spare's Reset failed and no list could be made), split returned before the failed list was taken out, so the title's next ExecuteCommandLists submitted it and removed the device. Found in review of xcl-dev#2925 with the SEGMENT_RESET_FAILS test hook. Now the failed list leaves the recording with nothing in its place: removed from the extra segments, or, as the recording's first list, left out of push_segments until the title's next Reset. It is released with the wrapper as before. What XCL tracked of it (waits, Write64 signals) goes with it. A split on a list whose Close already failed now stops at once: before, a second split would Close it again and record a stand-in that no book kept. Part of xcl-dev#2787 (item 4). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…uery The tests make a split's Close fail with a pipeline-statistics query left open. vkd3d-proton under Wine records that query and closes the list (S_OK), so the split goes on as if the Close had succeeded and two of the tests failed there (reported on xcl-dev#2925, the same case as xcl-dev#2622). split_close_rig now first closes a list of its own with the same query open; when the runtime accepts it, the tests print SKIPPED with the reason instead of failing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks, confirmed by reading Fixed in
The new commits build; their GPU tests have not run yet, and the description will be updated with the counts. Claude Code (Claude Opus 5.5) wrote the fix and this reply. |
|
Thanks: the Close-failure tests need a runtime that refuses that Close, and vkd3d-proton does not.
Not run under Wine on my side; on Windows the probe's Close fails, so the tests still run there. Its GPU tests have not run yet; the description will get the counts. Claude Code (Claude Opus 5.5) wrote the change and this reply. |
|
Under Wine + vkd3d-proton on an RTX 4070, at head Setup:
Not tested: AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this comment. Posted without review by a person: the account owner was away and reads replies later. |
Part of #2787 (item 4): when the Close that ends a mid-list split's segment fails, that list no longer stays in the recording.
Stacked on #2717; only the top three commits (
a089b840,b926dd4f,a8eafbd8) belong here.Measured on an RTX 2070 SUPER (driver probe):
So an empty closed list, recorded on the same allocator, now takes the failed list's place. It keeps what XCL tracked of the failed list: its waits, Write64 signals and CPU writes. Recording goes on in the split's next segment. The failed list is never submitted or reused, and it is released with the wrapper. When the failed list is the primary, the title's next Reset records on another list. When no list is left to go on in, the failed list still leaves the submission and the split ends as in #2717. When no list can even be recorded empty in its place, the failed list just leaves the recording, and what XCL tracked of it goes with it. A split on a list whose Close already failed stops at once.
What is in it
crates/xcl/src/hle/d3d12x/list_x.rs: insplit, when the Close fails, the next segment, a spare or a new list stands in:record_emptyresets and closes it, andmove_list_statemoves the failed list's state to it. Two GPU tests make a Close fail with an open pipeline-statistics query: one where the split goes on and one with no list to go on in. Both fail without the fix.crates/xcl/src/hle/d3d12x/title_list.rs:replace_failedswaps the stand-in into the failed list's place (firstorextra_active). A failed primary setsprimary_broken, so the nextreset()takes a stand-in; any other failed list goes onunresettableand is released with the wrapper. One CPU test covers this.b926dd4f(title_list.rs,list_x.rs): with no stand-in,replace_failedtakes the failed list out of the recording (first_outfor the first list, until the next Reset), andsplitstops on a list whose Close failed (close_failed). Found in review. A GPU test with the only spare's Reset failing fails without it ("the list whose Close failed is not submitted"); the CPU test covers the no-stand-in case.a8eafbd8(list_x.rs, tests only):split_close_rigfirst checks that the runtime refuses to Close a list with a pipeline-statistics query open. Where it accepts it (vkd3d-proton under Wine, as on D3D12.X: a put-off call's segment that does not close is not submitted #2622), the three Close-failure tests print SKIPPED instead of failing.Tested
cargo test --workspace -- --test-threads=4ata8eafbd8: 1441 passed, 0 failed, 47 ignoredb926dd4f's two lines insplittaken out, its new GPU test fails on "the list whose Close failed is not submitted" (2 passed, 1 failed ofa_split_whose_close_fails)Regression run
main (
b49be183, this PR's merge-base) and this PR's head. Release builds,XCL_PRESS_AT=25:Aon both:Not tested
a8eafbd8(they should skip there; reported failing before it).AI use
🤖 Generated with Claude Code