Skip to content

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

Merged
MoonEyes merged 4 commits into
ProjectLeonida:mainfrom
OreoFR:carry/pr-2062
Nov 30, 2026
Merged

MoonEyes merged 4 commits into
ProjectLeonida:mainfrom
OreoFR:carry/pr-2062

Conversation

@OreoFR

@OreoFR OreoFR commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

Carries #2062 by @thegalaxydev, because it conflicts with main after #2566 and the reminder to merge main (#2062 (comment)) 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 (comment); original item RT-PIPELINE-CACHE-GROWTH-STALL).

What this branch is

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

thegalaxydev and others added 4 commits November 25, 2026 13:04
…es (RT-PIPELINE-CACHE-GROWTH-STALL)

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 <23423870+thegalaxydev@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Current main after ProjectLeonida#2566; no new conflicts on top of the earlier carry merge.

Co-authored-by: Galaxy <23423870+thegalaxydev@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Kal0s-design

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Collaborator

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

MoonEyes commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

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
MoonEyes merged commit 99167bc into ProjectLeonida:main Nov 30, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants