feat(agc): detile the display, T and 4 KiB XOR swizzle modes #935
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/935"
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 CnRJay on 2026-10-06T18:47:04Z.
What
Textures in SW_256B_D, SW_4KB_D, SW_64KB_D, SW_64KB_S_T, SW_64KB_D_T, SW_4KB_S_X and SW_4KB_D_X (tile modes 2, 6, 10, 17, 18, 21 and 22) threw while their T# was decoded.
Tested
Windows 11, MinGW GCC Release build, ctest
agc_driver_graphicspasses.tests/GuestTextureResource.cpp: each of the 7 tile modes decodes to its swizzle. A 4 KiB XOR mode accepts a 4 KiB-aligned base, and the 4 KiB XOR and 64 KiB T modes reject a base that breaks the pipe/bank XOR check.tests/TextureTiling.cpp: element addresses over several mip levels match addrlib output.tests/TextureDetiler.cpp: SW_4KB_D_X detiling selects the equation path over 4 KiB blocks.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-07T21:27:42Z.
Checked all 35 new equations (7 modes x 5 element sizes, 2x2 blocks x 3 slices) and the 7 address tables in the test against Mesa addrlib (Navi10, 16 pipes): no mismatches. Local build + ctest green; the 4 KiB XOR base check matches where these equations put the XOR bits. Merging once CI is green.