feat(agc-driver): render to COLOR_8_8 targets with SWAP_ALT #2916
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2916"
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 XairRrR on 2026-10-10T18:27:28Z.
What
PPSA05684 stops in its first level with
unsupported color format 3 number type 0 component swap 1.CB_COLOR_INFO.COMP_SWAP1 (SWAP_ALT) on a two-channel format stores the x and w exports in its two channels (Mesasi_translate_colorswap,V_028C70_SWAP_ALTfor 2 channels: "X__Y").COLOR_8_8UNORM and SNORM targets with it bind as R8G8 with export mapping0xec. Blending into them still throws, since Vulkan would apply alpha factors to the wrong channel.Test in
tests/Graphics.cpp(ReversedComponentOrderTests).Tested
BUILD_TESTING=ON.57f96fd2: 697/698; the one failure,agc_driver_dcc_keys_first_write, fails the same way on plain main57f96fd2. Conventions check passed.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 adriadam10 on 2026-10-10T23:30:18Z.
Checked:
agc_driver_graphicspasses on the PR merged onto main, and fails without the State.cpp change. The 8_8 SWAP_ALT mapping (x,w → R,G) matches fpPS4's two-channel table, and blending into it still throws; merging.