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. |
|
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. |
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 commit (
a089b840) belongs 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.
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.Tested
cargo test --workspace -- --test-threads=4: 1440 passed, 0 failed, 47 ignoredRegression run
main (
b49be183, this PR's merge-base) and this PR's head. Release builds,XCL_PRESS_AT=25:Aon both:Not tested
AI use
🤖 Generated with Claude Code