agc: implement sceAgcCbBranchGetSize #1274
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!1274
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1274/head"
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?
@popcoder565 on GitHub · 2026-10-09 03:38 UTC · original
popcoder565:fix/agc-cb-branch-get-size→main· +30 −0 · 4 files · 1 commits · closed without mergingGames ask sceAgcCbBranchGetSize how many bytes sceAgcCbBranch needs, but the emulator never exported it, so the call hit the unresolved-import stub and returned 0 instead of the size of the 14-dword branch packet. Code Violet calls it (#938).
Return 56 bytes, matching what sceAgcCbBranch emits. The new check builds a branch packet and compares its length with the reported size.
@coderabbitai[bot] on GitHub · 2026-10-09 03:42 UTC · original
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
8e72c46b-a247-4d36-8ad2-bfdb1940c65a📥 Commits
Reviewing files that changed from the base of the PR and between
7b9997baeaand66f1dbbd7e.📒 Files selected for processing (4)
src/libs/agc.cppsrc/libs/agc.hsrc/libs/libAgcDriver.cpptests/ShaderRecompilerComputeTests.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.
📝 Walkthrough
Walkthrough
The change adds a public Gen5 AGC branch size query that returns 56 bytes and registers it under a symbol. A test checks the emitted command buffer pointer, reported packet size, and cursor update.
Suggested reviewers:
nmzikPriority: ➖ Normal
Change: Bug fix
Merge Risk: ⚪ Minimal · up to
66f1dThe change implements the 56-byte query and tests its packet-size and cursor behavior. No concrete merge-blocking issue is established.
🚥 Pre-merge checks | ✅ 4 | ❓ 1
❌ Failed checks (1 inconclusive)
✅ Passed checks (4 passed)
sceAgcCbBranchGetSize, which is the main change.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. Analyzed 6 functions across 3 files. (1 skipped: 1 too large.)
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.Pull request closed