d3d12: a pool of compile workers for the pipeline compiler (RT-ASYNC-COMPILE-POOL) #2233

Open
github-bot wants to merge 7 commits from github-bot/gh-2233 into main AGit
Owner

@⁠Tyrannys on GitHub · 2026-11-26 09:21 UTC · original
Tyrannys:claude/rt-async-compile-pool → main · +761 −45 · 6 files · 7 commits · open

Claimed in the coordination issue as: RT-ASYNC-COMPILE-POOL (claim; released by MoonEyes after #2077 was closed)

What and why

With LEONIDA_ASYNC_PIPELINES=1, every demanded build, the compute warm-up and the startup cache checkpoint run on PipelineCompiler's one general worker (plus #2098's graphics-only worker). One long driver compile therefore holds every pipeline a submission asked for behind it, and their draws and dispatches are skipped meanwhile. This ports MoonEyes' worker-pool design from #2077 onto #2098's scheduler (runtime/shims/d3d12_pipeline_compile.h), keeping its lifetime rules (after_running, cancel, running_here, release, stop_for_exit).

PipelineCompiler now runs LEONIDA_COMPILE_THREADS workers (default half the logical processors, 2 to 8). A worker takes the most urgent job it may:

  • Order: demanded builds first, in the order they came, then warm-ups by module size, then the checkpoint, which now waits until no worker compiles.
  • A free worker for small demanded builds: large builds (compute over 128 KiB, graphics of 1 MiB of SPIR-V or more) and warm-ups together take at most threads-1 workers.
  • Heavy count: at most LEONIDA_COMPILE_HEAVY_MAX large builds at once (default threads-1; 1 with LEONIDA_SERIAL_BIG_COMPILES=1), compute and graphics alike. Each still takes its place at the memory gate (LEONIDA_BIG_COMPILE_BUDGET_MB). Graphics builds are counted by size even when LEONIDA_SERIAL_BIG_COMPILES=0 clears graphics_.large, so the async path follows the same knobs for both.
  • Warm-ups behind demanded builds: warm-ups run one at a time, as on the single worker, and none starts while a demanded build runs. MoonEyes found in #1608 (07:32 today) that the default compile gate (runtime/src/vulkan_device_fault.h) makes every submission wait for each create in flight. With the gate on, their boot's submissions waited 142 s in all behind warm-ups of about 800 KB (5-13.5 s each). With LEONIDA_COMPILE_GATE=0 the same boot reached game state 3 at 130 s and ran 240 s with no fault. Running several warm-ups at once would lengthen those waits; so while the title asks for builds, only those builds are started.
  • One build of a PSO at a time, so after_running and the teardown rules hold as they were.
  • The checkpoint backs off from a running demand too (review by lixonik): the checkpoint starts only when no worker compiles, but a demanded build can start on another worker during its vkGetPipelineCacheData size query. has_compile_waiter(), which the checkpoint asks before the query and again after it, now also answers true while a demanded build runs, not only while one is queued, so the checkpoint stops before the blob read. No warm-up can start in that window: the running checkpoint is the one speculative job allowed.

LEONIDA_COMPILE_THREADS=1 is the layout before the pool: one general worker and the graphics-only one (LEONIDA_GRAPHICS_COMPILE_WORKER), with the old job order.

Not changed here, and still open: a submission still waits at the compile gate for every create in flight, including a warm-up already running. The pool shortens how long a demanded build waits behind another build. It does not stop the gate holding the title's thread, which is what ends brandostrong's synchronous runs at the 30 s watchdog. MoonEyes' two ideas (warm-ups not holding the gate; a cap on the wait) touch the gate itself and belong in a separate item.

Synchronous mode (LEONIDA_ASYNC_PIPELINES=0, the default) and MoonEyes' finding of 10:31 in #1608 (large compute builds one after another, although the driver compiles about 3.7 times faster on 6 threads): there a build a dispatch asks for runs inside the submission, through PipelineCompiles::build (runtime/src/vulkan_replay.h) and its memory budget, not on these workers. Only the compute warm-up and the checkpoint go through PipelineCompiler in that mode, and warm-ups stay one at a time. So this pull request does not change that case; letting more large builds run at once there is a change to PipelineCompiles (or to the warm-up's one-at-a-time rule, which the compile-gate finding above argues against while the title submits) and belongs in its own item.

A note on azsekazvamdimitar's report (#1608, 06:42) that graphics jobs of 1 MiB or more are always serial in PipelineCompiles. On current main, graphics_.large is false with LEONIDA_SERIAL_BIG_COMPILES=0, and otherwise the large ones share the memory budget. The serial builds they saw in the asynchronous path came from the single graphics worker, which this pool replaces.

One build per PSO with LEONIDA_COMPILE_THREADS=1 (the general worker plus the graphics-only one): two variants of one graphics PSO could build at once there, one on each worker, and a last Release then deleted the PSO under the second (found by qhukz13). This is the same race qhukz13 claimed as RT-COMPILE-OWNER-RACE and fixes for main in #2361, which I missed. The single-worker branch of next_locked here now uses #2361's code line for line, so whichever of the two lands second merges trivially; if #2361 lands first, this pull request takes its version.

Tested

  • New CPU test d3d12_compile_pool (no device). Its jobs wait at gates the test opens, so each rule is checked while the jobs it is about are still running. It covers:

    • the settings parse;
    • a long large build does not hold up a small demanded one, while with one worker it still does (the old behaviour);
    • the heavy count, and the worker left free;
    • warm-ups one at a time, and none while a demanded build runs;
    • demanded builds before warm-ups before the checkpoint;
    • one job per PSO;
    • a checkpoint's second look seeing a demanded build that started on another worker during it (lixonik's case: it failed before the fix and passes after);
    • a finished job waking the idle workers;
    • the last release, cancel and stop_for_exit with jobs running and queued.

    It passed 8 runs out of 8. Each rule was broken by hand in turn (7 mutants, before the checkpoint fix: checkpoint-when-idle, one job per PSO, the free worker, the heavy count, one warm-up, warm-ups behind demanded builds, waking idle workers), and the test failed for every one.

  • d3d12_compile_teardown runs with the pool, and as new d3d12_compile_teardown_one_worker with LEONIDA_COMPILE_THREADS=1. Both pass, as do d3d12_big_compute (all 7 settings), d3d12_m4_compute, big_compile_gate, compile_helper, replay_pipeline_compiles*, pipeline_workers and d3d12_pipeline_workers*.

  • Full runtime CTest, -j 4 (a boot was running on this machine). Everything passes except four:

    • xs_proxy_mock and d3d12_multithread failed under that load and pass when rerun alone;
    • xbox_present (present VkResult -11) and d3d12_set_descriptor_heaps (line 353) fail the same way on upstream/main a73a57e13 without this change.
  • python -I tests/test_docs_env_vars.py, test_ctest_registration.py, test_docs_repo_paths.py, test_text_write_line_endings.py, scripts/check_no_game_data.py on the changed files: pass.

  • Test-merged with the open PRs on the same code: #2198, #2220 and #2208 merge cleanly. #1756 conflicts in d3d12_vulkan_device.cpp, but it already conflicts with main by itself. It also moves the checkpoint to priority 1, so whichever lands second must keep "checkpoint only when idle" keyed on the checkpoint, not on SIZE_MAX.

