Repository navigation
Conversation
PC D3D12 does not allow submitting a command list whose previous execution the GPU has not finished (debug layer id 553: "the command queue fence has not advanced past previous executions of the command list"); a console lets a title do it. With the debug layer on, the retail title's world load shows id 553 from 85.8 s, then cross-queue waits that stop one signal short, then the device removal (xcl-dev#1452). alloc_pool::executed signalled a per-queue fence after submits of the lists it tracks (title lists). It now does so after every submit, so the PC lists behind console lists are covered too, and remembers each list's last submit (queue, fence value, recording number). note_resubmits, called before each ExecuteCommandLists chunk, logs a list whose previous submit is still running: whether it is the same recording and the same queue (the first 8, then at powers of two). The only change besides the log is that extra fence signal on submits of untracked lists. Part of xcl-dev#1452. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
|
Independent Windows x64 + Intel Arc A770 test report on commit Environment
Command xcl-97fdf2b9ff8e1482.exe --exact --nocapture --test-threads=1 `
hle::d3d12x::alloc_pool::tests::a_resubmit_while_the_previous_submit_runs_is_noticedResults
Not tested
AI use
|
Contributor
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
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.
PC D3D12 does not allow submitting a command list whose previous execution the GPU has not finished (debug layer id 553, "the command queue fence has not advanced past previous executions of the command list"); a console lets a title do it. During the retail title's world load the debug layer reports id 553 from about 86 s, a few seconds before the device removal of #1452. This logs it without the debug layer: one warning line when a PC list is submitted while its previous submit is still running, saying whether it is the same recording and the same queue. It is what showed the path the fix in the stacked PR takes.
Part of #1452.
What is in it
crates/xcl/src/hle/d3d12x/alloc_pool.rs:executednow signals its per-queue fence after every submit (before: only submits of the title lists it tracks), and remembers each PC list's last submit (queue, fence value, recording number). Newnote_resubmitslogs a list whose last submit is still running (the first 8, then at powers of two). Unit/GPU testa_resubmit_while_the_previous_submit_runs_is_noticed.crates/xcl/src/hle/d3d12x/real.rs:q_execute_command_listscalls it before eachExecuteCommandListschunk.alloc_pooldoes not track (the PC lists behind console lists).Tested
cargo build --workspace && cargo test --workspace -- --test-threads=4on637b82a(onmain6020a33): 1 155 passed, 0 failed, 46 ignored, first run.SKIPPED(25 lines): the wave64 GPU tests (no wave64), three per-lane forms the per-lane path refuses,heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows),pso_measurement_compiles_an_exact_synthetic_record(driver cache cannot be disabled without Developer Mode).XCL_DIRECT_DXIL=1, the same commit on top ofmain177cd40, where the removal of Retail game (retail title, Series X build): GPU device removal after Wait64BitValueX waits with no producer; also watchdog stalls on slow compute pipeline builds #1452 is reproducible here): from 89.3 s, 8 lists logged as "a new recording, the same queue", 64+ by 97 s; device removed at 101 s. With the D3D12 debug layer on, the same run shows id 553 at the same point (#1452).Regression run
scripts/smoke.ps1, the retail title, 60 s, release builds of both commits,mainfirst.main:
PR:
Not tested
AI use
🤖 Generated with Claude Code