d3d12: per-pipeline waiter wakeups and live-waiter priority donation (D3D12-PIPELINE-WAIT-AND-SLOW-EARLY) #3132
Open
zmasi wants to merge 4 commits from
upstream-pr/3132 into main
pull from: upstream-pr/3132
merge into: ProjectLeonida:main
ProjectLeonida:main
ProjectLeonida:claude/loop-total
ProjectLeonida:claude/pops-collision-seed
ProjectLeonida:claude/dstorage-hold-page-reads
ProjectLeonida:claude/host-image-copy-switch
ProjectLeonida:feat/gdk-lifecycle-window-hook
ProjectLeonida:claude/d16s8-uav-nvidia-fallback
ProjectLeonida:feat/mfplat-offline-shim
ProjectLeonida:claude/gameinput-slow-reader
ProjectLeonida:fix/rt-null-barrier-clear
ProjectLeonida:claude/depth-resolve-sample-positions
ProjectLeonida:integration/palmetto-parity
ProjectLeonida:claude/valu-literal-sext
ProjectLeonida:claude/slot74-pool-handle
ProjectLeonida:claude/rgb9e5-uint-alias-view
ProjectLeonida:claude/fssm-root-layout-tables
ProjectLeonida:feat/gdk-speech-display-lifecycle
ProjectLeonida:asset-audio-skip-current
ProjectLeonida:qemmhd/old-9940-rectangle-quad-lists
ProjectLeonida:feat/ws2-offline-shim
ProjectLeonida:qemmhd/rt-d16-unorm-uav
ProjectLeonida:feat/xs-device-stops-7-9
ProjectLeonida:qemmhd/rt-depth-same-base-shapes
ProjectLeonida:qemmhd/rt-lazy-attachment-variant
ProjectLeonida:feat/acphal-xma2-decoder
ProjectLeonida:asset-audio-skip
ProjectLeonida:codex/coord-claim-check-20261124-7e48
ProjectLeonida:feat/xs-frame-pacing-presentx
ProjectLeonida:feat/xs-device-vm-options
ProjectLeonida:old-pr/9844
ProjectLeonida:old-pr/9978
ProjectLeonida:old-pr/9815
ProjectLeonida:old-pr/10057
ProjectLeonida:old-pr/9874
ProjectLeonida:old-pr/9965
ProjectLeonida:old-pr/9863
ProjectLeonida:old-pr/10068
ProjectLeonida:old-pr/10066
ProjectLeonida:old-pr/10067
ProjectLeonida:old-pr/10007
ProjectLeonida:old-pr/10061
ProjectLeonida:old-pr/10065
ProjectLeonida:old-pr/10059
ProjectLeonida:old-pr/10063
ProjectLeonida:old-pr/10055
ProjectLeonida:old-pr/10062
ProjectLeonida:old-pr/10042
ProjectLeonida:old-pr/10041
ProjectLeonida:old-pr/10049
ProjectLeonida:old-pr/10047
ProjectLeonida:old-pr/10046
ProjectLeonida:old-pr/10045
ProjectLeonida:old-pr/10056
ProjectLeonida:old-pr/10043
ProjectLeonida:old-pr/10036
ProjectLeonida:old-pr/10034
ProjectLeonida:old-pr/9984
ProjectLeonida:old-pr/10052
ProjectLeonida:old-pr/10038
ProjectLeonida:old-pr/10033
ProjectLeonida:old-pr/10028
ProjectLeonida:old-pr/10050
ProjectLeonida:old-pr/9891
ProjectLeonida:old-pr/9889
ProjectLeonida:old-pr/10051
ProjectLeonida:old-pr/10019
ProjectLeonida:old-pr/10027
ProjectLeonida:old-pr/10029
ProjectLeonida:old-pr/10031
ProjectLeonida:old-pr/10026
ProjectLeonida:old-pr/9941
ProjectLeonida:old-pr/10030
ProjectLeonida:old-pr/10040
ProjectLeonida:old-pr/9990
ProjectLeonida:old-pr/10021
ProjectLeonida:old-pr/9962
ProjectLeonida:old-pr/10022
ProjectLeonida:old-pr/10020
ProjectLeonida:old-pr/10015
ProjectLeonida:old-pr/10025
ProjectLeonida:old-pr/9886
ProjectLeonida:old-pr/10048
ProjectLeonida:old-pr/10014
ProjectLeonida:old-pr/10011
ProjectLeonida:old-pr/9861
ProjectLeonida:old-pr/10010
ProjectLeonida:old-pr/10008
ProjectLeonida:old-pr/9860
ProjectLeonida:old-pr/10006
ProjectLeonida:old-pr/9920
ProjectLeonida:old-pr/9995
ProjectLeonida:old-pr/10000
ProjectLeonida:old-pr/10016
ProjectLeonida:old-pr/10004
ProjectLeonida:old-pr/10023
ProjectLeonida:old-pr/9982
ProjectLeonida:old-pr/9981
ProjectLeonida:old-pr/9983
ProjectLeonida:old-pr/9970
ProjectLeonida:old-pr/9969
ProjectLeonida:old-pr/9968
ProjectLeonida:old-pr/9971
ProjectLeonida:old-pr/9972
ProjectLeonida:old-pr/9942
ProjectLeonida:old-pr/9963
ProjectLeonida:old-pr/9960
ProjectLeonida:old-pr/9964
ProjectLeonida:old-pr/9985
ProjectLeonida:old-pr/9973
ProjectLeonida:old-pr/9862
ProjectLeonida:old-pr/9953
ProjectLeonida:old-pr/10017
ProjectLeonida:old-pr/9952
ProjectLeonida:old-pr/9955
ProjectLeonida:old-pr/9946
ProjectLeonida:old-pr/9954
ProjectLeonida:old-pr/9938
ProjectLeonida:old-pr/9956
ProjectLeonida:old-pr/9856
ProjectLeonida:old-pr/9947
ProjectLeonida:old-pr/9924
ProjectLeonida:old-pr/9961
ProjectLeonida:old-pr/9927
ProjectLeonida:old-pr/9979
ProjectLeonida:old-pr/10032
ProjectLeonida:old-pr/9926
ProjectLeonida:old-pr/5237
ProjectLeonida:old-pr/9951
ProjectLeonida:old-pr/9931
ProjectLeonida:old-pr/9902
ProjectLeonida:old-pr/9921
ProjectLeonida:old-pr/9994
ProjectLeonida:old-pr/9775
ProjectLeonida:old-pr/9768
ProjectLeonida:old-pr/9905
ProjectLeonida:old-pr/9936
ProjectLeonida:old-pr/9901
ProjectLeonida:old-pr/9904
ProjectLeonida:old-pr/9906
ProjectLeonida:old-pr/9988
ProjectLeonida:old-pr/9908
ProjectLeonida:old-pr/9909
ProjectLeonida:old-pr/9911
ProjectLeonida:old-pr/9912
ProjectLeonida:old-pr/9913
ProjectLeonida:old-pr/9887
ProjectLeonida:old-pr/9916
ProjectLeonida:old-pr/9919
ProjectLeonida:old-pr/9925
ProjectLeonida:old-pr/9933
ProjectLeonida:old-pr/9935
ProjectLeonida:old-pr/9918
ProjectLeonida:old-pr/9879
ProjectLeonida:old-pr/9880
ProjectLeonida:old-pr/9881
ProjectLeonida:old-pr/9996
ProjectLeonida:old-pr/9876
ProjectLeonida:old-pr/9892
ProjectLeonida:old-pr/9899
ProjectLeonida:old-pr/9915
ProjectLeonida:old-pr/9914
ProjectLeonida:old-pr/9872
ProjectLeonida:old-pr/9869
ProjectLeonida:old-pr/9866
ProjectLeonida:old-pr/9819
ProjectLeonida:old-pr/10012
ProjectLeonida:old-pr/9857
ProjectLeonida:old-pr/9893
ProjectLeonida:old-pr/9897
ProjectLeonida:old-pr/9928
ProjectLeonida:old-pr/9868
ProjectLeonida:old-pr/9917
ProjectLeonida:old-pr/9940
ProjectLeonida:old-pr/9873
ProjectLeonida:old-pr/9816
ProjectLeonida:old-pr/10009
ProjectLeonida:old-pr/9900
ProjectLeonida:old-pr/9966
ProjectLeonida:old-pr/9859
ProjectLeonida:old-pr/9843
ProjectLeonida:old-pr/9991
ProjectLeonida:old-pr/10058
ProjectLeonida:old-pr/9883
ProjectLeonida:old-pr/9838
ProjectLeonida:old-pr/9835
ProjectLeonida:old-pr/9959
ProjectLeonida:old-pr/9895
ProjectLeonida:old-pr/9837
ProjectLeonida:old-pr/9858
ProjectLeonida:old-pr/9865
ProjectLeonida:old-pr/9864
ProjectLeonida:old-pr/9840
ProjectLeonida:old-pr/9820
ProjectLeonida:old-pr/4669
ProjectLeonida:old-pr/9848
ProjectLeonida:old-pr/9850
ProjectLeonida:old-pr/9810
ProjectLeonida:old-pr/9799
ProjectLeonida:old-pr/9853
ProjectLeonida:old-pr/9875
ProjectLeonida:old-pr/9831
ProjectLeonida:old-pr/9796
ProjectLeonida:old-pr/9801
ProjectLeonida:old-pr/9813
ProjectLeonida:old-pr/9794
ProjectLeonida:old-pr/7417
ProjectLeonida:old-pr/9781
ProjectLeonida:old-pr/9806
ProjectLeonida:old-pr/9958
ProjectLeonida:old-pr/9809
ProjectLeonida:old-pr/9791
ProjectLeonida:old-pr/9792
ProjectLeonida:old-pr/10053
ProjectLeonida:old-pr/9784
ProjectLeonida:old-pr/9789
ProjectLeonida:old-pr/9849
ProjectLeonida:old-pr/9846
ProjectLeonida:old-pr/9773
ProjectLeonida:old-pr/9785
ProjectLeonida:old-pr/9803
ProjectLeonida:old-pr/9826
ProjectLeonida:old-pr/9839
ProjectLeonida:old-pr/9922
ProjectLeonida:old-pr/9948
ProjectLeonida:old-pr/7189
ProjectLeonida:old-pr/9957
ProjectLeonida:old-pr/9823
ProjectLeonida:old-pr/9807
ProjectLeonida:old-pr/9851
ProjectLeonida:old-pr/9774
ProjectLeonida:old-pr/9830
ProjectLeonida:old-pr/9836
ProjectLeonida:old-pr/9822
ProjectLeonida:old-pr/9783
ProjectLeonida:old-pr/9833
ProjectLeonida:old-pr/9890
ProjectLeonida:old-pr/9770
ProjectLeonida:old-pr/9769
ProjectLeonida:old-pr/9772
ProjectLeonida:old-pr/9787
ProjectLeonida:old-pr/9852
ProjectLeonida:old-pr/9834
ProjectLeonida:old-pr/9845
ProjectLeonida:old-pr/9871
ProjectLeonida:old-pr/9771
ProjectLeonida:old-pr/9776
ProjectLeonida:old-pr/10005
ProjectLeonida:old-pr/9949
ProjectLeonida:old-pr/9923
ProjectLeonida:old-pr/9805
ProjectLeonida:old-pr/9829
ProjectLeonida:old-pr/9790
ProjectLeonida:old-pr/9827
ProjectLeonida:old-pr/9929
ProjectLeonida:old-pr/9855
ProjectLeonida:old-pr/9934
ProjectLeonida:old-pr/9907
ProjectLeonida:old-pr/9910
ProjectLeonida:old-pr/9779
ProjectLeonida:old-pr/9780
ProjectLeonida:old-pr/9885
ProjectLeonida:old-pr/9882
ProjectLeonida:old-pr/9877
ProjectLeonida:old-pr/9998
ProjectLeonida:old-pr/4251
ProjectLeonida:old-pr/9987
ProjectLeonida:old-pr/9989
ProjectLeonida:old-pr/9950
ProjectLeonida:old-pr/9777
ProjectLeonida:old-pr/10044
ProjectLeonida:old-pr/9884
ProjectLeonida:old-pr/2906
ProjectLeonida:old-pr/5076
ProjectLeonida:old-pr/9937
ProjectLeonida:old-pr/9986
ProjectLeonida:old-pr/3014
ProjectLeonida:old-pr/9943
ProjectLeonida:old-pr/9939
ProjectLeonida:old-pr/4682
ProjectLeonida:old-pr/4765
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
ProjectLeonida/mandy!3132
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/3132"
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?
Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-12-02T13:05:15Z.
Claimed in the coordination issue as:
D3D12-PIPELINE-WAIT-AND-SLOW-EARLY(https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7343615179)Addresses #3103 (does not close it: the reporter's RTX 5080 gameplay session was not run, and first-seen or unbooked variant/masked PSOs can still compile during play).
What and why
Addresses two scheduler bottlenecks in
d3d12/crates/leonida-gpu/src/pipeline/make.rswhile preserving upstream queue ordering, frame wait budgets (#3000, #3032), and library admission rules:Pendingwaiter notification (pipeline/make/completion.rs, adapted from Foxhoundeffe3e3, GPL-3.0):static DONE: (Mutex<()>, Condvar)was global across all pipelines: every background worker completion callednotify_all(), waking everyleonida-list-*thread waiting on any slow pipeline.Pendingnow carries its own completion gate. Only the winning initializer signals thatPendingafter publishing either a builtHostPipelineor a refusal (includingLEONIDA_PIPELINE_PANIC_CATCHcaught panics).THREAD_PRIORITY_LOWEST->THREAD_PRIORITY_NORMAL):THREAD_PRIORITY_LOWEST(-2) by default (LEONIDA_PIPELINE_LOWEST), leaving multi-second driver PSO compiles preemptable by normal-priority threads even while list-recording threads block waiting for them.REQUESTEDjob (which would hold all workers at normal priority across ~1,700 cold-start requests), a worker now runs atTHREAD_PRIORITY_NORMALonly while one or more callers actually block waiting on that pipeline (until_made/ synchronousnow).EARLYworker has already entered the driver, the first waiter donates priority to that in-flight worker via a non-inheritableOpenThread(THREAD_SET_LIMITED_INFORMATION)handle opened and closed under the per-pipeline completion lock before worker exit or job reuse; when the last waiter departs (or on completion / unwind), the worker restores its configured background base (-2or-1).warm --usedsafety:slowconcurrency cap frommax(1, configured_general_workers / 4)(honoringLEONIDA_PIPELINE_WORKERSoverrides and low-RAM defaults instead of recomputing from logical CPUs alone), while keeping ordinary-before-slowEARLYpop order andREQUESTEDpromotion bypass unchanged.wanted_earlyandwarm --useddraw-only admission unchanged: unrestrictedleonida warm/-PrecompileAllalso appends>= 1 stimings toslow-pipelines.txtfor never-drawn recipes, and admittingslow-pipelines.txtintowanted_earlywould let runtime library misses callStorePipelineon never-drawn PSOs (bypassingwarm.rs::into_library's device-removal guard).Tested
a252854a2): 4 targeted regression failures on base -> green on HEAD (global completion gate contention blocking refusal waiters, missing before-claim and mid-build Win32 priority donation leaving workers at-2, and CPU-only slow cap ignoring configured pool overrides), while fast-before-slowEARLYordering and expired-request controls pass on both sides.wait_timeoutwakes:1,910 -> 0(burst) and13,966 -> 0(producer rendezvous).71.4 / 142.6 us -> 17.2 / 23.1 us(803k -> 3.60Mpublications/s; rendezvous337.0 / 866.2 us -> 54.8 / 112.8 us,123k -> 1.08Mpublications/s).-2whenREQUESTEDwithout waiters,0(THREAD_PRIORITY_NORMAL) with 1 -> 2 -> 1 active waiters, and-2immediately when the last waiter leaves before compilation finishes.rustc 1.98.1,x86_64-pc-windows-msvc):cargo test --locked --target x86_64-pc-windows-msvc -p leonida-gpu --lib pipeline::—65 passed, 0 failed, 8 ignored(4/4diagnostics completion tests also pass;1/2/8configured worker quotas verified in isolated subprocesses).1,717 passed, 75 ignoredacross runtime/shader/tool crates (sole workspace failure is pre-existingxtask::policy::tests::repository_passes_policyon untouchedhost.rs,emit/lower.rs, andamplify_dxil.rs).cargo clippy --workspace --all-targets --no-deps --locked --target x86_64-pc-windows-msvc— exit0(0warnings in touched files).python -I tools/d3d12_switches.py --check d3d12/docs/switches.md,python -I tests/test_text_write_line_endings.py, andpython -I scripts/check_no_game_data.py— all exit0.GPUs tested: NVIDIA GeForce RTX 3090 24 GB, driver 610.88, Windows 11 Pro
10.0.26200(synthetic workspace GPU + WARP tests and CPU synchronization/Win32 priority benchmarks; no retail title run).AI-assisted: yes — authored with GPT-6.2 Astra (
xhigh) with live turn-by-turn design advisories from Claude Fable 5.2 (max, which identified the never-drawnStorePipelinehazard and scoped priority donation strictly to active waiters), codebase scouting by GPT-6.2 Sol (high), and independent read-only review + re-review by Claude Opus 5.5 (max).Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed.Imported from ubiquitarianism/leonida. Originally posted by Kal0s-design on 2026-12-02T15:04:07Z.
Ran natively on Windows 11, head
8eedef9b4merged into currentmain(69cd4106c, clean merge),--features diagnostics, debug test profile.Suites on the merge
leonida-gpu --lib pipeline::completion_testsandslow_slots_follow_the_configured_general_pool)leonida-gpu --libfullclippy -p leonida-gpu --features diagnostics --testspipeline/make.rs,make/completion.rs,library.rs(11 elsewhere, untouched files)tools/d3d12_switches.py --check,check_no_game_data.pyExtra throwaway tests against
Completion(not pushed), 3 runs each, all passedNORMALinside the build, all 64 returned with the result, worker back atLOWEST, waiter count 0 and no worker record leftLOWESTbefore the build endsdemand()and dropLOWEST, everyCompletionidleNORMALin A,LOWESTin B and afterdemand()guardNORMALduring,LOWESTafter the unwind, waiter count 0LOWESTafter (worker 2's priority after its build was not sampled)I also checked whether a caller blocked in
masked_for(which callsp.make()withoutdemand()) can leave a worker atLOWEST. A forced synthetic case does (-2), but the masked twin is only ever passed tomasked_for, never toready/early, so it and its own format variants are built inline on the caller and no worker holds them. The path is not reachable today.Wake latency vs
main(same test file on both sides,until_made+make_with, 8 waiters on their own pipelines, 300 trials x 8 = 2400 samples per run, 3 runs, publish to return in us, debug build so absolute numbers are higher than a release build)mainp50 / p950 lost waits on either side. In the first row
mainreturns faster, most likely because its waiters are already awake from the 64 unrelatednotify_allcalls when their own pipeline lands; on the PR they stay parked and pay a normal wake. With both sides parked (second row) the PR has a higher median and about half the p95. So in this harness the PR shows a tighter p95 when both sides are parked, not a lower median. I did not count unrelated wakeups onmain. I did not reproduce the PR's release-build numbers.Not checked: an in-game run, a release-build benchmark, behaviour with real driver compiles, and Win32 priority effects under actual CPU contention (the tests read the priority value, they do not measure scheduling).
GPUs tested: n/a (CPU-only tests).
AI-assisted: yes (Claude Code).
Imported from ubiquitarianism/leonida. Originally posted by merzleckeier on 2026-12-02T15:18:38Z.
Review: COMMENTED
A live waiter cannot boost an already-running worker under Wine 11.22 with the submitted handle mask. I tested
8eedef9bonmain83046a71using the MSVC-target diagnostics build. The stockpipeline::make::suite passed 35/36.priority_tracks_live_waiters_during_an_early_buildsaw the worker stay at-2after a waiter parked, where it expected0.Logging the two calls in a scratch build showed
OpenThread(THREAD_SET_LIMITED_INFORMATION, ...)succeeded, thenSetThreadPriorityreturned zero with Win32 error 5 (ERROR_ACCESS_DENIED). Changing only the requested mask toTHREAD_SET_INFORMATIONmade all 36 tests pass in the same Wine prefix. This includes the in-flight boost, the return to base priority after the final waiter leaves, and the independence of refusal wakeups. Microsoft documents both access masks forSetThreadPriority. Win32 documentationThe result measures Win32 priority values using synthetic workers. Actual compile latency and scheduler throughput were outside the run.
git merge-treealso merged this head cleanly with #2789 and #3150 individually. AI-assisted with OpenAI Codex.Imported from ubiquitarianism/leonida. Originally posted by lixonik on 2026-12-02T15:35:32Z.
RUN (in game) -- unit tests + 300 s render-path verification for PR #3132:
8eedef9b4mainSHA:acc350745(git merge --no-ff, clean merge)python -I scripts/check_no_game_data.pyPASSpython -I tools/d3d12_switches.py --check d3d12/docs/switches.mdPASScargo test -p leonida-gpu --features diagnostics --lib --locked pipeline:: -- --skip depth_bounds_pipeline_loads_and_filters_draws-- 65 passed, 0 failed, 8 ignored (all newpipeline::make::completion_tests::*andpipeline::library::tests::a_slow_offline_timing_is_not_evidence_of_a_drawpassed; the skippeddepth_bounds_pipeline_loads_and_filters_drawstest is a pre-existing Windows 10 root-signature failure onmain, tracked in #2855)diagprofile (diagnostics,dlss,mimalloc), Series S profile, DLSS on, Frame Gen off, same restored save snapshot8eedef9b4onacc350745)mainalone (acc350745)Loaded into the world cleanly, stayed up past 300 s in-world with 0 device lost / 0 crashes / 0
ERRORlines, and closed cleanly. Rendered median FPS matchesmain(26.7vs26.8fps) with a slightly tighter slowest tenth (22.8vs21.9fps).Verdict: PASS.
AI-assisted: yes (Antigravity).
Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-12-02T15:51:34Z.
Thanks @merzleckeier for catching and verifying that under Wine 11.22 (
OpenThread(THREAD_SET_INFORMATION, ...)vsTHREAD_SET_LIMITED_INFORMATIONforSetThreadPriority), and thanks @Kal0s-design and @lixonik for the stress suites and 315 s in-game verification on8eedef9b4!To keep
8eedef9b4's verified 315 s Windows in-game run intact for review (CONTRIBUTING.mdsingle-topic / current-head gate), I am leaving8eedef9b4untouched and will open the 1-lineTHREAD_SET_INFORMATIONWine follow-up PR as soon as this lands — or happy to pushTHREAD_SET_INFORMATIONdirectly onto this branch if a maintainer prefers.AI-assisted (Gemini 4 Carbon High).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-02T18:00:09Z.
Triage of head
8eedef9b4(merge based0bf821fa, 87 commits behind;git merge-treeagainst currentmain45dc41f95: no conflicts).5 files in
leonida-gpu/src/pipeline/(+405/-44), newmake/completion.rsand its tests.CI green on the head (6 checks, including
d3d12 (windows-latest)).Existing verification: Verified on this head by @Kal0s-design (pipeline:: 66 passed, full lib 783 passed, clippy clean) and @lixonik (in game, 300+ s,
mainacc350745). @merzleckeier found that under WineSetThreadPriorityneedsTHREAD_SET_INFORMATION; the author is leaving this head untouched and will send that one-line fix separately.This check: Not re-reviewed in depth. Note for merge order: #3185 (
COMPILE_GATE, on by default) serialises every compile inlibrary::pipeline, which would largely cancel the per-pipeline waiter wake-ups and priority donation here; the two heads merge without textual conflict (merge-treeclean) but should not both land without a measurement of the combination.I did not build it: the crate is Windows-only (or the C++ runtime's Windows build), so no red/green was run here.
Verdict: ready (verified in game on this head; Wine priority fix to follow separately; watch interaction with #3185).
AI-assisted verification: Claude Opus (Claude Code), separate agent per batch.
Generated by Claude Code
Imported from ubiquitarianism/leonida. Originally posted by fiestorra on 2026-12-02T23:17:04Z.
VERIFY-3132 — Windows nativo: las cuatro pruebas de completación pasan y el control mata dos
958bdee65,20dab512d—pipeline/make.rs,make/completion.rs(+106),make/completion_tests.rs(+133),library.rs8eedef9b4(the branch also mergesmain)Ran at the head
Negative control (synthetic): I made the worker boost unconditionally (
let boosted = set_current(THREAD_PRIORITY_NORMAL);, droppingstate.waiters != 0), rebuilt and ran:Two of the four bite, including the one that exists for exactly this: "a request whose wait budget expired does not boost a later build" — the comment is the change: "Only live callers donate priority. Queuing a cold backlog or running out of wait budget must not leave the whole worker pool boosted."
A fact worth having in the merge order: these two commits are the ones #3200 carries — I verified #3200 earlier tonight on the same pair (
20dab512d,958bdee65). So one of the two pull requests can be merged and the other closed as contained, and whichever is kept should say so in its description.What I could not test
completionwas run.Written with an AI assistant.
Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-12-03T15:09:26Z.
Merged
origin/main(128579e9ef, including#3333compiler guard) into3e36b182d0(needs rebase), regeneratingd3d12/docs/switches.mdand wiringworker_lost(pipeline/make.rs) to callif p.made.set(None).is_ok() { p.completion.notify(); }beforep.release_claim(slot)so guarded driver-compiler crashes wake per-pipelineCompletionwaiters immediately instead of burning the wait budget (72/72pipeline::tests pass).AI-assisted: Gemini 4 Neon (XHigh) and Gemini 4 Carbon (High).
Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T16:18:28Z.
In-game gate run on an RTX 4060 8 GB (driver 610.88, Windows 11), in a batch of #3132, #3200 and #3226 merged into main
d227aa73e; this PR tested at its current head3e36b182d. Series S 1080, DLSS FG 2x,play-nvidia.ps1 -SeriesS -Resolution 1080 -FrameGen 2 -PrecompileUsed, scripted walk, 330 s.AI-assisted (Claude Opus 5.5), run and read by MoonEyes' agent.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.