shader: bound loop-proof analysis for Wolverine #1535
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!1535
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1535"
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?
@Qouo on GitHub · 2026-10-15 18:54 UTC · original
Qouo:fix/1513-loop-proof-limits→main· +80 −6 · 2 files · 1 commits · openSummary
Marvel's Wolverine (PPSA03671) is reported to crash before its first frame with a Windows stack overflow attributed to
LoopBoundProofinResourceTracking.cpp(#1513).This draft bounds that proof's recursion, work and decision-diagram growth. Exhaustion leaves a loop bound unproven instead of continuing recursive analysis. This is a defensive mitigation for the reported analysis path; it does not establish that Wolverine boots or that its shader can be compiled successfully.
Related to #1513. Please keep this draft pending human review, game reproduction and Linux validation.
Changes
Testing
kyty_teststarget with clang-cl 19.1.5, MSVC 14.44 libraries, Windows SDK 10.0.26100, CMake 3.31.6 and Ninja 1.12.1.resource_trackingpasses, including the new regression cases.oversized decision diagram was accepted as a loop proof, and passes with this change (portable Clang/libc++ test harness).kernel_file_systemfails atNet unknown socket options return protocol-option errors; it also fails outside the sandbox. No socket implementation was changed by this contribution.VdecswTests.cpp, and renaming thesmalllocal in the GPU tests. Those fixes are not included here. The macro collision is already covered by #1504.git diff --checkpasses. Whole-file formatting was not included because it rewrites substantial untouched upstream code.AI usage
This contribution is entirely AI work performed by OpenAI Codex. Its investigation, implementation, new regression cases, build/test execution, commits, and this PR description were generated or executed by the AI agent. No human code review or in-game verification is claimed. The upstream game report in #1513 is external evidence, not a game test performed for this contribution.
@coderabbitai[bot] on GitHub · 2026-10-19 19:11 UTC · original
📝 Walkthrough
Loop-bound proofs now stop when recursion depth, evaluation steps, or node count exceed configured limits. Exhausted proofs cannot establish exclusions or selected ranges. Tests cover accepted proof depths and widths, plus failures for larger widths and depths across three loop variants.
Suggested reviewers:
nmzikPriority: ⬆️ High
Change: Bug fix
Merge Risk: 🔵 Low · up to
4609fThe proof limits have no established production defect, but the regression tests could pass for the wrong reason. Strengthen the assertions to protect the intended behavior.
Pre-merge checks:
4 ·
1
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
Comment
@coderabbitai helpto get the list of available commands.@coderabbitai[bot] on GitHub · 2026-10-19 19:11 UTC · original · reviewed
🧹 Nitpick comments: 1
ℹ️ Review info
⚙️ Run configuration
3fad5769-7d36-4663-b883-dd84a6aace29📥 Commits
Reviewing files that changed from the base of the PR and between
9e41d8320aand4609f3d004.📒 Files selected for processing: 2
src/graphics/shader/recompiler/ir/passes/ResourceTracking.cpptests/ResourceTrackingTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.