Repository navigation
Conversation
…tle waits The ordinary pipeline workers (xcl-pso-*) and the DXC workers (xcl-dxc-*) are a thread for every core but one each, at the title's own priority: while a world streams its shaders in they take cores from the title threads the frame waits for. They stayed at normal priority on purpose, because a title thread can wait for a pipeline and must not wait behind its own threads; only the preload workers had a way out of that (lowest priority, raised to normal while their build is wanted). Both kinds of worker now start below normal, and the same raise covers them: a normal worker notes itself on the build it runs (Demand::normal_thread), the first waiter raises it to normal and the last one to leave puts it back. A DXC compile runs at normal when its build is wanted as it starts, and one already running is raised (dxc::raise_wanted) when its build becomes wanted. XCL_LOW_PRIORITY_WORKERS=0 keeps every worker at normal priority. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DaZV7vMq866ni7pGnJC2Ew
|
Ran the DXC worker priority test at Environment: Windows 11 Pro build 26200 x64, NVIDIA GeForce RTX 5070 Ti (Blackwell, wave32 only, 16 GB) driver 32.0.16.2140 (621.40), Intel Core i5-12400F, 64 GB RAM, rustc 1.100.0 (0ef1bc386 2026-11-09), MSVC 14.44.35207, DXC 1.9.2609.5, debug build. The new test passes: a DXC compile already running is raised when a title thread comes to want its build. The PR is a draft and has no comments yet, so this is the first datapoint in the thread and the first from an RTX 5070 Ti. It is a CPU-side priority test, not a frame-time measurement. Not tested: a retail title, a paired smoke run, the full workspace suite, AMD and Intel GPUs, native wave64 hosts, Wine, release profile, game data. AI-assisted (OpenCode), model: DeepSeek V4.1 Flash Free - checked out the PR's head commit in a detached worktree, built it, ran the tests, wrote this report; the worktree was not modified; no game data was used. |
|
Reviewed and tested at Code review findings
Tested locally
AI use
|
KOLESNiii
left a comment
There was a problem hiding this comment.
Static review of 27c6a4bb for the stack in the #3041 comparison.
I independently reached the same worker-priority finding as saintwolf. raise_wanted drops the DXC compile from its tracking list when it boosts the worker. If the last title waiter times out, unwant lowers the pipeline worker only. The compiler can stay at normal priority until the job ends. DXC tracking ?? Waiter removal
Review assisted by Codex (GPT-6, exact variant unavailable). No new build or GPU run for this review.
bmjask
left a comment
There was a problem hiding this comment.
Critical review of current head 27c6a4bb. Unresolved priority-lifetime issue: raise_wanted removes a running DXC compile from RUNNING when it boosts the worker. Build::unwant lowers the PSO worker, but cannot find and lower that DXC worker after a timed-out title wait. A long compile can therefore remain at normal priority and compete with frame work even after demand ends. Keep the running compile tracked until completion and tie its priority to current waiter count; test a waiter timing out while compilation continues. This was also identified in the existing review thread. No local Windows run.
|
Review (head 27c6a4b, diff read, not a merge-check; draft, so not built or run):
Fine: the raise and reset happen under the AI review: Claude Code (Claude Opus 5.5), posted by Foniass without a human check of each point. |
|
Test report (not a merge-check: draft) AI-written and posted by Foniass without a human check of each point. |
Requested by Prime
The ordinary pipeline workers (
xcl-pso-*) and the DXC workers (xcl-dxc-*) are a thread for every core but one each, at the title's own priority: while a world streams its shaders in, they take cores from the title threads the frame waits for. They stayed at normal priority on purpose, because a title thread can wait for a pipeline and must not wait behind its own threads; only the preload workers had a way out of that (lowest priority, raised to normal while their build is wanted).Both kinds of worker now start below normal, and the same raise covers them: a normal worker notes itself on the build it runs (
Demand::normal_thread), the first waiter raises it to normal and the last one to leave puts it back. A DXC compile runs at normal when its build is wanted as it starts, and one already running is raised (dxc::raise_wanted) when its build becomes wanted.XCL_LOW_PRIORITY_WORKERS=0keeps every worker at normal priority.Related: #2423 orders the DXC queue so wanted compiles go first (queue order, not thread priority).
What is in it
crates/xcl/src/hle/d3d12x/pso_async.rs: pipeline workers start below normal;Demand::normal_threadand the raise while a title thread waitscrates/xcl/src/gpu/recomp/dxc.rs: DXC workers below normal,dxc::raise_wanted; testa_running_compile_is_raised_when_a_title_thread_comes_to_want_itREADME.md:XCL_LOW_PRIORITY_WORKERSTested
cargo test --workspace --no-fail-fast -- --test-threads=4with the threeuma_drivertests below skipped, on 27c6a4b: 2606 passed, 0 failed, 49 ignored (SKIPPED GPU tests: 28 lines: 21no wave64(this card runs wave32), 3 a wave32 per-lane form refused by the translator (gpu: direct RDNA2 -> DXIL backend (no HLSL / DXC), behind XCL_DIRECT_DXIL #1426), 2no heap windows(opt-inXCL_HEAP_WINDOWS=1), 1no dxc.exe, 1cannot disable the driver cache(needs Windows Developer Mode))cargo test -p xcl --lib -- --test-threads=1 uma_driver::tests::a_refused_gpu_upload_segment_becomes_custom uma_driver::tests::mixed_window_keeps_its_bytes_and_the_gpu_sees_every_segment uma_driver::tests::failed_restore_stops_before_importing_an_unbacked_window): 3 passed, 0 failed. They are left out of the whole run because on this PC's driver they can end the library test process (exit 0x7c10003, "coherent window could not be restored"), onmaintoocargo test -p xcl --lib -- --test-threads=4, same skips): 2467 passed, 0 failed; 2467 passed, 0 failedmainfa20459: 2605 passed, 0 failed, 49 ignored, 28SKIPPEDlines (own-prs-20261129 run, same command)scripts/smoke.ps1, no input, copied profile and shader cache): blocks belowRegression run
Not tested
AI use
Optional temporary Discord for coordinating contributor work, testing and comparing results.
🤖 Generated with Claude Code