pipeline: warm up the shader cache serially on NVIDIA #2132
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
GPU
GUI
help wanted
question
Shaders
Video
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/KytyPS5--KytyPS5!2132
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2132"
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?
@theantipopau on GitHub · 2026-11-06 00:23 UTC · original
theantipopau:fix/nvidia-shader-warmup→main· +13 −3 · 1 files · 1 commits · openPipelineCache::WarmUpcreates its pipelines from several threads at once (Common::ParallelForover half the hardware threads, all sharing oneVkPipelineCache). On NVIDIA that warm-up crashes inside the driver's SPIR-V compiler: #2069 reports a SIGSEGV inlibnvidia-glvkspirv.sowhile booting with--shader-cache, which currently makes the cache unusable for those users.This runs the warm-up jobs one at a time when the device vendor is NVIDIA (
0x10DE) and logs the number of threads actually used, so the cached boot survives on that driver. Every other vendor keeps the parallel warm-up unchanged.See #2069.
Testing
kyty_emulatorbuilds with clang-cl Release on Windows.ctest: 81/82; the only failure is a pre-existing stale contract inShaderRecompilerComputeTests(test 44), unrelated to this change.@coderabbitai[bot] on GitHub · 2026-11-06 00:27 UTC · original
Walkthrough
PipelineCache::WarmUpnow selects one thread for NVIDIA GPUs and uses the normal parallel thread count for other GPUs. It logs the selected thread count. NVIDIA jobs run sequentially; other jobs continue to useCommon::ParallelFor.Suggested reviewers:
nmzikChange: Bug fix
Merge Risk:
Minimal · up to
08e7cNVIDIA cache warm-up runs serially, and no concrete merge-blocking issue was found.
Pre-merge checks:
4 ·
1
Full details: Docstring Coverage
Explanation
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 1 functions across 1 files.
Resolution
Write docstrings for the functions missing them to satisfy the coverage threshold.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
@coderabbitai[bot] on GitHub · 2026-11-06 00:27 UTC · original · reviewed
dc40b8f0-67db-40e4-9a48-f7f8b83f0a42Reviewing files that changed from the base of the PR and between
9a29dc62cfand08e7c76bd8.src/graphics/host_gpu/renderer/pipeline/pipelineSerialization.cppIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.