d3d12: warm-up creates no longer hold the compile gate (RT-COMPILE-GATE-WARMUP-FREE) #2275
Closed
leonida/mandy
Tyrannys wants to merge 0 commits from
claude/compile-gate-warmup-free into main
pull from: claude/compile-gate-warmup-free
merge into: leonida:main
leonida:main
leonida:github-pr/3295
leonida:beta
leonida:docs/changelog-3483-3500
leonida:github-pr/3294
leonida:github-pr/2975
leonida:github-pr/2815
leonida:feat/gate-driver-start
leonida:feat/skip-pipelines-release
leonida:perf/lazy-compare
leonida:perf/mwaitx-wait
leonida:test/prio-ceiling-main
leonida:fix/ab-cpu-stdout
leonida:fix/gate-old-crashes
leonida:diag/ab-cpu
leonida:test/main-0312
leonida:github-pr/3291
leonida:diag/indirect-clamp-census
leonida:feat/barrier-enhanced
leonida:perf/texture-frame-ceiling
leonida:perf/dstorage-threads
leonida:fix/console-queue-dma-tables
leonida:fix/port-descriptors-record-parts
leonida:fix/frame-waits-fence
leonida:fix/console-sampler-words
leonida:fix/graphics-userdata-spill
leonida:fix/xg-reserved-layout-rotation
leonida:fix/barrier-console-flags
leonida:fix/switches-wait-test-child
leonida:test/list-value-waits
leonida:test/lot-gxdk-0412
leonida:fix/bvh-compacted-size
leonida:docs/i18n-quickstarts
leonida:feat/native-pipeline-slots
leonida:fix/clippy-leonida-gpu
leonida:fix/list-value-producers
leonida:fix/descriptor-page-straddle
leonida:fix/xmem-low-window
leonida:fix/ffx-jitter-never-zero
leonida:fix/run-stdout-closed
leonida:github-pr/2892
leonida:github-pr/2896
leonida:feat/warm-save-every
leonida:github-pr/2980
leonida:github-pr/2994
leonida:github-pr/3005
leonida:github-pr/3010
leonida:github-pr/3136
leonida:github-pr/3303
leonida:github-pr/3220
leonida:github-pr/3143
leonida:github-pr/3330
leonida:github-pr/3226
leonida:github-pr/3187
leonida:carry/3395
leonida:github-pr/2946
leonida:github-pr/2947
leonida:github-pr/2945
leonida:github-pr/2983
leonida:github-pr/3001
leonida:github-pr/3372
leonida:github-pr/3128
leonida:github-pr/3296
leonida:github-pr/2588
leonida:github-pr/3119
leonida:github-pr/3378
leonida:fix/crash-diagnostics
leonida:feat/dlss-mip-bias
leonida:fix/retired-out-of-order
leonida:fix/dxr-postbuild-barrier
leonida:fix/amd-relay-default
leonida:fix/removed-report-wait
leonida:feat/heap-twin
leonida:feat/vram-margin
leonida:github-pr/2472
leonida:github-pr/3123
leonida:github-pr/3088
leonida:assets/annonce-v1
leonida:github-pr/2794
leonida:github-pr/3300
leonida:github-pr/3304
leonida:github-pr/3308
leonida:github-pr/3367
leonida:github-pr/3369
leonida:fix/launcher-dlss-diagnostics
leonida:github-pr/3269
leonida:github-pr/2957
leonida:github-pr/3205
leonida:fix/crash-zero-guard
leonida:github-pr/3185
leonida:github-pr/3099
leonida:github-pr/3104
leonida:github-pr/3348
leonida:github-pr/3379
leonida:github-pr/3377
leonida:perf/darner-title-priority-ceiling
leonida:github-pr/3376
leonida:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
leonida:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
leonida:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
leonida:github-pr/3373
leonida:github-pr/3368
leonida:github-pr/3198
leonida:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
leonida:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
leonida:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
leonida:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
leonida:github-pr/3346
leonida:github-pr/3375
leonida:github-pr/2958
leonida:github-pr/3151
leonida:github-pr/3307
leonida:github-pr/3278
leonida:github-pr/3374
leonida:fix/runtime-test-conservative-fixtures
leonida:github-pr/3366
leonida:ci/shard-semantic-linux
leonida:github-pr/3354
leonida:docs/fg-limit-fps-switch
leonida:github-pr/3365
leonida:fix/read-file-hard-link
leonida:github-pr/3364
leonida:fix/book-slot-heap-never-read
leonida:github-pr/3361
leonida:github-pr/3263
leonida:github-pr/3360
leonida:github-pr/3353
leonida:github-pr/3331
leonida:fix/alias-later-queued-submissions
leonida:github-pr/3352
leonida:github-pr/3228
leonida:github-pr/3349
leonida:claude/gallant-sagan-aamatr
leonida:github-pr/3200
leonida:github-pr/3132
leonida:github-pr/3323
leonida:github-pr/3332
leonida:github-pr/3340
leonida:github-pr/3311
leonida:github-pr/3334
leonida:github-pr/3297
leonida:github-pr/3256
leonida:github-pr/2567
leonida:github-pr/2851
leonida:d3d12/agility-sdk-621
leonida:github-pr/3164
leonida:github-pr/3114
leonida:github-pr/3050
leonida:github-pr/3113
leonida:github-pr/3326
leonida:github-pr/3144
leonida:github-pr/2642
leonida:github-pr/3072
leonida:github-pr/2789
leonida:github-pr/2643
leonida:github-pr/3009
leonida:github-pr/3035
leonida:github-pr/3031
leonida:github-pr/2686
leonida:github-pr/2834
leonida:github-pr/3321
leonida:github-pr/3325
leonida:github-pr/3290
leonida:github-pr/3324
leonida:github-pr/3130
leonida:claude/fervent-curie-m19lnr
leonida:github-pr/3309
leonida:github-pr/3305
leonida:github-pr/3306
leonida:github-pr/3302
leonida:github-pr/3301
leonida:github-pr/3345
leonida:github-pr/3211
leonida:github-pr/3027
leonida:github-pr/3286
leonida:github-pr/3235
leonida:github-pr/3265
leonida:github-pr/3275
leonida:codex/skip-no-hit-ray-passes
leonida:github-pr/2823
leonida:github-pr/2911
leonida:github-pr/3262
leonida:github-pr/3125
leonida:github-pr/3206
leonida:github-pr/3250
leonida:github-pr/3238
leonida:github-pr/3188
leonida:github-pr/2952
leonida:github-pr/3217
leonida:github-pr/3168
leonida:t3/preserve-fsr-sdk-restart-path
leonida:t3/propagate-host-failure-hresult
leonida:github-pr/3209
leonida:t3/launcher-custom-parameters
leonida:github-pr/3207
leonida:github-pr/3183
leonida:github-pr/3160
leonida:github-pr/3201
leonida:ci/less-to-run
leonida:github-pr/2930
leonida:github-pr/2797
leonida:github-pr/2999
leonida:perf/native-compute-shader-forms
leonida:github-pr/3191
leonida:github-pr/3011
leonida:github-pr/3019
leonida:github-pr/2996
leonida:gh-readonly-queue/main/pr-2789-45dc41f95c1cd0dcc29c2c50582e0e9af8a77259
leonida:claude/blissful-franklin-ukp7ag
leonida:github-pr/3141
leonida:github-pr/3156
leonida:github-pr/3150
leonida:github-pr/3153
leonida:github-pr/3163
leonida:github-pr/3142
leonida:github-pr/3139
leonida:github-pr/2841
leonida:github-pr/3069
leonida:github-pr/3098
leonida:github-pr/3107
leonida:github-pr/3071
leonida:github-pr/2774
leonida:github-pr/2889
leonida:github-pr/3075
leonida:github-pr/2661
leonida:github-pr/3064
leonida:github-pr/3054
leonida:github-pr/3049
leonida:github-pr/2855
leonida:github-pr/2943
leonida:github-pr/3016
leonida:github-pr/2887
leonida:github-pr/3006
leonida:github-pr/3003
leonida:github-pr/2993
leonida:notes/card-time-and-plant-flicker
leonida:github-pr/2989
leonida:feat/vulkan-rs
leonida:github-pr/2985
leonida:github-pr/2951
leonida:github-pr/2982
leonida:github-pr/752
leonida:github-pr/792
leonida:github-pr/2877
leonida:github-pr/2654
leonida:github-pr/2893
leonida:github-pr/2948
leonida:github-pr/2944
leonida:github-pr/2919
leonida:github-pr/2915
leonida:archive/ci/less-to-run/20261202T1121Z
leonida:github-pr/2800
leonida:github-pr/2822
leonida:github-pr/2833
leonida:github-pr/2840
leonida:github-pr/2831
leonida:github-pr/2832
leonida:github-pr/2801
leonida:github-pr/2890
leonida:github-pr/2891
leonida:github-pr/2664
leonida:github-pr/2807
leonida:rt-call-trace
leonida:github-pr/2755
leonida:perf/ahead-split
leonida:github-pr/2587
leonida:github-pr/2698
leonida:github-pr/2609
leonida:github-pr/3219
leonida:docs/readme-runtime-proposal
leonida:github-pr/2017
leonida:github-pr/1741
leonida:github-pr/1667
leonida:codex/coord-claim-check-20261124-7e48
No reviewers
Assignees
Clear assignees
No assignees
Labels
Clear labels
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
enhancement
New feature or request
missing claim
Needs a claim in #14
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
Projects
Clear projects
No items
No project
Milestone
Clear milestone
No items
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Reference
leonida/mandy!2275
Loading…
Reference in a new issue
No description provided.
Delete branch "claude/compile-gate-warmup-free"
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?
Pull request closed
This pull request cannot be reopened because the branch was deleted.
Claimed in the coordination issue as: RT-COMPILE-GATE-WARMUP-FREE (claim)
Depends on: nothing. #2233 has landed on
main, so this PR now depends on nothing else.mainis merged in (e1bf0b8ae), with #2233 and the adaptive compile gate (#2412, #2462). After lixonik's review, a speculative create (compute warm-up; graphics/mesh prewarm of #2260) passes the gate without holding submissions only if it is a compute create and the gate is adaptive (SubmitMutex::warmup_passes), and not where the adaptive verdict says the driver holds submissions. Withclassic(forced or chosen byauto), withLEONIDA_COMPILE_GATE=1, and for graphics/mesh prewarms, it holds the gate as a demanded create does;LEONIDA_COMPILE_GATE_WARMUPS=0opts compute warm-ups in with every gate,=1makes all hold.What and why
The compile gate (
SubmitMutex::CompileTurn,runtime/src/vulkan_device_fault.h) keeps a queue submission out of the driver while any pipeline create is in it. That covers warm-ups too, which nobody is waiting for. HasiKe's cold boots on an RTX 2070 SUPER (#2233) show the cost:LEONIDA_COMPILE_GATE=0it ran at about 100 frames a second.MoonEyes measured the same in #1608 (07:32): 142 s of submission waits behind warm-ups, and game state 3 reached with the gate off. The gate must stay for demanded creates (the device losses it was added for), so this narrows it to them:
compile_job_speculativefor the length of such a job, andDriverTurnpasses it toCompileTurn.enter_submitwaits only for the demanded creates in the driver. A warm-up's pipeline is simply not ready yet: a draw or dispatch that needs it builds it or waits for it, as before.LEONIDA_COMPILE_GATE_WARMUP_MAXwarm-ups (default 1) are in the driver at once.LEONIDA_COMPILE_GATE_WARMUPS=1makes warm-ups hold the gate again, the behaviour before.LEONIDA_COMPILE_GATE=0still turns the whole gate off, unchanged.Risk, and why it is opt-out rather than opt-in: a submission can now be in the driver while one warm-up create runs. That is the case the gate was first added for (NVIDIA 630.20, a submission behind a long warm-up create lost the device). HasiKe has since corrected their own report: their TDR with the gate off at 249.7 s matches fiestorra's world-load GPU hang, which happens with no pipeline build at all, and says nothing about parallel creates. So no current measurement shows a create beside a submission losing the device. This pull request keeps that overlap to one warm-up at a time. HasiKe offered to run it on their card; the result decides whether the default stays.
Tested
submit_mutex_test(CPU), new casewarmups_do_not_hold_the_gate:max1 and 2, four warm-ups never have more thanmaxin the driver at once, and a demanded create does not wait for them;LEONIDA_COMPILE_GATE_WARMUPS=1), a submission waits for a warm-up as before;The earlier gate cases (a submission waits for a create, a create waits behind a waiting submission, creates share the gate) still pass.
d3d12_compile_pool_test, new case: a warm-up's and the checkpoint's jobs run withcompile_job_speculativeset, a demanded job without, also on a worker that ran a warm-up before (one worker and three).Each gate rule was broken by hand in turn (4 mutants: warm-ups hold submissions, the policy ignored, no cap, a warm-up entering during a submission), and
submit_mutex_testfailed for every one.With the change, these pass (15 of 15):
submit_mutex,d3d12_compile_pool,d3d12_compile_teardown(pool and one worker),big_compile_gate,d3d12_big_compute(all 7 settings),d3d12_m4_compute,d3d12_pipeline_workersandd3d12_pipeline_workers_eager. A boot was running on this machine, so the full suite was not run.python -I tests/test_docs_env_vars.py,tests/test_docs_repo_paths.py,scripts/check_no_game_data.pyon the changed files: pass.Not tested here: a real boot. A cold boot on HasiKe's card, and ours, with the gate on is the measurement that matters (submissions a second while warm-ups run, and whether the device stays).
GPUs tested: profile M: NVIDIA GeForce RTX 4070 SUPER, 12 GB, desktop, driver 621.01, Windows 11
AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly.docs/design.md, with how it was confirmed. (n/a: no translator change)🤖 Generated with Claude Code
One boot with this PR and the compile gate on: RTX 4070 SUPER (12 GB), NVIDIA 621.01, Windows 11, 64 GB. Counts only.
Tree:
maina73a57e13 + #1851 #1905 #1957 #1886 #1894 #1914 #1882 #2195 #2113 #1592 #2097 + #2233 #2179 #2228, #2260 at 6f2b52e56, and this PR (all clean merges). Recipe: async pipelines, prewarm from the previous run's order log (846 graphics pipelines planned), a local skip list of the 1,009 ray-hit shading programs,LEONIDA_RT_AS=off,LEONIDA_DEVICE_FAULT=0, the watchdog kicked,LEONIDA_ARENA_MB=1536,LEONIDA_TITLE_WINDOWS_MB=1024, warm offline, heavy and journal caches.LEONIDA_COMPILE_GATEunset (on),LEONIDA_COMPILE_GATE_WARMUP_MAXdefault.vkQueueWaitIdle), then exit 0xC0000005 at 291 sLEONIDA_DEVICE_FAULTwas 0, so there is no fault report. With one run, I can't tell whether a submission running beside a warm-up create played a part. None of my gate-off runs lost the device. The next run here repeats F7 withLEONIDA_DEVICE_FAULT=1.LEONIDA_COMPUTE_WARMUP_LIVE_MAX_BYTES=131072).AI-assisted (Claude Code).
Second run with this PR, the same recipe and the gate on, with
LEONIDA_DEVICE_FAULT=1(F7b). It never reached the world.LEONIDA_COMPILE_GATE=0here.AI-assisted (Claude Code).
@Tyrannys, here is the cold boot you asked for, with the gate on, on the RTX 2070 SUPER. AI-assisted (Claude Code).
Tree:
maina73a57e13+ #2195 + #2233 + this PR (e4713a440, a clean merge). There is also a local diagnostic patch of mine,LEONIDA_SKIP_GRAPHICS, which was not set in these runs.d3d12_compile_pool_testand the other compile/submit tests pass.Setup: NVIDIA 616.56, Windows 11 Pro 26300, my own 1.0.2.1 package. One binary for both runs, A/B via
LEONIDA_COMPILE_GATE_WARMUPS=1. Both boots were cold: no session or seed cache, an empty journal and their own empty__GL_SHADER_DISK_CACHE_PATH. Settings:LEONIDA_ASYNC_PIPELINES=1, gate on (LEONIDA_COMPILE_GATEunset),LEONIDA_DEVICE_FAULT=2, the watchdog kicked,LEONIDA_CONSOLE_FIX_US=0, 4096 MB title windows and arena, the keyboard pad, 300 s each.LEONIDA_COMPILE_GATE_WARMUPS=1(old)dispatch-workercreate at 28 s)So, on this card:
Neither boot reached the world. My input script only enters it at 314 s. So this says nothing about the world-load hang. That hang is a separate problem, a VS-as-mesh-shader draw that never finishes on the GPU (#1608, follow-up), and it also happens with the gate off.
The cold boot on this machine goes from unusable to normal speed, so this PR looks like a clear win to me.
I checked
e4713a440merged onto main73516a290(no conflicts) on Windows 10 / MSVC 14.44, GTX 1050 Ti host.d3d12_compile_pool_testandsubmit_mutex_testpass 2/2, plain and withLEONIDA_VK_VALIDATION=1, three repeats each.The production switch has no test. Only one line passes "this create is speculative" to the gate in the runtime:
d3d12_pipeline_compile.h:168,gate_.emplace(submits, compile_job_speculative);. I replaced it withgate_.emplace(submits);, which is exactly main's behaviour: every warm-up holds the gate again. Then I rebuiltgta6rt,d3d12_compile_pool_testandsubmit_mutex_test:submit_mutex_testdrivesSubmitMutex::CompileTurn(m, true)directly.d3d12_compile_pool_testchecks thatcompile_job_speculativeis set for a warm-up and for the checkpoint. Nothing constructs aDriverTurn(git grep DriverTurn runtime/test/finds only a comment atd3d12_compile_pool_test.cpp:356). So the one line that turns the feature on in the game is untested. A small test would close it:DriverTurnwith a pipeline, made whilecompile_job_speculativeis true;SubmitTurnon the same gate must then not wait;Docs that no longer match:
runtime/README.md:418(LEONIDA_COMPILE_GATE) still says unset means the workers compile while other queues submit, and1opts into holding the lock.compile_gate_enabled()(vulkan_device_fault.h:434-440) has the gate on unless the variable is0, which is what the next row says. Was this row already stale on main?docs/d3d12_vulkan.mdaround 2617-2619 and 2635-2636 still says, in the present tense, that a compute warm-up holds the gate for its whole create and every submission waits behind it. The new paragraph between them says the opposite by default.d3d12_pipeline_compile.h:145say a prewarm and the checkpoint also pass as speculative. No prewarm exists on main (that is #2260).save_session_pipeline_cachedoes no pipeline create and never entersDriverTurn. So only compute warm-ups are actually affected today.The risk is stated well. A submission can now be in the driver beside one warm-up create. That is the NVIDIA 630.20 case the gate was added for. It is capped at one at a time (
LEONIDA_COMPILE_GATE_WARMUP_MAX, andPipelineCompiler::next_lockedalready starts one warm-up at a time), andLEONIDA_COMPILE_GATE_WARMUPS=1restores the old behaviour. I have no world boot on this card yet, so I can't add a measurement.The code reading behind these points was done with a second agent and checked line by line before writing this.
AI-assisted (Claude Code, with Antigravity / Gemini 4 Neon).
@qhukz13 thank you for checking this, and for finding the untested line. All three points are addressed; current
mainand #2233's fixes are merged in (a7a48f1ae).test_a_driver_turn_passes_the_speculative_flag_to_the_gateind3d12_compile_pool_testbuilds a realDriverTurnwith a pipeline. Withcompile_job_speculativetrue, aSubmitTurnon the same gate passes at once; with it false, the submission is still held after 150 ms and passes once the create leaves. With your mutant (gate_.emplace(submits);) it fails (submitted.load() == speculative). Restored, it passes.LEONIDA_COMPILE_GATErow was already stale on main. It now says the gate is on unless0, and that1additionally holds the submit lock for compute builds (compute_driver_turn).d3d12_pipeline_compile.hsays the same.LEONIDA_COMPILE_GATE_WARMUPS=1.After the merge:
submit_mutex,d3d12_compile_pool,d3d12_compile_teardown*,d3d12_big_compute*,d3d12_pipeline_workers*,d3d12_m4_computeandbig_compile_gate, 15 of 15. Profile M: RTX 4070 SUPER 12 GB desktop, NVIDIA 621.01.@HasiKe thanks again for the A/B on the RTX 2070 SUPER (74,012 against 745 submissions in 300 s, no device loss). That is the measurement this needed.
AI-assisted (Claude Code)
Merged main (ec91d695c, with #2233 and the adaptive gate #2412/#2462; warm-up rule ported onto it) in at d61c90965; submit_mutex, d3d12_compile_pool, d3d12_compile_teardown, d3d12_compile_teardown_one_worker, d3d12_pipeline_workers, d3d12_pipeline_workers_eager and pipeline_workers pass. AI-assisted (Claude Code)
Thanks @lixonik for the careful review and for testing it. All three points are addressed in 3582924b6, and main (55bd6f4f1) is merged in at e1bf0b8ae: speculative creates now pass the gate without holding submissions only as compute creates with the adaptive gate (or with
LEONIDA_COMPILE_GATE_WARMUPS=0as an explicit opt-in); graphics/mesh prewarms and all warm-ups under classic /=1hold it;maxis clamped. submit_mutex, d3d12_compile_pool, d3d12_compile_teardown, d3d12_compile_teardown_one_worker, d3d12_pipeline_workers, d3d12_pipeline_workers_eager and pipeline_workers pass. AI-assisted (Claude Code)Re-reviewed
3582924b6/e1bf0b8aeand re-tested:warmup_passes(CreateKind)lets speculative creates pass without holding submissions only forCreateKind::computeunder the adaptive gate (unlessLEONIDA_COMPILE_GATE_WARMUPS=0explicitly opts intoeverywhere), keeping classic /LEONIDA_COMPILE_GATE=1warm-ups and graphics/mesh prewarms holding the gate as demanded creates do.set_warmup_policyclampsmaxto1..64(kMaxWarmups), preventing amax == 0deadlock.docs/d3d12_vulkan.md,runtime/README.md) and tests cover every gate mode, graphics prewarm throughDriverTurn, andmax == 0.submit_mutex: passed (43.70 s).d3d12_compile_pool: passed (2.28 s).Looks good to merge.
AI-assisted (Antigravity, Gemini).
Verified clean merge onto
02f71ccfe(heade1bf0b8ae) on native Windows 11 + RTX 5080 (16 GB desktop, NVIDIA616.64, default 2 s Windows TDR) in a controlled 3+3 alternating cold A/B — full tables in https://github.com/ProjectLeonida/mandy/issues/2464#issuecomment-7237165210:#2412already inmain, B beat A in 3/3 cold runs: compute gate turned off in 3/3 B runs (0in A), compile-gate waits dropped from955 / 997 / 973(8,128–17,961 ms, longest up to9,616 ms) to2 / 4 / 7(95–287 ms, longest52–285 ms), meanExecuteCommandListsX/srose+22.9%(26.88–29.65→32.40–36.41/s), andVK_ERROR_DEVICE_LOSTstayed0.Prediction HELD (3+3, non-provisional). No game data attached. AI-assisted (second-agent count audit by Claude Opus 5.5 and Codex GPT-6.2-Sol).
Checked
e1bf0b8aeagainstmain8fb974878on Windows 11 10.0.26300: it does not merge (git merge-tree --write-tree), so I ran no tests.runtime/test/d3d12_compile_pool_test.cpp, the summary comment at the top.a3452751d(2026-11-27, "the graphics-only worker wakes the general one for a PSO's held-back job") rewrote the same bullet this PR rewrites.mainhas nocompile_job_speculative, and none of the 12 lines this PR adds toruntime/shims/d3d12_pipeline_compile.hare there. Keep both statements in that bullet.AI-assisted (Claude Code).
AGENT-MSG | 2026-11-29 13:54 UTC | merzleckeier | AI-assisted: Codex
BASE:
51d343b86versus the same base +e1bf0b8ae. The local compile-pool test conflict was in the header comment only. I retained both test descriptions. Unmodifiedsubmit_mutexandd3d12_compile_poolpassed on both builds.MACHINE: RTX 4070 SUPER (NVIDIA 620.73.04) and Radeon 610M (RADV Mesa 26.3.1) | CachyOS, Wine 11.22.
EVIDENCE: MEASURED, three runs per policy per GPU. Synthetic GPU work.
The fixture holds a production compute warm-up at its
vkCreateComputePipelinesboundary for 450 ms after the unrelated D3D12 copy starts. The wrapper observes whether that copy reachesvkQueueSubmitduring the hold. Both the independent copy and the subsequent real compute dispatch gave their expected GPU readbacks in all 30 runs.LEONIDA_COMPILE_GATE_WARMUPS=1LEONIDA_COMPILE_GATE_WARMUPS=0Enqueue is the wall time of the copy's
ExecuteCommandLists. The artificial hold isolates Mandy's gate; the real driver compile follows it. This test covers CPU-side submission gating under Wine. All runs used synchronous submission, pipeline journaling and driver disk caches disabled and no gate timeout or early probe budget. Host Khronos validation reported the same device-creation VUID01387in both builds.Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime (
d3d12/) available now. Thank you for the contribution! If you believe this PR was closed by mistake (for example, if it still applies to active tools,d3d12/, or general docs), please feel free to reopen it.