pm4: skip CP marker 0x11 #1486
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!1486
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1486/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?
@overlordxrz-source on GitHub · 2026-10-13 19:53 UTC · original
overlordxrz-source:nhl-cp-marker-0x11→main· +2 −0 · 1 files · 1 commits · closed without mergingNHL 27 (PPSA34063, #1101) intermittently exits on the team/side selection screens with:
CpOpNopsends NOP packets whose first payload dword is0x6875xxxxtoCpOpMarker, which uses the low 12 bits as the id. Main handles 0x0, 0x4, 0xd and the flip ids, and exits on anything else. This addscase 0x11: break;and leaves that default alone, so other unknown ids still exit.Why skipping is safe: 0x11 isn't in the public PS4 marker tables, which go from 0xd (user-data region) to 0x12. Its nearest neighbours, 0x4 and 0xd, only tag the type of the next user-data write, and nothing reads that tag (
UserSgprInfo::typeis written but never read). So whatever 0x11 means, skipping it changes no CP state.fozter found this during his NHL 27 investigation. His patch skipped every unknown marker with a warning. This is the narrowed version, used with his permission (#1101), and he's the commit author.
#1430 also stops this exit, but it does it by ignoring every unknown marker, as part of a much larger PR. This PR only allows 0x11. The two apply together cleanly.
Testing: x86_64-linux compile of pm4Handlers.cpp with
-Wall -Wextra, with the same warnings as main. I've asked fozter on #1101 to test it on NHL 27 and attach the log. I can't run the game myself.AI-assisted: yes. fozter's investigation and patch were done with Claude. I used AI to narrow it, review the marker handling and draft this text. I reviewed the change and ran the build check.
@coderabbitai[bot] on GitHub · 2026-10-13 19:56 UTC · original
No actionable comments were generated in the recent review. 🎉
ℹ️ Recent review info
⚙️ Run configuration
b44bcd07-d88e-43ca-ab4b-47e81bf77661📥 Commits
Reviewing files that changed from the base of the PR and between
df5b9b92beand9d81a57cbc.📒 Files selected for processing: 1
src/graphics/guest_gpu/command_processor/pm4Handlers.cppIncluded review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.
📝 Walkthrough
CpOpMarkernow recognizes marker ID0x11and performs no action for it.Suggested reviewers:
nmzikPriority: ⬇️ Low
Change: Bug fix
Merge Risk: ⚪ Minimal · up to
9d81aThe change skips marker 0x11 while preserving the existing handling of other unknown markers. NHL 27 gameplay was not verified, but the available evidence establishes no actionable merge-blocking risk.
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.@overlordxrz-source on GitHub · 2026-10-16 18:52 UTC · original
Closing as superseded by
717c54e08: unknown NOP marker payloads (including 0x11) are now ignored instead of exiting.Pull request closed