reprend #2062: d3d12: say when the driver's pipeline cache stops keeping new pipelines (RT-PIPELINE-CACHE-GROWTH-STALL) #2737

Merged
OreoFR merged 4 commits from upstream-pr/2737 into main 2026-11-30 17:38:24 +00:00
OreoFR commented 2026-11-30 13:39:36 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by OreoFR on 2026-11-30T13:39:36Z.


Carries #2062 by @thegalaxydev, because it conflicts with main after #2566 and the reminder to merge main (https://github.com/ProjectLeonida/mandy/pull/2062#issuecomment-7243415354) got no answer within the delay of the carry rule. If the author comes back, this carry is dropped.

Item: RT-PIPELINE-CACHE-GROWTH-STALL-CARRY (claimed in https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7280119323; original item RT-PIPELINE-CACHE-GROWTH-STALL).

What this branch is

  • The author's branch at 869319b55, unchanged (no rebase, author commits kept).
  • A merge of main (from the carry preparation of 29/11) that resolves the conflict, then a merge of current main f9f3ec4c6 (no new conflict). Both merge commits carry Co-authored-by the author.
  • Nothing else: the change itself is the original PR's; see #2062 for what and why, and the verifications posted there.

What conflicted and how it was resolved

  • runtime/shims/d3d12_vulkan_device.cpp (2 hunks): report_pipeline_cache_growth() before main's over_save_limit check; note_pipeline_cache_size() before main's journal setup.
  • docs/d3d12_vulkan.md: main's paragraph, then the PR's text on the growth stall, without its old 256 MiB cap line.

Open question for a human: since RT-HEAVY-PIPELINE-CACHE, slow off-corpus builds go to the heavy cache, not to pipeline_cache_handle; the detector may therefore report a growth stall that is not one. Not decided here.

Tests

  • On this branch (main f9f3ec4c6 merged), Windows 11, Python 3.12, no GPU used: C++ only: left to this PR's CI (no local C++ build in this run).
  • Earlier merge: ctest 501 tests, pipeline_cache_store passes; red: the test does not compile on main (GrowthWatch absent); xmem failed on the loaded PC ("map physical pages REFUSED"), passes on main and the PR does not touch it: to check on the runners.
  • python -I scripts/check_no_game_data.py on every file this PR changes: clean.
  • CI on this PR covers the rest (C++ build and ctest, the full translator suite).

Depends on: none.

Needs a careful human read of the resolution and an independent verifier before merge (red/green on another machine).

AI-assisted (Claude Code, oreofr-agent).

🤖 Generated with Claude Code

