feat(agc): 64 KiB standard color targets #1177
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1177"
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 MichonGoddijn231849 on 2026-10-07T16:44:20Z.
What
Color targets with the SW_64KB_S swizzle (CB_COLOR_ATTRIB3 tile mode 9) are rendered into, instead of refused. They use the standard element order of the 4 KiB mode extended by the texture detiler's 64 KiB bits, and are resident like the other tiled targets.
The standard blocks are now wider than tall for 2- and 8-byte elements, as the standard swizzle and the texture layout have them. They were transposed, so texels aliased each other.
tests/ColorTargetLayout.cppchecks that every element size and both standard block sizes cover their block exactly once, sized like the texture layout.Tested
Windows 11 Pro, AMD Ryzen 5 7600, NVIDIA GeForce RTX 5080 (driver 32.0.16.1074), 32 GB, MinGW-w64 GCC 15.2.0.
gta-v/testingbranch (Performance mode, the prologue).ctestpasses. Not run here: the relinker's Python tests (my local Python does not find their helper modules) andguest_gameupdate.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)🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-08T08:44:45Z.
Checked the standard 4 KiB / 64 KiB element offsets and block dimensions against addrlib's 2D SW_4KB_S / SW_64KB_S for 1/2/4/8/16 B elements: all match, including the corrected block orientation. The new tests don't build without the change. Conflicted with main only in
RunColorMetadataPass(metadataPassResidentnow exists); I rebased and applied the!= Linearcondition inside that helper. Build and ctest green after the rebase; merging once CI is green.