Repository navigation
feat(libSceAgcDriver): add the workload, NOP and user data packet sizes - #8459
Merged
oneandonlydean merged 2 commits intoOct 21, 2026
Merged
Conversation
Report the dword sizes of the workload state packets and of a NOP that carries a given number of data bytes, as libSceAgcDriver computes them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RbLgECLQ2bpDM7oe2urGZK
Progress report (44e3389 → 5ca5c14)📈 System libraries: 64.17% (+0.02%, +5 implemented functions) ✅ 5 implemented
|
It is the payload size helper the workload packet sizes are built on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RbLgECLQ2bpDM7oe2urGZK
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds five absent
libSceAgcDriversize queries next tosceAgcDriverGetSetFlipPacketSizeInDwords:sceAgcDriverGetSetWorkloadsActivePacketSizegyVTZWyySpMsceAgcDriverGetSetWorkloadCompletePacketSizeWNyjOWq8-VksceAgcDriverGetSetWorkloadStreamInactivePacketSizek8rLr8nq-hEsceAgcDriverNopDataGetPacketSize(bytes)gtvWv7DEKD4ceil(bytes / 4) + 2, computed in 64 bitssceAgcDriverUserDataGetPacketSize(bytes)VhLnEiTuuWoThe decrypted
libSceAgcDriver.sprxderives the first three from one helper (0x6cf0). For a payload ofbbytes the helper returns:bis 0;ceil(b / 4) + 7otherwise.The workload getters call it with 8, 0 and 8 bytes, and the first two add 9. The helper is exported as
sceAgcDriverUserDataGetPacketSizeand reproduced asWorkloadDataPacketDwords.The values match the packets libSceAgc already writes for
SetWorkloadsActive(18 dwords) andSetWorkloadComplete(12), and the 9-dwordSetWorkloadStreamInactivepacket in #8302. They are independent of that PR.Tested
Linux (CachyOS, GCC, Release).
NopDataGetPacketSizewith this formula over 1 000 000 inputs, including 0–63 and the top 64 values below 2^32, with 0 mismatches. The same sweep against the helper gave 0 mismatches forUserDataGetPacketSize.guest_rendering_waitchecks the five exports, includingNopDataGetPacketSize(0xffffffff) == 0x40000002. It passes.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code
https://claude.ai/code/session_01RbLgECLQ2bpDM7oe2urGZK