<!-- greyfinch-sync:ubiquitarianism/leonida:issue:5566393474 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2737). Originally posted by [OreoFR](https://github.com/OreoFR) on 2026-11-30T13:39:36Z. --- Carries #2062 by @thegalaxydev, because it conflicts with `main` after #2566 and the reminder to merge `main` (https://github.com/ProjectLeonida/mandy/pull/2062#issuecomment-7243415354) got no answer within the delay of the carry rule. If the author comes back, this carry is dropped. Item: `RT-PIPELINE-CACHE-GROWTH-STALL-CARRY` (claimed in https://github.com/ProjectLeonida/mandy/issues/2570#issuecomment-7280119323; original item `RT-PIPELINE-CACHE-GROWTH-STALL`). ### What this branch is - The author's branch at `869319b55`, unchanged (no rebase, author commits kept). - A merge of `main` (from the carry preparation of 29/11) that resolves the conflict, then a merge of current `main` `f9f3ec4c6` (no new conflict). Both merge commits carry `Co-authored-by` the author. - Nothing else: the change itself is the original PR's; see #2062 for what and why, and the verifications posted there. ### What conflicted and how it was resolved - `runtime/shims/d3d12_vulkan_device.cpp` (2 hunks): `report_pipeline_cache_growth()` before `main`'s `over_save_limit` check; `note_pipeline_cache_size()` before `main`'s journal setup. - `docs/d3d12_vulkan.md`: `main`'s paragraph, then the PR's text on the growth stall, without its old 256 MiB cap line. **Open question for a human:** since RT-HEAVY-PIPELINE-CACHE, slow off-corpus builds go to the heavy cache, not to `pipeline_cache_handle`; the detector may therefore report a growth stall that is not one. Not decided here. ### Tests - On this branch (`main` `f9f3ec4c6` merged), Windows 11, Python 3.12, no GPU used: C++ only: left to this PR's CI (no local C++ build in this run). - Earlier merge: `ctest` 501 tests, `pipeline_cache_store` passes; red: the test does not compile on `main` (`GrowthWatch` absent); `xmem` failed on the loaded PC ("map physical pages REFUSED"), passes on `main` and the PR does not touch it: to check on the runners. - `python -I scripts/check_no_game_data.py` on every file this PR changes: clean. - CI on this PR covers the rest (C++ build and `ctest`, the full translator suite). Depends on: none. **Needs a careful human read of the resolution and an independent verifier before merge** (red/green on another machine). AI-assisted (Claude Code, oreofr-agent). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Kal0s-design commented 2026-11-30 14:18:13 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by Kal0s-design on 2026-11-30T14:18:13Z.


Independent Windows check of bede3ad0d on current main b17b22d33 (no conflict, tree 08d87c24d). Native Windows 11, MSVC 19.50 x64, built alone as its CMake target builds it (/Isrc), under AddressSanitizer with the debug CRT and checked iterators (/W4 /permissive- /utf-8 /Od /MDd /fsanitize=address).

  • Green: test/pipeline_cache_store_test.cpp exits 0, no ASan report, 0 warnings.
  • No red run is possible: the test uses GrowthWatch, stalled_after_builds and stalled_below_bytes, which this PR adds to pipeline_cache_store, so it doesn't build against main.

I didn't read the conflict resolution line by line.

GPUs tested: n/a (CPU unit test). AI-assisted: yes.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7281159796 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2737#issuecomment-7281159796). Originally posted by [Kal0s-design](https://github.com/Kal0s-design) on 2026-11-30T14:18:13Z. --- **Independent Windows check** of `bede3ad0d` on current `main` `b17b22d33` (no conflict, tree `08d87c24d`). Native Windows 11, MSVC 19.50 x64, built alone as its CMake target builds it (`/Isrc`), under AddressSanitizer with the debug CRT and checked iterators (`/W4 /permissive- /utf-8 /Od /MDd /fsanitize=address`). - Green: `test/pipeline_cache_store_test.cpp` exits 0, no ASan report, 0 warnings. - No red run is possible: the test uses `GrowthWatch`, `stalled_after_builds` and `stalled_below_bytes`, which this PR adds to `pipeline_cache_store`, so it doesn't build against `main`. I didn't read the conflict resolution line by line. GPUs tested: n/a (CPU unit test). AI-assisted: yes.
MoonEyes commented 2026-11-30 15:48:08 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-30T15:48:08Z.


Verified by MoonEyes (another owner than OreoFR) on head bede3ad0d merged with main be7690805: Windows 11, MSVC 2022 x64, RelWithDebInfo, RTX 4060 8 GB (NVIDIA). ctest -R ^pipeline_cache_store$: 1/1 passed. No red: the test uses names this pull request adds (GrowthWatch, stalled_after_builds, stalled_below_bytes), so it does not build against main.

Unit test only: no run of the title (this is the Vulkan path).

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7283612564 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2737#issuecomment-7283612564). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-30T15:48:08Z. --- Verified by MoonEyes (another owner than OreoFR) on head `bede3ad0d` merged with `main` `be7690805`: Windows 11, MSVC 2022 x64, RelWithDebInfo, RTX 4060 8 GB (NVIDIA). `ctest -R ^pipeline_cache_store$`: 1/1 passed. No red: the test uses names this pull request adds (`GrowthWatch`, `stalled_after_builds`, `stalled_below_bytes`), so it does not build against `main`. Unit test only: no run of the title (this is the Vulkan path). AI-assisted (Claude Code).
MoonEyes commented 2026-11-30 17:38:21 +00:00 (Migrated from github.com)

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-11-30T17:38:21Z.


Merging. Head bede3ad0d merges cleanly with main f0143cd5f and does not force a rebase of #2566. Vulkan path: Moon's written OK for this PR without a run in the game and without a red run (the test does not build without the change); ctest green on Windows 11 by another owner. Merged by MoonEyes.

AI-assisted (Claude Code).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7286620911 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/pull/2737#issuecomment-7286620911). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-30T17:38:21Z. --- Merging. Head `bede3ad0d` merges cleanly with `main` `f0143cd5f` and does not force a rebase of #2566. Vulkan path: Moon's written OK for this PR without a run in the game and without a red run (the test does not build without the change); ctest green on Windows 11 by another owner. Merged by MoonEyes. AI-assisted (Claude Code).
Sign in to join this conversation.
No reviewers
No labels
No milestone
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!2737
No description provided.