feat(agc): 4 KiB standard color targets and color views of one array slice #377
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/377"
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-02T16:15:51Z.
What
CB_COLOR_ATTRIB3tile mode 5) are laid out in 4 KiB blocks with the standard element order the texture detiler uses. They are resident through the same storage images as 64 KiB targets.CB_COLOR_VIEWthat selects one slice (SLICE_START equal to SLICE_MAX) renders into that slice. The target starts one slice size per slice after the surface. The slice size is the surface's mip chain as a texture of the same tile mode lays it out. Views of several slices are still refused.GTA V clears its 256x256 reflection cube (SW_4KB_S) face by face through one-slice views. All six face draws had been refused, so the cube kept whatever bytes the memory held, and the reflection map built from it was garbage. That garbage alone pushed the scene's luminance about ten times too high.
Tested
Windows 11 Pro, AMD Ryzen 5 7600, NVIDIA GeForce RTX 5080 (driver 32.0.16.1074), 32 GB DDR5-5600, MinGW-w64 GCC 15.2.0.
main.ctest: all tests pass. The color layout tests cover SW_4KB_S block offsets and the one-slice view address.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🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-04T09:57:23Z.
This passed my PPSA21564 check, but it doesn't compile together with #404, which is now merged: #377 needs
standardTables()per element size to match #404's tables. Could you rebase onto main and adapt it? #449 then follows. Both look ready to merge from my side after that.Imported from boykopovar/AnyPS5. Originally posted by MichonGoddijn231849 on 2026-10-04T10:24:10Z.
Rebased after today's merges. #404 now builds the colour swizzle tables once per element size and shares them, so the 4 KiB standard layout here gets its own shared table (
standardTables, built once per element size likerenderTargetTables) instead of filling per-target vectors. Without this, the PR no longer compiled againstmain, even though GitHub showed no textual conflict. Build and ctest are clean apart from the failuresmainhas locally.Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-04T22:37:58Z.
Thanks, the per-size
standardTables()is the same adaptation I used to test it with #404, so this is exactly what passed my PPSA21564 check, and it builds and passes ctest here on current main. Ready to merge.