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

Manually merged
github merged 4 commits from github-bot/gh-2737 into main 2026-11-30 17:41:32 +00:00 AGit
Owner

@⁠OreoFR on GitHub · 2026-11-30 13:39 UTC · original
OreoFR:carry/pr-2062 → main · +140 −4 · 5 files · 4 commits · merged 2026-11-30 17:38 UTC

Carries #2062 by @⁠thegalaxydev, because it conflicts with main after #2566 and the reminder to merge main (#2062) 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 #2570; 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

**@⁠OreoFR** on GitHub · 2026-11-30 13:39 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2737) `OreoFR:carry/pr-2062` → `main` · +140 −4 · 5 files · 4 commits · merged 2026-11-30 17:38 UTC Carries #2062 by @⁠thegalaxydev, because it conflicts with `main` after #2566 and the reminder to merge `main` (https://git.gtahub.st/github/ubiquitarianism--leonida/pulls/2062) 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://git.gtahub.st/github/ubiquitarianism--leonida/issues/2570; 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)
A driver can stop adding to a large VkPipelineCache with no error. On NVIDIA 610.88 a 1.23 GB or 1.35 GB cache
came back the same size to the byte after a 2 s compile, so the next run compiles the same pipelines again and
nothing says why. The runtime now takes the cache's size at creation and at each session save, counts the title's
pipeline builds that took at least 200 ms, and logs once when 16 or more compiled while the cache grew less than
64 KiB. pipeline_cache_store_test covers the decision; docs/d3d12_vulkan.md records the measurements.
d3d12_vulkan_device: report_pipeline_cache_growth() before main's over_save_limit check, note_pipeline_cache_size() before main's journal setup. Docs: main's paragraph, then the PR's growth-stall text without its old 256 MiB cap line.

Co-authored-by: Galaxy <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Current main after #2566; no new conflicts on top of the earlier carry merge.

Co-authored-by: Galaxy <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-30 13:40:51 +00:00
Author
Owner

@⁠Kal0s-design on GitHub · 2026-11-30 14:18 UTC · original

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.

**@⁠Kal0s-design** on GitHub · 2026-11-30 14:18 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2737#issuecomment-7281159796) **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.
Author
Owner

@⁠MoonEyes on GitHub · 2026-11-30 15:48 UTC · original

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** on GitHub · 2026-11-30 15:48 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2737#issuecomment-7283612564) 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).
github manually merged commit 99167bcaf3 into main 2026-11-30 17:41:32 +00:00
Author
Owner

@⁠MoonEyes on GitHub · 2026-11-30 17:38 UTC · original · edited 2026-11-30 17:40 UTC

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).

**@⁠MoonEyes** on GitHub · 2026-11-30 17:38 UTC · [original](https://github.com/ProjectLeonida/mandy/pull/2737#issuecomment-7286620911) · edited 2026-11-30 17:40 UTC 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).
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/ubiquitarianism--leonida!2737
No description provided.