No real boot was run with this change; the boot session will test it.

GPUs tested: profile M: NVIDIA GeForce RTX 4070 SUPER, 12 GB, desktop, driver 621.01, Windows 11

AI-assisted: yes (Claude Code)

Checklist

  • Based on current main and merges cleanly.
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a: no translator change)

🤖 Generated with Claude Code

**@⁠Tyrannys** on GitHub · 2026-11-26 09:21 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2233) `Tyrannys:claude/rt-async-compile-pool` → `main` · +761 −45 · 6 files · 7 commits · open Claimed in the coordination issue as: RT-ASYNC-COMPILE-POOL ([claim](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608); released by MoonEyes after #2077 was closed) ### What and why With `LEONIDA_ASYNC_PIPELINES=1`, every demanded build, the compute warm-up and the startup cache checkpoint run on `PipelineCompiler`'s one general worker (plus #2098's graphics-only worker). One long driver compile therefore holds every pipeline a submission asked for behind it, and their draws and dispatches are skipped meanwhile. This ports MoonEyes' worker-pool design from #2077 onto #2098's scheduler (`runtime/shims/d3d12_pipeline_compile.h`), keeping its lifetime rules (`after_running`, `cancel`, `running_here`, `release`, `stop_for_exit`). `PipelineCompiler` now runs `LEONIDA_COMPILE_THREADS` workers (default half the logical processors, 2 to 8). A worker takes the most urgent job it may: - **Order:** demanded builds first, in the order they came, then warm-ups by module size, then the checkpoint, which now waits until no worker compiles. - **A free worker for small demanded builds:** large builds (compute over 128 KiB, graphics of 1 MiB of SPIR-V or more) and warm-ups together take at most threads-1 workers. - **Heavy count:** at most `LEONIDA_COMPILE_HEAVY_MAX` large builds at once (default threads-1; 1 with `LEONIDA_SERIAL_BIG_COMPILES=1`), compute and graphics alike. Each still takes its place at the memory gate (`LEONIDA_BIG_COMPILE_BUDGET_MB`). Graphics builds are counted by size even when `LEONIDA_SERIAL_BIG_COMPILES=0` clears `graphics_.large`, so the async path follows the same knobs for both. - **Warm-ups behind demanded builds:** warm-ups run one at a time, as on the single worker, and none starts while a demanded build runs. MoonEyes found in #1608 (07:32 today) that the default compile gate (`runtime/src/vulkan_device_fault.h`) makes every submission wait for each create in flight. With the gate on, their boot's submissions waited 142 s in all behind warm-ups of about 800 KB (5-13.5 s each). With `LEONIDA_COMPILE_GATE=0` the same boot reached game state 3 at 130 s and ran 240 s with no fault. Running several warm-ups at once would lengthen those waits; so while the title asks for builds, only those builds are started. - **One build of a PSO at a time**, so `after_running` and the teardown rules hold as they were. - **The checkpoint backs off from a running demand too** (review by lixonik): the checkpoint starts only when no worker compiles, but a demanded build can start on another worker during its `vkGetPipelineCacheData` size query. `has_compile_waiter()`, which the checkpoint asks before the query and again after it, now also answers true while a demanded build runs, not only while one is queued, so the checkpoint stops before the blob read. No warm-up can start in that window: the running checkpoint is the one speculative job allowed. `LEONIDA_COMPILE_THREADS=1` is the layout before the pool: one general worker and the graphics-only one (`LEONIDA_GRAPHICS_COMPILE_WORKER`), with the old job order. Not changed here, and still open: a submission still waits at the compile gate for every create in flight, including a warm-up already running. The pool shortens how long a demanded build waits behind another build. It does not stop the gate holding the title's thread, which is what ends brandostrong's synchronous runs at the 30 s watchdog. MoonEyes' two ideas (warm-ups not holding the gate; a cap on the wait) touch the gate itself and belong in a separate item. Synchronous mode (`LEONIDA_ASYNC_PIPELINES=0`, the default) and MoonEyes' finding of 10:31 in #1608 (large compute builds one after another, although the driver compiles about 3.7 times faster on 6 threads): there a build a dispatch asks for runs inside the submission, through `PipelineCompiles::build` (`runtime/src/vulkan_replay.h`) and its memory budget, not on these workers. Only the compute warm-up and the checkpoint go through `PipelineCompiler` in that mode, and warm-ups stay one at a time. So this pull request does not change that case; letting more large builds run at once there is a change to `PipelineCompiles` (or to the warm-up's one-at-a-time rule, which the compile-gate finding above argues against while the title submits) and belongs in its own item. A note on azsekazvamdimitar's report (#1608, 06:42) that graphics jobs of 1 MiB or more are always serial in `PipelineCompiles`. On current `main`, `graphics_.large` is false with `LEONIDA_SERIAL_BIG_COMPILES=0`, and otherwise the large ones share the memory budget. The serial builds they saw in the asynchronous path came from the single graphics worker, which this pool replaces. One build per PSO with `LEONIDA_COMPILE_THREADS=1` (the general worker plus the graphics-only one): two variants of one graphics PSO could build at once there, one on each worker, and a last Release then deleted the PSO under the second (found by qhukz13). This is the same race qhukz13 claimed as RT-COMPILE-OWNER-RACE and fixes for `main` in #2361, which I missed. The single-worker branch of `next_locked` here now uses #2361's code line for line, so whichever of the two lands second merges trivially; if #2361 lands first, this pull request takes its version. ### Tested - New CPU test `d3d12_compile_pool` (no device). Its jobs wait at gates the test opens, so each rule is checked while the jobs it is about are still running. It covers: - the settings parse; - a long large build does not hold up a small demanded one, while with one worker it still does (the old behaviour); - the heavy count, and the worker left free; - warm-ups one at a time, and none while a demanded build runs; - demanded builds before warm-ups before the checkpoint; - one job per PSO; - a checkpoint's second look seeing a demanded build that started on another worker during it (lixonik's case: it failed before the fix and passes after); - a finished job waking the idle workers; - the last `release`, `cancel` and `stop_for_exit` with jobs running and queued. It passed 8 runs out of 8. Each rule was broken by hand in turn (7 mutants, before the checkpoint fix: checkpoint-when-idle, one job per PSO, the free worker, the heavy count, one warm-up, warm-ups behind demanded builds, waking idle workers), and the test failed for every one. - `d3d12_compile_teardown` runs with the pool, and as new `d3d12_compile_teardown_one_worker` with `LEONIDA_COMPILE_THREADS=1`. Both pass, as do `d3d12_big_compute` (all 7 settings), `d3d12_m4_compute`, `big_compile_gate`, `compile_helper`, `replay_pipeline_compiles*`, `pipeline_workers` and `d3d12_pipeline_workers*`. - Full runtime CTest, `-j 4` (a boot was running on this machine). Everything passes except four: - `xs_proxy_mock` and `d3d12_multithread` failed under that load and pass when rerun alone; - `xbox_present` (present `VkResult -11`) and `d3d12_set_descriptor_heaps` (line 353) fail the same way on `upstream/main` a73a57e13 without this change. - `python -I tests/test_docs_env_vars.py`, `test_ctest_registration.py`, `test_docs_repo_paths.py`, `test_text_write_line_endings.py`, `scripts/check_no_game_data.py` on the changed files: pass. - Test-merged with the open PRs on the same code: #2198, #2220 and #2208 merge cleanly. #1756 conflicts in `d3d12_vulkan_device.cpp`, but it already conflicts with `main` by itself. It also moves the checkpoint to priority 1, so whichever lands second must keep "checkpoint only when idle" keyed on the checkpoint, not on `SIZE_MAX`. No real boot was run with this change; the boot session will test it. GPUs tested: profile M: NVIDIA GeForce RTX 4070 SUPER, 12 GB, desktop, driver 621.01, Windows 11 AI-assisted: yes (Claude Code) ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a: no translator change) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
With LEONIDA_ASYNC_PIPELINES=1 every demanded build, the compute warm-up and
the cache checkpoint ran on one general worker (plus a graphics-only one), so
one long driver compile held every pipeline a submission asked for behind it,
and their draws and dispatches were skipped meanwhile.

PipelineCompiler now runs LEONIDA_COMPILE_THREADS workers (half the logical
processors, 2 to 8). A worker takes the most urgent job it may:
- demanded builds first, in the order they came, then warm-ups by size, then
  the checkpoint, which waits until no worker compiles;
- large builds (compute over 128 KiB, graphics of 1 MiB or more) and warm-ups
  together take at most threads-1 workers, so one stays free for a small
  demanded build; at most LEONIDA_COMPILE_HEAVY_MAX large builds at once
  (default threads-1, 1 with LEONIDA_SERIAL_BIG_COMPILES=1), compute and
  graphics alike, each still within the memory gate;
- warm-ups run one at a time, and none starts while a demanded build runs:
  each holds the compile gate for its whole create, and a submission waits
  for every create in flight;
- one build of a PSO at a time, so after_running and the teardown rules hold.

LEONIDA_COMPILE_THREADS=1 keeps the layout before the pool. The design is
MoonEyes' (#2077), ported onto #2098's scheduler.

Tests: d3d12_compile_pool (CPU, jobs held at gates: settings, a long build
does not hold up a small demanded one, heavy count, free worker, warm-ups one
at a time and after demanded builds, order, one job per PSO, release/cancel/
stop_for_exit with jobs in flight), and d3d12_compile_teardown also with one
worker.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The startup cache checkpoint starts only when no compile worker is busy, but a
demanded build can start on another worker while the checkpoint queries the
cache size. has_compile_waiter() only looked at the queue, so the check after
the size query went on to read the cache blob while that build ran.
has_compile_waiter() now also answers true while a demanded build runs.

New gated test in d3d12_compile_pool_test: the checkpoint waits at a gate
standing in for the size query, a demanded build starts on the second worker,
and the second look must see it. It fails without the fix.

Reported by lixonik in review of #2233.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 11:24:00 +00:00
Author
Owner

@⁠lixonik on GitHub · 2026-11-26 10:37 UTC · original · reviewed

The native Windows build passed d3d12_compile_pool, d3d12_compile_teardown and d3d12_compile_teardown_one_worker. I also checked the optional startup checkpoint with gated jobs in the real scheduler. No retail workload. AI-assisted.

**@⁠lixonik** on GitHub · 2026-11-26 10:37 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2233#pullrequestreview-6072569987) · **reviewed** The native Windows build passed `d3d12_compile_pool`, `d3d12_compile_teardown` and `d3d12_compile_teardown_one_worker`. I also checked the optional startup checkpoint with gated jobs in the real scheduler. No retail workload. AI-assisted.
@ -426,0 +541,4 @@
}
for (auto it = jobs_.begin(); it != jobs_.end(); ++it) {
const Job& job = it->second;
if (it->first == SIZE_MAX) {
Author
Owner

@⁠lixonik on GitHub · 2026-11-26 10:37 UTC · original

[P3] Keep the checkpoint's second pressure check aware of running demands. Checkpoint admission is idle-only, but a priority-0 job can start on a second worker during the checkpoint's vkGetPipelineCacheData size query. I reproduced the transition with gated jobs: for the same demand, has_compile_waiter() is true with one worker and false with two once the second worker takes it. The second check in save_session_pipeline_cache then proceeds to the blob read even though the demand is active, which can contend again for the driver cache. Could the checkpoint's post-query check also recognize a running demand? The probe checks scheduling, without measuring driver latency.

**@⁠lixonik** on GitHub · 2026-11-26 10:37 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2233#discussion_r4707097524) [P3] Keep the checkpoint's second pressure check aware of running demands. Checkpoint admission is idle-only, but a priority-0 job can start on a second worker during the checkpoint's `vkGetPipelineCacheData` size query. I reproduced the transition with gated jobs: for the same demand, `has_compile_waiter()` is true with one worker and false with two once the second worker takes it. The second check in `save_session_pipeline_cache` then proceeds to the blob read even though the demand is active, which can contend again for the driver cache. Could the checkpoint's post-query check also recognize a running demand? The probe checks scheduling, without measuring driver latency.
@ -426,0 +541,4 @@
}
for (auto it = jobs_.begin(); it != jobs_.end(); ++it) {
const Job& job = it->second;
if (it->first == SIZE_MAX) {
Author
Owner

@⁠Tyrannys on GitHub · 2026-11-26 10:53 UTC · original

Thanks @⁠lixonik, good catch, and thanks for the gated repro. Fixed in 2d56b685a.

has_compile_waiter() now also returns true while a demanded build is running, not only while one is queued. The checkpoint asks it before and after the size query, so the second look now stops before the blob read when a demand started on another worker meanwhile. Only demanded builds needed adding: no warm-up can start in that window, since the running checkpoint is the one speculative job the pool allows.

Test: test_a_checkpoint_sees_a_demand_that_started_during_it in runtime/test/d3d12_compile_pool_test.cpp. Two workers; the checkpoint job checks the first look, then waits at a gate standing in for vkGetPipelineCacheData's size query; a demanded job starts on the second worker; the gate opens and the second look must be true. Before the fix it fails (second_look == 1), after it passes (9 runs of 9). d3d12_compile_teardown (pool and one worker), d3d12_big_compute*, d3d12_m4_compute and d3d12_pipeline_workers* still pass.

With LEONIDA_COMPILE_THREADS=1 the same now also holds for a demanded graphics build on the graphics-only worker, which the old check missed as well.

AI-assisted (Claude Code)

**@⁠Tyrannys** on GitHub · 2026-11-26 10:53 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2233#discussion_r4707317686) Thanks @⁠lixonik, good catch, and thanks for the gated repro. Fixed in 2d56b685a. `has_compile_waiter()` now also returns true while a demanded build is running, not only while one is queued. The checkpoint asks it before and after the size query, so the second look now stops before the blob read when a demand started on another worker meanwhile. Only demanded builds needed adding: no warm-up can start in that window, since the running checkpoint is the one speculative job the pool allows. Test: `test_a_checkpoint_sees_a_demand_that_started_during_it` in `runtime/test/d3d12_compile_pool_test.cpp`. Two workers; the checkpoint job checks the first look, then waits at a gate standing in for `vkGetPipelineCacheData`'s size query; a demanded job starts on the second worker; the gate opens and the second look must be true. Before the fix it fails (`second_look == 1`), after it passes (9 runs of 9). `d3d12_compile_teardown` (pool and one worker), `d3d12_big_compute*`, `d3d12_m4_compute` and `d3d12_pipeline_workers*` still pass. With `LEONIDA_COMPILE_THREADS=1` the same now also holds for a demanded graphics build on the graphics-only worker, which the old check missed as well. AI-assisted (Claude Code)
Author
Owner

@⁠Tyrannys on GitHub · 2026-11-26 10:57 UTC · original

Test of a83f38508 on a world-reaching recipe: RTX 4070 SUPER, NVIDIA 621.01, Windows 11, 64 GB. Counts only.

Tree: main a73a57e13 + #1851 #1905 #1957 #1886 #1894 #1914 #1882 #2195 #2113 #1592 #2097. The pool runs add this PR (clean merge). d3d12_compile_pool_test: PASS.
Recipe (as in my #1608 comment of 09:00): LEONIDA_COMPILE_GATE=0, a local skip list of the 724 library compute programs of 2 MiB or more, LEONIDA_RT_AS=off, LEONIDA_DEVICE_FAULT=0, the watchdog kicked, LEONIDA_COMPILE_WORKERS=6, warm offline and heavy caches, 1,800 s, the same 21-press script. LEONIDA_COMPILE_THREADS left at its default.

run pipelines this PR game state 3 at world reached world frames per minute pending-pipeline replay skips slow builds (heavy cache) PresentX end
F3b sync no 125 s yes 1-3 0 119 2,104 full time, no fault
F4a sync yes 115 s yes 1-4 0 14 2,559 full time, no fault
F4b async yes 95 s yes 1-6 259 12 2,305 full time, no fault
  • Async with the pool: only 259 draws were skipped as pending, out of 68,509 indirect graphics draws recorded (65,536 emitted). azsekazvamdimitar's async run without the pool skipped 162,822 of 229,611 world-phase draws. F4b also reached game state 3 the fastest.
  • Sync with the pool: no measurable change, as expected.
  • World frame rate: not limited by compiles any more on this machine. With a warm heavy cache, only 12-14 slow builds happen in a run. In the world, the submit thread is busy for only 13-59% of the wall time (0.3-1.4 submissions a second). Per submission, slot-133 shadow copies take 125-157 ms (about 2 GB of aliased pages) and texture uploads 200-290 ms. So the remaining cost is outside pipeline creation.
  • No device loss in any run, and the ~1,080 s title crash from my #1608 comment did not occur in these three runs.

AI-assisted (Claude Code).

**@⁠Tyrannys** on GitHub · 2026-11-26 10:57 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2233#issuecomment-7190057736) Test of a83f38508 on a world-reaching recipe: RTX 4070 SUPER, NVIDIA 621.01, Windows 11, 64 GB. Counts only. **Tree:** `main` a73a57e13 + #1851 #1905 #1957 #1886 #1894 #1914 #1882 #2195 #2113 #1592 #2097. The pool runs add this PR (clean merge). `d3d12_compile_pool_test`: PASS. **Recipe** (as in my #1608 comment of 09:00): `LEONIDA_COMPILE_GATE=0`, a local skip list of the 724 library compute programs of 2 MiB or more, `LEONIDA_RT_AS=off`, `LEONIDA_DEVICE_FAULT=0`, the watchdog kicked, `LEONIDA_COMPILE_WORKERS=6`, warm offline and heavy caches, 1,800 s, the same 21-press script. `LEONIDA_COMPILE_THREADS` left at its default. | run | pipelines | this PR | game state 3 at | world reached | world frames per minute | pending-pipeline replay skips | slow builds (heavy cache) | PresentX | end | |---|---|---|---|---|---|---|---|---|---| | F3b | sync | no | 125 s | yes | 1-3 | 0 | 119 | 2,104 | full time, no fault | | F4a | sync | yes | 115 s | yes | 1-4 | 0 | 14 | 2,559 | full time, no fault | | F4b | async | yes | 95 s | yes | 1-6 | 259 | 12 | 2,305 | full time, no fault | - **Async with the pool:** only 259 draws were skipped as pending, out of 68,509 indirect graphics draws recorded (65,536 emitted). azsekazvamdimitar's async run without the pool skipped 162,822 of 229,611 world-phase draws. F4b also reached game state 3 the fastest. - **Sync with the pool:** no measurable change, as expected. - **World frame rate:** not limited by compiles any more on this machine. With a warm heavy cache, only 12-14 slow builds happen in a run. In the world, the submit thread is busy for only 13-59% of the wall time (0.3-1.4 submissions a second). Per submission, slot-133 shadow copies take 125-157 ms (about 2 GB of aliased pages) and texture uploads 200-290 ms. So the remaining cost is outside pipeline creation. - No device loss in any run, and the ~1,080 s title crash from my #1608 comment did not occur in these three runs. AI-assisted (Claude Code).
Author
Owner

@⁠HasiKe on GitHub · 2026-11-26 11:37 UTC · original

Test report for this PR at head 2d56b685a. I merged it locally on main a73a57e13 together with #2195, because main alone aborts at startup on this machine. AI-assisted (Claude Code).

Setup: RTX 2070 SUPER, NVIDIA 616.56, Windows 11 Pro 26300, MSVC RelWithDebInfo via scripts/build_runtime.ps1 -FetchSdl3, my own 1.0.2.1 package. Every boot ran 300 s with LEONIDA_ASYNC_PIPELINES=1, the keyboard pad, LEONIDA_TITLE_WATCHDOG=0 with the kick RVAs, LEONIDA_CONSOLE_FIX_US=0 and 4096 MB title windows and arena. d3d12_compile_pool_test passes.

The cold boots have no session or seed cache and an empty journal. Each also has its own empty __GL_SHADER_DISK_CACHE_PATH, so the driver cache does not warm the second run.

Boot Workers Builds (demanded / warm-up) Warm-up time Submissions in 300 s frames/s at ~300 s Result
warm, main+#2195 1 + graphics 6 / 1,758 (all cache hits) 13.5 s 55,115 104 no fault
warm, + this PR 8 (heavy max 7) 5 / 1,759 (all cache hits) 12.8 s 48,540 90 no fault
cold, main+#2195 1 + graphics 6 / 1,149 290.5 s (10 over 2 s, max 7.0 s) 718 0.58 no fault
cold, + this PR 8 (heavy max 7) 6 / 1,151 290.9 s (10 over 2 s, max 7.0 s) 713 0.59 no fault
cold, + this PR, LEONIDA_COMPILE_GATE=0 8 (heavy max 7) 98 / 1,031 210.6 s 24,493 by 252 s ~100 at 65-115 s device lost at 249.7 s

What this shows on this GPU:

  • No regression. With the gate on, the pool boots exactly like the baseline, warm and cold. The difference in the two warm boots is run-to-run noise: the title spends its time the same way in both.
  • With the gate on, the pool has nothing to parallelise here. In the cold boot the title demands only about 6 builds in 300 s. All of the compiling, about 290 s of it, is warm-up, which the PR deliberately keeps serial. The title then crawls at about 1 submission/s, apparently behind the gate waiting on each warm-up. The gate's own log shows nothing, though: no submit-handoff lines and wait 0.00 in the submit phases. So that cause is my reading, not a measurement.
  • With LEONIDA_COMPILE_GATE=0 the title moves on to about 200 submissions/s and 100 frames/s from 65 s on. It then demands 98 builds, and the pool runs them in parallel: 49 dispatch, up to 30.7 s each; 49 draw, up to 16.8 s each. At 249.7 s the device is lost. vkGetSemaphoreCounterValue returns VK_ERROR_DEVICE_LOST, and nvlddmkm logs event 153 (TDR) in the same minute. Right before the loss, four draw-worker creates were in flight on four threads while the title kept submitting. This is the case the gate was added for, and it matches the device losses fiestorra reports in #1608 on an RTX 4090. One boot only, so it is not proof that parallel creates cause the TDR.

So on this machine the pool is safe to merge as it is. The win MoonEyes measured with the gate off comes with a device loss here. I would rather not run with LEONIDA_COMPILE_GATE=0 until the "warm-ups do not hold the gate" follow-up exists. That follow-up looks like the change that would actually let a cold boot get going.

I'm happy to run that follow-up, or a LEONIDA_COMPILE_THREADS/LEONIDA_COMPILE_HEAVY_MAX sweep with the gate off, on this card. Logs stay local: they name game shaders.

**@⁠HasiKe** on GitHub · 2026-11-26 11:37 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2233#issuecomment-7190969042) Test report for this PR at head `2d56b685a`. I merged it locally on `main` `a73a57e13` together with #2195, because `main` alone aborts at startup on this machine. AI-assisted (Claude Code). Setup: RTX 2070 SUPER, NVIDIA 616.56, Windows 11 Pro 26300, MSVC RelWithDebInfo via `scripts/build_runtime.ps1 -FetchSdl3`, my own 1.0.2.1 package. Every boot ran 300 s with `LEONIDA_ASYNC_PIPELINES=1`, the keyboard pad, `LEONIDA_TITLE_WATCHDOG=0` with the kick RVAs, `LEONIDA_CONSOLE_FIX_US=0` and 4096 MB title windows and arena. `d3d12_compile_pool_test` passes. The cold boots have no session or seed cache and an empty journal. Each also has its own empty `__GL_SHADER_DISK_CACHE_PATH`, so the driver cache does not warm the second run. | Boot | Workers | Builds (demanded / warm-up) | Warm-up time | Submissions in 300 s | frames/s at ~300 s | Result | |---|---|---|---|---|---|---| | warm, `main`+#2195 | 1 + graphics | 6 / 1,758 (all cache hits) | 13.5 s | 55,115 | 104 | no fault | | warm, + this PR | 8 (heavy max 7) | 5 / 1,759 (all cache hits) | 12.8 s | 48,540 | 90 | no fault | | cold, `main`+#2195 | 1 + graphics | 6 / 1,149 | 290.5 s (10 over 2 s, max 7.0 s) | 718 | 0.58 | no fault | | cold, + this PR | 8 (heavy max 7) | 6 / 1,151 | 290.9 s (10 over 2 s, max 7.0 s) | 713 | 0.59 | no fault | | cold, + this PR, `LEONIDA_COMPILE_GATE=0` | 8 (heavy max 7) | 98 / 1,031 | 210.6 s | 24,493 by 252 s | ~100 at 65-115 s | **device lost at 249.7 s** | What this shows on this GPU: - **No regression.** With the gate on, the pool boots exactly like the baseline, warm and cold. The difference in the two warm boots is run-to-run noise: the title spends its time the same way in both. - **With the gate on, the pool has nothing to parallelise here.** In the cold boot the title demands only about 6 builds in 300 s. All of the compiling, about 290 s of it, is warm-up, which the PR deliberately keeps serial. The title then crawls at about 1 submission/s, apparently behind the gate waiting on each warm-up. The gate's own log shows nothing, though: no `submit-handoff` lines and `wait 0.00` in the submit phases. So that cause is my reading, not a measurement. - **With `LEONIDA_COMPILE_GATE=0` the title moves on** to about 200 submissions/s and 100 frames/s from 65 s on. It then demands 98 builds, and the pool runs them in parallel: 49 dispatch, up to 30.7 s each; 49 draw, up to 16.8 s each. At 249.7 s the device is lost. `vkGetSemaphoreCounterValue` returns `VK_ERROR_DEVICE_LOST`, and `nvlddmkm` logs event 153 (TDR) in the same minute. Right before the loss, four `draw-worker` creates were in flight on four threads while the title kept submitting. This is the case the gate was added for, and it matches the device losses fiestorra reports in #1608 on an RTX 4090. One boot only, so it is not proof that parallel creates cause the TDR. So on this machine the pool is safe to merge as it is. The win MoonEyes measured with the gate off comes with a device loss here. I would rather not run with `LEONIDA_COMPILE_GATE=0` until the "warm-ups do not hold the gate" follow-up exists. That follow-up looks like the change that would actually let a cold boot get going. I'm happy to run that follow-up, or a `LEONIDA_COMPILE_THREADS`/`LEONIDA_COMPILE_HEAVY_MAX` sweep with the gate off, on this card. Logs stay local: they name game shaders.
Author
Owner

@⁠HasiKe on GitHub · 2026-11-26 11:47 UTC · original

Correction to my report above, on the device loss with LEONIDA_COMPILE_GATE=0. AI-assisted (Claude Code).

I linked it to the four parallel creates, and that is probably wrong. fiestorra's newest finding in #1608 gives a better explanation. It describes a world-load submission that never completes, a TDR at about 2 s, with no pipeline build anywhere in the run. azsekazvamdimitar avoids it on a 3090 by skipping the ray-hit shading programs.

My gated boots never got far enough to hit it: about 700 submissions in 300 s. The ungated one got there: about 24,000 submissions, with the frame rate dropping from 165 s on. So the loss at 249.7 s is most likely the same GPU hang. What made the difference is how far the title got, not the pool.

That changes the conclusion. The data does not show that parallel creates are unsafe on this card. The pool still looks safe to merge. Whether the gate can be dropped stays open until the hang is fixed. I'm trying a repeat with LEONIDA_DEVICE_FAULT=2 next, to see whether NVIDIA's checkpoints name the submission and pipeline. I'll post the result in #1608.

**@⁠HasiKe** on GitHub · 2026-11-26 11:47 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2233#issuecomment-7191180521) Correction to [my report above](https://git.gtahub.st/github/ubiquitarianism--leonida/pulls/2233), on the device loss with `LEONIDA_COMPILE_GATE=0`. AI-assisted (Claude Code). I linked it to the four parallel creates, and that is probably wrong. fiestorra's [newest finding in #1608](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) gives a better explanation. It describes a world-load submission that never completes, a TDR at about 2 s, with no pipeline build anywhere in the run. azsekazvamdimitar [avoids it on a 3090](https://git.gtahub.st/github/ubiquitarianism--leonida/issues/1608) by skipping the ray-hit shading programs. My gated boots never got far enough to hit it: about 700 submissions in 300 s. The ungated one got there: about 24,000 submissions, with the frame rate dropping from 165 s on. So the loss at 249.7 s is most likely the same GPU hang. What made the difference is how far the title got, not the pool. That changes the conclusion. The data does not show that parallel creates are unsafe on this card. The pool still looks safe to merge. Whether the gate can be dropped stays open until the hang is fixed. I'm trying a repeat with `LEONIDA_DEVICE_FAULT=2` next, to see whether NVIDIA's checkpoints name the submission and pipeline. I'll post the result in #1608.
Author
Owner

@⁠Tyrannys on GitHub · 2026-11-26 12:06 UTC · original

@⁠HasiKe thank you for the thorough cold/warm comparison and the correction. The "warm-ups do not hold the gate" follow-up is up as #2275 (stacked on this PR).

With the gate on, a submission now waits only for demanded creates. A warm-up's create does not hold it, but still never enters the driver while a submission is in it or waiting, and at most one warm-up is in the driver at once (LEONIDA_COMPILE_GATE_WARMUP_MAX, default 1). LEONIDA_COMPILE_GATE_WARMUPS=1 gives the old behaviour for an A/B; LEONIDA_COMPILE_GATE=0 is unchanged.

If you can repeat your cold boot on the RTX 2070 SUPER with the gate on, submissions per second while the warm-ups run would show whether it helps, and whether the device stays. CPU tests only on our side so far.

AI-assisted (Claude Code)

**@⁠Tyrannys** on GitHub · 2026-11-26 12:06 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2233#issuecomment-7191578735) @⁠HasiKe thank you for the thorough cold/warm comparison and the correction. The "warm-ups do not hold the gate" follow-up is up as #2275 (stacked on this PR). With the gate on, a submission now waits only for demanded creates. A warm-up's create does not hold it, but still never enters the driver while a submission is in it or waiting, and at most one warm-up is in the driver at once (`LEONIDA_COMPILE_GATE_WARMUP_MAX`, default 1). `LEONIDA_COMPILE_GATE_WARMUPS=1` gives the old behaviour for an A/B; `LEONIDA_COMPILE_GATE=0` is unchanged. If you can repeat your cold boot on the RTX 2070 SUPER with the gate on, submissions per second while the warm-ups run would show whether it helps, and whether the device stays. CPU tests only on our side so far. AI-assisted (Claude Code)
Author
Owner

@⁠qhukz13 on GitHub · 2026-11-26 14:29 UTC · original

Code reading of 2d56b685a (no build here yet). One finding I think matters beyond this PR: the pool closes a race that main has by default, but the LEONIDA_COMPILE_THREADS=1 fallback keeps it.

Two builds of one graphics PSO on two workers, and its last Release. With one general worker plus the graphics worker (main's default, LEONIDA_GRAPHICS_COMPILE_WORKER on), next_locked does this:

  • the general worker takes jobs_.begin(), which can be a graphics job;
  • the graphics worker takes the first graphics job.

Neither looks at owner (d3d12_pipeline_compile.h:531-534 here, the same lines on main). So two variants of one graphics PSO can be built at once, one on each worker. If the title releases that PSO meanwhile, PipelineState::last_release calls after_running(compile_owner(), [this] { delete this; ... }). after_running attaches the deletion to the first Running entry of that owner and returns (d3d12_pipeline_compile.h:387-399). That worker deletes the PSO as soon as its own job returns. The other worker is still inside build() on the same object, or waiting on its variants_mutex_.

In pool mode this cannot happen: next_locked skips any job whose owner already has a running job (548-549). With LEONIDA_COMPILE_THREADS=1 the old selection, and the race with it, come back. Either of these would remove it:

  • the same owner check in the single-worker branch;
  • after_running attaching last to the last running job of the owner instead of the first.

What the pool still serializes, as I read it. These are by design, and listed so the next reader doesn't have to find them:

  • one running job per PSO;
  • large and speculative jobs together on at most threads - 1 workers, so one stays free for small demanded builds;
  • one warm-up at a time, and none while anything else runs;
  • the checkpoint only on an idle pool;
  • the per-PSO variants_mutex_, the large-module memory budget, and DriverTurn / CompileTurn for compute.

So a demanded build can still wait behind a running warm-up of its own PSO, or behind one that holds the large-module budget.

Docs:

  • runtime/README.md:331 says LEONIDA_SERIAL_BIG_COMPILES=0 lets all large compiles run side by side. The pool still caps them at LEONIDA_COMPILE_HEAVY_MAX (d3d12_pipeline_compile.h:551).
  • The new text says a submission waits for every create in flight. Only compute creates enter DriverTurn; graphics build() does not.

The code reading was done with a second agent and checked against the source before writing this.

AI-assisted (Claude Code, with Antigravity / Gemini 4 Neon).

**@⁠qhukz13** on GitHub · 2026-11-26 14:29 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2233#issuecomment-7194897664) Code reading of `2d56b685a` (no build here yet). One finding I think matters beyond this PR: the pool closes a race that `main` has by default, but the `LEONIDA_COMPILE_THREADS=1` fallback keeps it. **Two builds of one graphics PSO on two workers, and its last Release.** With one general worker plus the graphics worker (main's default, `LEONIDA_GRAPHICS_COMPILE_WORKER` on), `next_locked` does this: - the general worker takes `jobs_.begin()`, which can be a graphics job; - the graphics worker takes the first graphics job. Neither looks at `owner` (`d3d12_pipeline_compile.h:531-534` here, the same lines on main). So two variants of one graphics PSO can be built at once, one on each worker. If the title releases that PSO meanwhile, `PipelineState::last_release` calls `after_running(compile_owner(), [this] { delete this; ... })`. `after_running` attaches the deletion to the **first** `Running` entry of that owner and returns (`d3d12_pipeline_compile.h:387-399`). That worker deletes the PSO as soon as its own job returns. The other worker is still inside `build()` on the same object, or waiting on its `variants_mutex_`. In pool mode this cannot happen: `next_locked` skips any job whose owner already has a running job (`548-549`). With `LEONIDA_COMPILE_THREADS=1` the old selection, and the race with it, come back. Either of these would remove it: - the same owner check in the single-worker branch; - `after_running` attaching `last` to the last running job of the owner instead of the first. **What the pool still serializes, as I read it.** These are by design, and listed so the next reader doesn't have to find them: - one running job per PSO; - large and speculative jobs together on at most `threads - 1` workers, so one stays free for small demanded builds; - one warm-up at a time, and none while anything else runs; - the checkpoint only on an idle pool; - the per-PSO `variants_mutex_`, the large-module memory budget, and `DriverTurn` / `CompileTurn` for compute. So a demanded build can still wait behind a running warm-up of its own PSO, or behind one that holds the large-module budget. **Docs:** - `runtime/README.md:331` says `LEONIDA_SERIAL_BIG_COMPILES=0` lets all large compiles run side by side. The pool still caps them at `LEONIDA_COMPILE_HEAVY_MAX` (`d3d12_pipeline_compile.h:551`). - The new text says a submission waits for every create in flight. Only compute creates enter `DriverTurn`; graphics `build()` does not. The code reading was done with a second agent and checked against the source before writing this. AI-assisted (Claude Code, with Antigravity / Gemini 4 Neon).
With LEONIDA_COMPILE_THREADS=1 (the layout of main: one general worker and
the graphics-only one) next_locked did not look at the owner, so two variants
of one graphics PSO could build at once, one on each worker. A last Release
meanwhile hands the PSO's deletion to the running build it finds first
(after_running), and that worker deleted the PSO while the other was still
in build() on it. The single-worker selection now skips a job whose PSO has
a build running, as the pool already did.

New test in d3d12_compile_pool_test: two graphics variants of one PSO with
one worker plus the graphics worker; the second must not start while the
first runs, another PSO's build still uses the free worker, and a last
Release runs after the first build with the second dropped. It fails
without the fix.

Docs: the heavy count also bounds LEONIDA_SERIAL_BIG_COMPILES=0 on the
workers; only compute creates pass the compile gate.

Found by qhukz13 in review of #2233.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Owner

@⁠Tyrannys on GitHub · 2026-11-27 10:37 UTC · original

@⁠qhukz13 thank you for the careful reading. The race is real, and main has it too. Fixed here in 9b8760d32; main was merged in at e5401bd62.

Fix: next_locked's single-worker branch (LEONIDA_COMPILE_THREADS=1: one general worker plus the graphics-only one) now skips a job whose PSO has a build running, as the pool branch already did; both use one helper, pso_busy. So after_running, which hands the deletion to the build of that PSO it finds running, can no longer leave a second build of the same PSO in build() on the other worker. I took this route rather than attaching last to the last running job, because it also keeps the two variants from contending for the PSO's variants_mutex_.

Test: test_one_worker_and_the_graphics_worker_build_one_job_of_a_pso in d3d12_compile_pool_test, with one worker plus the graphics worker, gated jobs:

  • variant 1 of a graphics PSO runs;
  • variant 2 of the same PSO must not start while it runs;
  • another PSO's graphics build does start on the free worker;
  • a last-release after_running runs after variant 1, with variant 2 dropped and nothing running.

Without the fix it fails 3 checks (variant 2 starts on the graphics worker). With it, it passes 8 of 8 repeats. After the merge of main, d3d12_compile_pool, d3d12_compile_teardown (pool and one worker), d3d12_big_compute (7 settings), d3d12_m4_compute, d3d12_pipeline_workers* and big_compile_gate pass, 14 of 14.

Docs, both points taken:

  • The LEONIDA_SERIAL_BIG_COMPILES row now says 0 is still bounded by LEONIDA_COMPILE_HEAVY_MAX on the workers.
  • The "Compile workers" text now says only compute creates pass the gate, and that one build per PSO holds with one worker too.

Your list of what the pool still serializes matches my reading.

main without this PR: next_locked returns jobs_.begin() for the general worker and the first graphics job for the graphics worker, with no owner check (d3d12_pipeline_compile.h:423-425 on 2859d0c9b). Asynchronous graphics builds pass graphics=true (d3d12_vulkan_device.cpp:12616), and the graphics worker is on by default. So with LEONIDA_ASYNC_PIPELINES=1 two variants of one PSO can build at once there, and last_release (:11344) can delete the PSO under the second. I'll post that as a finding:.

AI-assisted (Claude Code)

**@⁠Tyrannys** on GitHub · 2026-11-27 10:37 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/2233#issuecomment-7216118955) @⁠qhukz13 thank you for the careful reading. The race is real, and `main` has it too. Fixed here in 9b8760d32; `main` was merged in at e5401bd62. **Fix:** `next_locked`'s single-worker branch (`LEONIDA_COMPILE_THREADS=1`: one general worker plus the graphics-only one) now skips a job whose PSO has a build running, as the pool branch already did; both use one helper, `pso_busy`. So `after_running`, which hands the deletion to the build of that PSO it finds running, can no longer leave a second build of the same PSO in `build()` on the other worker. I took this route rather than attaching `last` to the last running job, because it also keeps the two variants from contending for the PSO's `variants_mutex_`. **Test:** `test_one_worker_and_the_graphics_worker_build_one_job_of_a_pso` in `d3d12_compile_pool_test`, with one worker plus the graphics worker, gated jobs: - variant 1 of a graphics PSO runs; - variant 2 of the same PSO must not start while it runs; - another PSO's graphics build does start on the free worker; - a last-release `after_running` runs after variant 1, with variant 2 dropped and nothing running. Without the fix it fails 3 checks (variant 2 starts on the graphics worker). With it, it passes 8 of 8 repeats. After the merge of `main`, `d3d12_compile_pool`, `d3d12_compile_teardown` (pool and one worker), `d3d12_big_compute` (7 settings), `d3d12_m4_compute`, `d3d12_pipeline_workers*` and `big_compile_gate` pass, 14 of 14. **Docs, both points taken:** - The `LEONIDA_SERIAL_BIG_COMPILES` row now says `0` is still bounded by `LEONIDA_COMPILE_HEAVY_MAX` on the workers. - The "Compile workers" text now says only compute creates pass the gate, and that one build per PSO holds with one worker too. Your list of what the pool still serializes matches my reading. `main` without this PR: `next_locked` returns `jobs_.begin()` for the general worker and the first graphics job for the graphics worker, with no owner check (`d3d12_pipeline_compile.h:423-425` on 2859d0c9b). Asynchronous graphics builds pass `graphics=true` (`d3d12_vulkan_device.cpp:12616`), and the graphics worker is on by default. So with `LEONIDA_ASYNC_PIPELINES=1` two variants of one PSO can build at once there, and `last_release` (`:11344`) can delete the PSO under the second. I'll post that as a `finding:`. AI-assisted (Claude Code)
The demanded job leaves the running list only after its function returns,
so has_compile_waiter() could still see it right after the log said it had
finished (1 failure in 10 runs). Found while merging this into #2275.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
# Conflicts:
#	docs/d3d12_vulkan.md
qhukz13 claimed and fixed the same race for main in #2361
(RT-COMPILE-OWNER-RACE). The single-worker branch of next_locked now uses
their code line for line, so whichever of the two lands second merges
trivially. The pool branch is as before 9b8760d32. No behaviour change;
d3d12_compile_pool_test passes 5 of 5 repeats.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2233/head:github-bot/gh-2233'
git switch 'github-bot/gh-2233'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2233'
git switch 'github-bot/gh-2233'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2233'
git switch 'github-bot/gh-2233'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2233'
git switch 'main'
git merge --squash 'github-bot/gh-2233'
git switch 'main'
git merge --ff-only 'github-bot/gh-2233'
git switch 'main'
git merge 'github-bot/gh-2233'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.