kernelx: Sleep does not count PC calls that keep the title's threads #1782
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!1782
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1782/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@imnicho on GitHub · 2026-11-24 20:36 UTC · original
imnicho:sleep-hold-pc-calls→main· +132 −3 · 3 files · 1 commits · merged 2026-11-25 11:43 UTCA follow-up to #1288 for the case @raylitebull reported when merging it (#1288): 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 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 + #684 + #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 (#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 #684 and #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, #1782):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, #1782): 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.Against the latest
main(568e7db, 168 commits after that base, checked 2026-11-25): this head merged onto it locally as4651c5e, a clean merge that is not pushed, so the head and the reports on it stay as they are.cargo build --workspace && cargo test --workspace -- --test-threads=4on the merge: 1156 passed, 0 failed, 46 ignored; the two new tests and the threeSleeptests pass. SKIPPED: the same cases as above (25 notices: the wave64 cases ofgpu::recomp::lower::testsandgpu::recomp::lower_dxil::tests, three per-lane cases the per-lane form refuses, the two wave64 tests ofgpu::recomp::tests,heap_window_out_of_memory_falls_back_to_the_switch_form,pso_measurement_compiles_an_exact_synthetic_record).scripts/smoke.ps1, 60 s, two rounds:main568e7db1243 and 1179 frames, the merge 1138 and 1174; exit 0x0, no device removal and no crash in all four.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
@raylitebull on GitHub · 2026-11-24 22:10 UTC · original
@imnicho Tested
#1782(fb9c082, merged with #1834/#1835/#1836) on an AMD Radeon RX 9070 XT (RDNA4, 16 GiB VRAM, 32 GB RAM, Windows 11 x64, release,XCL_DIRECT_DXIL=1 XCL_HEAP_WINDOWS=1 XCL_UMA_WINDOWS=4).Clean startup and
0device removals, but the title still hit its ~30 s present-timeout watchdog att = 87.352 s:unhandled exception 0xc0000005(write at address 0x0) atgame_scarlett_master.exe+0x23cf683(GPU Loc Sig: 7333478d,Game State: Game Running,Frame: 588).t = 58.74 sandt = 87.35 s(28.6 swith0presents), the render thread created16,384+streaming textures (target pages 4,675 -> 6,760 MB) viaCreatePlacedResourceX, with the active thread stalled inside WDDM / driver paging (win32u.dll+0x6154 < D3D12Core.dll+0x25c54 < D3D12Core.dll+0xa1648 < amdxc64.dll+0x406d8e).Why
pc_call()missed it:held_by_pc_call()incrates/xcl/src/hle/d3d12x/pso_async.rsonly returnstrueonce a single in-flightPcCallexceedsPC_CALL_HOLDS_AFTER(250 ms). In a tight burst of16,384+consecutiveCreatePlacedResourceXcalls taking1–50 mseach, nearly every individual call drops itsPcCallbefore250 ms, sotitle_held()staysfalseacross a~29 sstall that starvesPresentX.On the same RX 9070 XT, holding
Sleepwithout the250 msper-call cliff (an immediate hold duringpc_call(), or accumulating cumulative PC-call duration within a burst window acrossPresentXboundaries) survives full480 sruns with0+0x23cf683crashes. (Note: the underlyingamdxc64.dllpaging slowdown from sub-64 KiB texture tile bloat is also addressed separately by #1835.)AI use
@raylitebull on GitHub · 2026-11-24 22:19 UTC · original
@imnicho Follow-up A/B confirmation on the exact same RX 9070 XT build and test setup: changing only
PC_CALL_HOLDS_AFTERinpso_async.rsfrom250 mstoDuration::ZEROturned thet = 87.35 s0xc0000005(game_scarlett_master.exe+0x23cf683/GPU Loc Sig 7333478d) crash into a clean300.00 srun (exit: 0x0,0crashes,0device removals, streaming8,560 MBtarget pages cleanly).AI use: Antigravity (Claude Opus 4.6) assisted with summarizing the A/B test result.
@futurepro62 on GitHub · 2026-11-24 21:27 UTC · original · edited 2026-11-24 22:20 UTC
Full-suite run, since this PR has no test report yet. Tested exact head
fb9c082(on its baseb9b6ea6).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip pso_measurement_compiles_an_exact_synthetic_record: 888 passed, 0 failed, 42 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.a_long_pc_call_holds_the_title.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 890 passed, 0 failed, 42 ignored. SKIPPED:heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).--skipon NVIDIA. Both fail on main7f7e768too, not because of this PR: underXCL_REQUIRE_GPU=mesh,runner::skip_testturns their skips into failures.heap_window_out_of_memory_falls_back_to_the_switch_formskips whenXCL_HEAP_WINDOWSis unset (#1651), andshaders::tests::pso_measurement_compiles_an_exact_synthetic_recordskipped because Developer Mode was off. Developer Mode was turned on before the AMD run, and therepso_measurement_compiles_an_exact_synthetic_recordran and passed.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-24 23:36 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
@imnicho on GitHub · 2026-11-24 23:43 UTC · original
@raylitebull thank you - that is a case the rule misses, and your A/B (
PC_CALL_HOLDS_AFTER= 0 gives a clean 300 s run) shows that holding during those calls is what the title needs. The rule looked at one call's age; 16,384 placements of 1 - 50 ms each never reach 250 ms singly, though together they keep the thread for 29 s.What I am changing (pushing today, with the suite, the smoke pair and a title run redone):
PresentXframe, this one included, add up to 250 ms. A burst of short placements then holds from its first quarter second on, for as long as a call is in flight; the title's own time between the calls still counts as the title's.Sleepof 100 ms or more on any thread would then stretch by the share of time some thread is inside a submission, in normal play too.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.
@imnicho on GitHub · 2026-11-25 00:32 UTC · original
@raylitebull the new head is up:
d4c6d34, rebased onto80f4819(the push was held up for a while by GitHub's incident). The rule is the one from my comment above: a PC call holds the title 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; a frame shown starts the sum again. The description has the details and the results.short_pc_calls_between_two_frames_hold_the_title: fails with the first version's per-call rule, passes now.d4c6d34: 995 passed, 0 failed, 45 ignored. Smoke pair on80f4819/d4c6d34: 1380 / 1383 frames (second round 1384 / 1378).main, so the sum does not slow the loading.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
+0x23cf683, the threshold is the thing to look at next (your 0 ms run is the upper bound of what holding these calls can do).AI use: Claude Code with Claude Fable 5.2 wrote the change, ran the tests and wrote this.
@raylitebull on GitHub · 2026-11-25 00:55 UTC · original
Code review on the rebased
d4c6d34head:PcCallsto accumulate PC-call duration since the lastPresentXframe acrosscreate_placed_resource_x,finish_pso(when!building_here()), andq_execute_command_listsdirectly addresses the burst-placement case where many short calls stay under 250 ms individually, and the newPcCallsunit tests cover both single-long and multi-short-burst holds plus frame-boundary reset.Build and testandPR description) are green ond4c6d34.What is still needed before merge: Fresh AMD and NVIDIA verification on the new
d4c6d34head (prior runs were onfb9c082).@imnicho on GitHub · 2026-11-25 01:05 UTC · original
@raylitebull thank you for the review. On the two runs you ask for:
d4c6d34: mine are in the description - RTX 5080 (32-lane waves, driver 610.47), suite 995 passed / 0 failed, smoke pair 1380 (80f4819) / 1383 (d4c6d34), and a 330 s run of the retail title into its world load, alive at the limit with nothing skipped. A second NVIDIA machine would be welcome; @futurepro62 @DavidM1911, if you can repeat your suite runs on this head.d4c6d34: I have no AMD card. The run that matters is yours from the report above (the placement burst on the RX 9070 XT); anyone else with an RDNA card and the title is as welcome.AI use: Claude Code with Claude Fable 5.2 wrote this.
@JJAutoCompare on GitHub · 2026-11-25 01:40 UTC · original
Empirical verification for xcl-dev/xcl PR #1782
PR head tested
d4c6d3455fddb5aeaf19bc28f97d35be82d71724. The remote still pointed to that head after testing.git merge-tree --write-tree origin/main HEADexited 0 against both the initialorigin/main(564cebe0f898a5e04e3e046312c1a0c1afd02de9) and its updated tip (8f5fca5bb9ad6e695093d75294ad2cec023bba60). The checkout was clean.Tested
26200.9974, AMD Ryzen 7 3800X, Intel Arc A770 (16,258 MiB reported, driver32.0.101.9175). Rust1.100.0(0ef1bc386, MSVC x64), DXC and DXIL1.9.2609.5(01b62ad47). Dev and test profiles were unoptimized withCARGO_INCREMENTAL=0andCARGO_PROFILE_DEV_DEBUG=CARGO_PROFILE_TEST_DEBUG=0.cargo test --workspace --no-runcompiled successfully.cargo build --workspacebuilt the synthetic title executable and DLL needed for the end-to-end tests.cargo test -p xcl --lib hle::d3d12x::pso_async::used_tests -- --show-outputreturned 8 passed, 0 failed, 0 ignored, 0 skipped. Both new tests passed (a_long_pc_call_holds_the_titleandshort_pc_calls_between_two_frames_hold_the_title).cargo test -p xcl --lib hle::kernelx::tests::a_sleep -- --show-outputreturned 3 passed, 0 failed, 0 ignored, 0 skipped.cargo test --workspace -- --test-threads=4 --show-outputstopped after the first failing target, with 921 passed, 25 failed, 25 ignored and 23 explicit skip notices.cargo test --workspace --no-fail-fast -- --test-threads=4 --show-outputafter building the synthetic title returned 969 passed, 26 failed, 45 ignored across 20 targets (Cargo exit 101). Output included 26 explicitSKIPPEDnotices across 16 test names. Cargo's raw counts include tests that return success after emitting skips. Skipped cases are excluded from coverage.L:/XclTooling/Invoke-ArcTest.ps1withXCL_ADAPTER=A770. The PowerShell execution policy was set toBypassfor the processes invoking the lock script.--no-fail-fastrun reached every target and found the same failing test names. Its end-to-end test stopped at the missing title binaries. Aftercargo build --workspace, the title ran and the end-to-end test failed its dynamic depth-bias check.CreateComputePipelineStateerror0x80070057, four GPU unit tests reported output mismatches, and the synthetic title exited with code 1 afterRSSetDepthBiasX(-1000.5)produced a blue top-right pixel where the test expected green.Exact SKIPPED notices from the final run
Failing tests and their panic output
gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_0gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_1gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_2gpu::dxil::fuzz_tests::fuzz_validate_and_gpu_3gpu::dxil::ops_tests::doubles_match_cpugpu::dxil::ops_tests::groupshared_barrier_and_atomics_rungpu::dxil::round_tests::gpu_direct_f32_round_modes_dynamic_and_denormalsgpu::dxil::round_tests::gpu_direct_f32_round_preserved_denormal_times_inf_is_infgpu::dxil::round_tests::gpu_direct_f32_round_modes_staticgpu::recomp::lower_dxil::tests::f64_programs_on_the_gpugpu::recomp::tests::gpu_clamp_and_omod_per_instructiongpu::recomp::tests::gpu_f64_literal_high_wordgpu::recomp::tests::gpu_f64_compares_with_nangpu::recomp::tests::gpu_f64_class_comparegpu::recomp::tests::gpu_f64_rootsgpu::recomp::tests::gpu_f64_math_randomgpu::recomp::tests::gpu_f64_rounding_and_conversionsgpu::recomp::tests::gpu_frexp_f64_exp_and_mantgpu::recomp::tests::gpu_ldexp_f64gpu::recomp::tests::gpu_float_compares_randomgpu::recomp::tests::gpu_nonfused_mad_and_mac_prevent_fma_contractiongpu::recomp::tests::gpu_ps_image_sample_offset_implicit_lod_between_mipsgpu::recomp::tests::gpu_rndne_f64gpu::recomp::tests::gpu_valu_16_and_64_bitgpu::recomp::tests::gpu_wave64_ps_whole_wave_reductionstest_title_runs_and_game_folder_is_untouchedNot tested
scripts/smoke.ps1on main and the PR head. NoXCL_SAMPLE_*inputs were configured.origin/mainor the merged tree. This run cannot establish which failures are regressions.AI use
gpt-6.2-sol, high reasoning effort) fetched and checked the commits, ran the build and tests, parsed the recorded output, and assembled this report.Verified against suite-after-build.log and published by Coordinator #2 (T3 Code / Antigravity,
gemini-4-neon).@imnicho on GitHub · 2026-11-25 01:52 UTC · original
@JJAutoCompare thank you - an Intel run was in my "Not tested". For the reviewer, how I read it:
Sleeptests pass on the Arc A770 (used_tests8 / 8,a_sleep*3 / 3).0x80070057,gpu::dxilfuzz / ops tests among them), four output mismatches, and the synthetic title's depth-bias check. This PR changespso_async.rs, two guards inreal.rsand one indevice_x.rs, none of which those tests run through. I have not seen a run ofmainon an Arc to set beside it, so that they fail there too is my expectation, not something measured; if you can runmain80f4819(this head's base) the same way, the two lists would settle it.AI use: Claude Code with Claude Fable 5.2 wrote this.
@nightmoon1996 on GitHub · 2026-11-25 04:10 UTC · original
Runs of this head on an NVIDIA machine where
maindoes end at the stall check, with the title's present thread kept in XCL's own work before a submit and no bind waiting. The conditions were not controlled (see Not tested), so read it as a data point.Tested
main3da2abb, andd4c6d34merged onto3da2abblocally (94382b5, a clean merge, not pushed anywhere).94382b5, debug,cargo build --workspacethencargo test --workspace -- --test-threads=4: 1113 passed, 0 failed, 46 ignored (on3da2abb: 1111 passed, 0 failed, 46 ignored).a_long_pc_call_holds_the_titleandshort_pc_calls_between_two_frames_hold_the_titleran and passed. SKIPPED: 20 cases "no wave64",heap_window_out_of_memory_falls_back_to_the_switch_form("no heap windows"), 3 per-lane f16 cases the per-lane form refuses.XCL_NETWORK=0 XCL_ACTIVITY=1,XCL_THREAD_DUMP_ATevery 4 to 10 s, warm DXIL and driver-blob caches, runs of up to 300 s, A pressed on a pad. Runs of the two builds alternated.main3da2abbgame_scarlett_master.exe+0x2215c35(write at 0x0, the address of #232), at 63.7, 78.8, 89.8, 93.1 and 97.6 s, 28 to 34 s after the frames stoppedd4c6d34on3da2abbmainruns that ended hadXCL_PSO_WAIT_MS=50; the other three and every PR run had binds waiting. The sixthmainrun stayed at 30 fps for 300 s and never came to the stretch.main, the 78.8 s run, dumps at 60, 65, 68, 72 and 76 s: in all five the thread insidePresentXwas intitle_textures::refresh←q_execute_command_lists←present::present_now(resolved with a PDB of the same commit), at its own code (refresh_onceand what is inlined into it) or inThread::joinundersubresources_on; the title's thread that later wrote to 0x0 was inkernelx::Sleepin all five. The 97.6 s run's dump at the exception shows the samerefreshstack. I did not resolve the other threemainruns' dumps.title_textures::refresh←q_execute_command_listsin 9 of the 10 dumps from 55.7 to 100.4 s of the first, in the 3 dumps at 65, 72 and 81 s of the second, and in the one dump (40 s) of the third – inrefresh_once, inThread::joinundersubresources_on, and once infence::wait←texture::upload_batch. So the guard aroundq_execute_command_listsis the one that held here;create_placed_resource_xandfinish_psodo not show in these dumps.Not tested
refreshtakes this long here; an earlier run ofmainon the quiet machine passed this phase without ending. A run on a quiet machine with this head: not done.unhandled exception 0xc0000005 in ntdll.dll+0x1ff2a, raised on the thread that takes the dump while it unwound another thread (what #253 is about). That isXCL_THREAD_DUMP_AT's doing, not this PR's code, but it means two runs say nothing about it.scripts/smoke.ps1pair on this head. AMD. Anything past the first minutes of the world load.AI use
@thehollowedone on GitHub · 2026-11-24 23:03 UTC · original · edited 2026-11-25 11:25 UTC
Independent Windows update on d4c6d34. Windows 11 build 26300, Ryzen 7 9800X3D, RTX 3080 Ti (621.35), Rust 1.99.1 MSVC, debug.
cargo build --offline --locked --workspacepassed.cargo test --offline --locked --workspace --no-fail-fast -- --test-threads=4 --nocapturereported 995 passed, 0 failed, 45 ignored, with 24 runtime skip notices included in Cargo's pass count.With synthetic timestamps, the cumulative hold was false at 249 ms and true at 250 ms. I also left one call open across a simulated present at 250 ms. The title was still held immediately after the present. I ended that call one millisecond later and started a fresh one at the same instant. The fresh call held immediately as well. A scratch assertion expecting a fresh budget in both cases failed. This measured the accounting rule with no title or GPU timing involved.
cargo test --offline --locked -p xcl --lib scratch_pc_call_ -- --nocapture --test-threads=1ran both cases. AI-assisted. Codex (GPT-6, exact variant unavailable) wrote the scratch tests, ran the suite, and drafted the update.Earlier check at the previous revision
Independent Windows 11 build 26300 check of fb9c082, Rust 1.99.1 MSVC debug.
I passed a controlled callback through
finish_psoon the calling thread and through the production background build queue. The callback stayed blocked long enough to cross the 250 ms threshold, then returned a synthetic failure. WithXCL_SLEEP_HOLD=100,kernelx::Sleep(100)waited for the calling-thread callback to return. In the worker case, it completed while the callback was still blocked. Neither case left a hold behind. Removing only the new guard infinish_psomade the calling-thread case fail the hold assertion.cargo test --offline --locked -p xcl --lib <filter> -- --nocapture --test-threads=1passed 1/1 for botha_long_pc_call_holds_the_titleand the scratch testscratch_pso_sleep_holds_title_thread_only. Zero skips. This checks the existing 250 ms contract with a synthetic callback and the actual Windows sleep path.AI-assisted. Codex (GPT-6 family, exact variant unavailable) wrote and ran the scratch test and drafted this report.
@ivall on GitHub · 2026-11-25 11:43 UTC · original
Merged as
1a0bbe3, thank you. This is the AMD run it was waiting for.Tested on AMD RDNA4 (native wave64), Windows, DXC 1.8.2502.11, debug:
ea088a5+ #2029 + #1782,cargo test --workspace --no-fail-fast -- --test-threads=4: 1248 passed, 2 failed, 46 ignored, 7 SKIPPED. The two failures arefuzz_validate_and_gpu_1and_3(#2115), onmaintoo.In the title (
426a5a7+ #2180 + #2029 + #1782 + the #2080 stack with a fix,XCL_DIRECT_DXIL=1 XCL_PSO_PRELOAD=0, release): one run of 421 s, 30 fps in the menus, then the world load with no present from about 70 s on (pipelines being built, as before). No device removal and no crash; closed by hand.Not measured: the effect of this change on its own, and the crash at 87 s reported on an older head, which did not come up in this run.
AI use: Claude Code (Claude Opus 5.5) ran the tests and wrote this on the maintainer's behalf.
@DavidM1911 on GitHub · 2026-11-26 06:19 UTC · original
Re-verification on RTX 3060 Ti (Windows 11), new head merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, 27 ignored. The earlier merge conflict is resolved.Thanks!
— Devin