Repository navigation
Conversation
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
|
@imnicho Tested Clean startup and
Why On the same RX 9070 XT, holding AI use
|
|
@imnicho Follow-up A/B confirmation on the exact same RX 9070 XT build and test setup: changing only AI use: Antigravity (Claude Opus 4.6) assisted with summarizing the A/B test result. |
|
Independent Windows 11 build 26300 check of fb9c082, Rust 1.99.1 MSVC debug. I passed a controlled callback through
AI-assisted. Codex (GPT-6 family, exact variant unavailable) wrote and ran the scratch test and drafted this report. |
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
@raylitebull thank you - that is a case the rule misses, and your A/B ( What I am changing (pushing today, with the suite, the smoke pair and a title run redone):
A test for it: many short calls between two frames hold the title, a new frame ends the hold - it fails with the per-call rule. If you can rerun your RX 9070 XT case on the new head when it is up, that would be the real check; I cannot reproduce the placement burst on my card. @futurepro62 @thehollowedone @DavidM1911 thank you for the runs. AI use: Claude Code with Claude Fable 5.2 read the reports and wrote this. |
A title's Sleep does not count the time a bind waits for a pipeline still being built (pso_async::title_held). A title's thread can also be kept inside calls that take no time on the console: a submission, where XCL uploads and maps tiles before the lists and a driver can compile in them, a texture's placement on reserved memory, or a pipeline built in the title's call because it got no stand-in. On an AMD RX 9070 XT a retail title's stall check still ended it after 30 s without a present, with its submission thread inside the driver and no bind waiting (reported on xcl-dev#1288) - and again with 16 384 texture placements of 1 - 50 ms each in 29 s, none of them long by itself (reported on xcl-dev#1782). pso_async::pc_call() is a guard for such a call. While it lasts the title is held once the PC calls since the last frame shown, this one included, have taken 250 ms: one long call, or many short ones in a row. The title's own time between the calls still counts, and a frame shown starts the sum again, so a title that shows its frames is not held by its submissions. The guard is taken for the whole of q_execute_command_lists, in create_placed_resource_x, and around the driver's pipeline creation when that runs in the title's own call (a worker's build holds nobody). Tests: a_long_pc_call_holds_the_title, short_pc_calls_between_two_frames_hold_the_title. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
fb9c082 to
d4c6d34
Compare
|
@raylitebull the new head is up:
What it cannot show is your case: the burst of 16,384 placements without a frame. If you can run this head on the RX 9070 XT with the settings of your report, that is the test that counts. If it still ends at AI use: Claude Code with Claude Fable 5.2 wrote the change, ran the tests and wrote this. |
|
Code review on the rebased
What is still needed before merge: Fresh AMD and NVIDIA verification on the new |
|
@raylitebull thank you for the review. On the two runs you ask for:
AI use: Claude Code with Claude Fable 5.2 wrote this. |
Empirical verification for xcl-dev/xcl PR #1782PR head tested Tested
Exact SKIPPED notices from the final runFailing tests and their panic output
Not tested
AI use
Verified against suite-after-build.log and published by Coordinator #2 (T3 Code / Antigravity, |
|
@JJAutoCompare thank you - an Intel run was in my "Not tested". For the reviewer, how I read it:
AI use: Claude Code with Claude Fable 5.2 wrote this. |
|
Runs of this head on an NVIDIA machine where Tested
Not tested
AI use
|
A follow-up to #1288 for the case @raylitebull reported when merging it (#1288 (comment)): on an AMD RX 9070 XT a retail title's stall check still ended it after 30 s without a present, with the title's submission thread inside the driver (
D3D12Core.dll→amdxc64.dll) and no bind waiting. #1288 only sees a bind's wait inresolve_wait, soSleepwent on counting.Here the title's calls into D3D12 that XCL or the PC's driver keep for long hold the title as well: while such a call lasts, once the PC calls since the last frame shown, this one included, have taken 250 ms. That is one long call, or many short ones in a row. The title's own time between the calls still counts, and a frame shown starts the sum again, so a title that shows its frames is not held by its submissions. Part of #505.
Changed since the first version (
fb9c082): that one looked at one call's age. @raylitebull's run of it on the RX 9070 XT (#1782 (comment) and the A/B after it) showed what it misses: 16,384 texture placements of 1 – 50 ms each in 29 s without a present, none of them 250 ms long, and the stall check ended the title. With the threshold at 0 that run went on for 300 s. The sum since the last frame holds in that burst from its first quarter second on, and leaves a title that presents normally alone, which a threshold of 0 would not (everySleepof 100 ms or more would stretch by the share of time some thread is in a submission).What is in it
crates/xcl/src/hle/d3d12x/pso_async.rs:pc_call(), a guard for such a call on one of the title's threads;PcCallskeeps the calls going on and the time of the ended ones since the last frame shown (present::presents());title_held()is also true while a call is going on and that sum, with the call's own time, isPC_CALL_HOLDS_AFTER(250 ms) or more;building_here(), whether this thread is a worker building a pipeline. Testsa_long_pc_call_holds_the_titleandshort_pc_calls_between_two_frames_hold_the_title.crates/xcl/src/hle/d3d12x/real.rs: the guard for the whole ofq_execute_command_lists(XCL's uploads and tile mappings before the lists, the PCExecuteCommandLists, what follows it), and infinish_psoaround the driver's pipeline creation when that runs in the title's own call (no stand-in; a worker's build holds nobody).crates/xcl/src/hle/d3d12x/device_x.rs: the guard increate_placed_resource_x(a texture placed on reserved memory: the PC's reserved resource and its tile mappings).PcCalls::holds(one call's age only, as in the first version),short_pc_calls_between_two_frames_hold_the_titlefails ("twenty short PC calls since the last frame and one going on, but the title is not held").Tested
stable-x86_64-pc-windows-msvc; debug for the tests, release for the title.cargo build --workspace && cargo test --workspace -- --test-threads=4ond4c6d34: 995 passed, 0 failed, 45 ignored (SKIPPED GPU tests: the wave64 cases ofgpu::recomp::lower::tests(4 tests) andgpu::recomp::lower_dxil::tests(1 test and 12 cases of the constant-mask and f16 / f32 / f64 / integer program tests),gpu_wave32_program_in_wave64_hardware,gpu_geometry_wave32_prefix_count_over_a_mask– no wave64; 3 per-lane cases the per-lane form refuses;heap_window_out_of_memory_falls_back_to_the_switch_form– its switch is off;pso_measurement_compiles_an_exact_synthetic_record– Windows Developer Mode is off).XCL_NETWORK=0, scripted pad, binds waiting (noXCL_PSO_WAIT_MS), one run of 330 s into its world load; the tree is this head + XG: fix CopyFromSubresource 7-argument ABI and guard destination span #684 + Rect lists: the CPU expansion finds the rect's corner, not always v1 #266,XCL_HEAP_WINDOWS=1: the world's set-up began at 127.4 s and the title was running at the time limit, with 2,239 frames shown, 22,348 draws and 8,192 dispatches, none skipped, 608 compute pipelines made, no device removal and 31.7 GB committed at the end. The GPU-wait watchdog released 4 waits after the set-up, as in my runs before this change (D3D12.X: XCL_GPU_WAIT_RELEASE_MS sets when a stalled GPU wait is released #1046).main80f4819by itself ends 2.5 s after the world's set-up here, with an access violation in a memory copy (one run of it, set-up at 138.1 s); this branch alone, on its earlier base, did the same. With XG: fix CopyFromSubresource 7-argument ABI and guard destination span #684 and Rect lists: the CPU expansion finds the rect's corner, not always v1 #266 the title goes on, so the run has them.resolve_wait; the cases this is for are the AMD ones in the reports above, which I cannot reproduce.fb9c082): the suite on an RTX 5070 Ti and an AMD integrated GPU (@futurepro62), on an RTX 3060 Ti (@DavidM1911), a check of the guard infinish_psothrough the realSleep(@thehollowedone). They do not cover the new rule.d4c6d34): an RTX 4060 Ti wheremain3da2abbdoes end at the stall check with the present thread in XCL's own work before a submit (@nightmoon1996, kernelx: Sleep does not count PC calls that keep the title's threads #1782 (comment)):mainended there in 5 of 5 runs that came to a stretch of 25 s or more without a frame, this head went on in 3 of 3 (frames again after 25 to 40 s, exit at the 300 s limit), suite 1113 passed / 0 failed on the merge with3da2abb; the machine was not idle and the pad was not scripted, as that report says. An Intel Arc A770 (@JJAutoCompare, kernelx: Sleep does not count PC calls that keep the title's threads #1782 (comment)): the two new tests and theSleeptests pass; 26 other tests fail there in parts this change does not touch, with no run ofmainon that card to compare.Regression run (default settings)
main:
PR:
A second round of the same two binaries:
main1384 frames, PR 1378. The head is on80f4819, the commit of the main block;mainhas gone on to6567c5fsince (6 commits; two of them changereal.rsin other functions, and the branch merges cleanly).Not tested
AI use
Duplicate check (00:30 UTC on 2026-11-25): no other open PR counts PC calls as holding the title; read #1747 (merged: removes tile-mapping stalls themselves), #1835 (packs small textures, the placement burst's other side), #1046 (when a stalled GPU wait is released), #1429 (the sync watchdog after CPU releases), #1442 and #889 (build ahead: they shorten the waits).
🤖 Generated with Claude Code