fix(agc): size CMASK by whole 1024x512 metablocks #1447
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1447"
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?
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-08T06:53:40Z.
What
Sizes a color target's CMASK in whole 4 KiB metablocks of 1024x512 pixels, instead of one packed nibble per 8x8 tile. This is commit
1c848903afrom #1237 on its own, by its author; #1072 landed without it.Why
#1072 checks and expands
cmaskBytes(State.cpp) bytes of CMASK, one nibble per 8x8 tile from the start of the target. The nibbles are swizzled inside 4 KiB metablocks of 1024x512 pixels, so the CMASK of a 1920x1080 target spans 0x6000 bytes (the size titles clear), not 16200. The lower-right tiles lie past the packed size, so the all-cleared check doesn't look at them and the expanded store leaves them fast-cleared.Tested
cmaskTestsintests/Graphics.cppchecksCmaskBytesfor 1920x1080 (0x6000), 960x544, 800x450, 1024x512 and 3840x2160, and runs the fast-clear passes over a whole 4 KiB CMASK.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-08T06:57:57Z.
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
main)core/libs/prx/libSceAgcDriver/Graphics/include/State.hppL104core/libs/prx/libSceAgcDriver/Graphics/src/State.cppL633