Repository navigation
D3D12.X: a split whose Close fails leaves that list out and goes on - #2925
Conversation
|
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. |
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>
|
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. |
When the Close that ends a mid-list split's segment fails, main fails the whole recording closed: the wrapper goes to a closed standby, and until the title's next Reset only that standby is submitted, so the segments recorded before the split and everything the title records after it are lost. Measured on an RTX 2070 SUPER: a list whose Close failed removes the device when it is submitted and fails every later Close and Reset (E_FAIL), but 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). The split now reserves a second closed list before it closes the producer. If the Close fails, that list is recorded empty on the producer's allocator and takes the failed list's place in the recording, with what XCL tracked of it (waits, Write64 signals, CPU writes; what it recorded for the GPU, texture writes and transitions included, 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. When no list can be recorded in its place, the recording fails closed as before. Adapted from a089b84 and b926dd4 (xcl-dev#2925, part of xcl-dev#2787 item 4), ported onto main's fail-closed splits (211fc45, 25ad57f). Tests: a_split_whose_close_fails_leaves_that_list_out_and_goes_on (GPU: the earlier work and the next segment reach the GPU, the Write64 is signalled in the failed list's place, the next Reset records on another list; on main only the standby is submitted), a_split_whose_close_fails_with_no_list_in_its_place_fails_the_recording_closed (GPU), and a_list_whose_close_failed_gives_its_place_and_goes_with_the_wrapper (book). The GPU tests skip where Close keeps an open pipeline-statistics query (vkd3d-proton under Wine, xcl-dev#2622). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
a8eafbd to
cfb83d2
Compare
When the Close that ends a mid-list split's segment fails, main fails the whole recording closed: the wrapper goes to a closed standby, and until the title's next Reset only that standby is submitted, so the segments recorded before the split and everything the title records after it are lost. Measured on an RTX 2070 SUPER: a list whose Close failed removes the device when it is submitted and fails every later Close and Reset (E_FAIL), but 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). The split now reserves a second closed list before it closes the producer. If the Close fails, that list is recorded empty on the producer's allocator and takes the failed list's place in the recording, with what XCL tracked of it (waits, Write64 signals, CPU writes; what it recorded for the GPU, texture writes and transitions included, 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. When no list can be recorded in its place, the recording fails closed as before. Adapted from a089b84 and b926dd4 (xcl-dev#2925, part of xcl-dev#2787 item 4), ported onto main's fail-closed splits (211fc45, 25ad57f). Tests: a_split_whose_close_fails_leaves_that_list_out_and_goes_on (GPU: the earlier work and the next segment reach the GPU, the Write64 is signalled in the failed list's place, the next Reset records on another list; on main only the standby is submitted), a_split_whose_close_fails_with_no_list_in_its_place_fails_the_recording_closed (GPU, the book only: submitting main's closed standby, made closed and never recorded, removed the device here), and a_list_whose_close_failed_gives_its_place_and_goes_with_the_wrapper (book). The GPU tests skip where Close keeps an open pipeline-statistics query (vkd3d-proton under Wine, xcl-dev#2622). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cfb83d2 to
bb28100
Compare
When the Close that ends a mid-list split's segment fails, main fails the whole recording closed: the wrapper goes to a closed standby, and until the title's next Reset only that standby is submitted, so the segments recorded before the split and everything the title records after it are lost. Measured on an RTX 2070 SUPER: a list whose Close failed removes the device when it is submitted and fails every later Close and Reset (E_FAIL), but 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). The split now reserves a second closed list before it closes the producer. If the Close fails, that list is recorded empty on the producer's allocator and takes the failed list's place in the recording, with what XCL tracked of it (waits, Write64 signals, CPU writes; what it recorded for the GPU, texture writes and transitions included, 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. When no list can be recorded in its place, the recording fails closed as before. Adapted from a089b84 and b926dd4 (xcl-dev#2925, part of xcl-dev#2787 item 4), ported onto main's fail-closed splits (211fc45, 25ad57f). Tests: a_split_whose_close_fails_leaves_that_list_out_and_goes_on (GPU: the earlier work and the next segment reach the GPU, the Write64 is signalled in the failed list's place, the next Reset records on another list; on main only the standby is submitted), a_split_whose_close_fails_with_no_list_in_its_place_fails_the_recording_closed (GPU, the book only: submitting main's closed standby, made closed and never recorded, removed the device here), and a_list_whose_close_failed_gives_its_place_and_goes_with_the_wrapper (book). The GPU tests skip where Close keeps an open pipeline-statistics query (vkd3d-proton under Wine, xcl-dev#2622). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
bb28100 to
9f92e8c
Compare
|
merge-check |
|
merge-check claim |
|
merge-check |
Part of #2787 (item 4): when the Close that ends a mid-list split's segment fails, only that list leaves the recording and the recording goes on. One commit on
maine429936c; it is no longer stacked on #2717.On
main, a failed split Close fails the whole recording closed (211fc45, 25ad57f): the wrapper goes to a closed standby, and until the title's next Reset only that standby is submitted, so the segments recorded before the split and everything recorded after it are lost.Measured on an RTX 2070 SUPER (driver probe):
So the split now reserves a second closed list before it closes the producer. If the Close fails, that list is recorded empty on the producer's allocator and takes the failed list's place, with what XCL tracked of it (waits, Write64 signals, CPU writes), and recording goes on in the split's next segment. What the failed list recorded for the GPU is lost. The failed list is never submitted or reused and is released with the wrapper; a failed primary makes the title's next Reset record on another list. When no list can be recorded in its place, the recording fails closed as on
main.What is in it
crates/xcl/src/hle/d3d12x/list_x.rs:splitreserves the stand-in,record_emptyresets and closes it on the producer's allocator,move_list_statemoves the failed list's state to it. GPU testsa_split_whose_close_fails_leaves_that_list_out_and_goes_onanda_split_whose_close_fails_with_no_list_in_its_place_fails_the_recording_closed(a pipeline-statistics query held open across the split makes the Close fail). They skip where the runtime accepts that Close (vkd3d-proton under Wine, as on D3D12.X: a put-off call's segment that does not close is not submitted #2622).crates/xcl/src/hle/d3d12x/title_list.rs:replace_failedswaps the stand-in into the failed list's place; CPU testa_list_whose_close_failed_gives_its_place_and_goes_with_the_wrapper.Tested
9f92e8c8(rebased ontomain765b2c5bto resolve conflicts): the suite has not been rerun on it; the counts below are from the earlier heads they name.cargo build --workspace && cargo test --workspace --no-fail-fast -- --test-threads=4onbb281003: 2129 passed, 9 failed, 48 ignored; 25 SKIPPED (21no wave64, 3 refused gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426 forms, 1no heap windows). The 9 failures are the onesmaine429936chas on this PC (main e429936 on NVIDIA: 3 e2e title tests and 6 split-wave64 GPU tests fail since #2959 #3093: 3 e2e title tests, 3 split dispatch-chain tests,gpu_heap_flat_reads_match_guarded_and_root_output,gpu_compute_mode_dispatch_abi,gpu_float_cas_uses_ieee_equality).cfb83d29),a_split_whose_close_fails_leaves_that_list_out_and_goes_onfails on "the split went on" (1 list submitted instead of 2).main's closed standby (created closed withCreateCommandList1, never recorded) removed the device here. That is amainbug, fixed separately in D3D12.X: a closed standby is recorded empty before it can be submitted #3167 (D3D12.X: a failed mid-list split submits a never-recorded standby list and removes the device #3166).Regression run
Current head
9f92e8c8, rebased ontomain765b2c5bon 2026-11-28 to resolve conflicts withmain. RTX 2070 SUPER, the retail game, 60 s,XCL_PRESS_AT=25:A,XCL_PREPARE=0(no startup shader preparation), release builds; each run started from a copy of the same DXIL cache (one queue job:main, then PR heads one after the other).main:This PR's head:
Not tested
XCL_PREPARE=0), onmainand on this PR alike.AI use
main's fail-closed splits; ran the tests and the smoke runs.🤖 Generated with Claude Code