feat(agc): implement 8 srgb color targets through rgba8 srgb proxies #1058
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1058"
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 Celegans12 on 2026-10-07T06:24:14Z.
What
8_SRGB color targets throw
unsupported color format 1 number type 6 component swap 0. Decoding them isn't enough: R8_SRGB attachments are optional in Vulkan, NVIDIA 610.62 and lavapipe have none, and with the decode alone both drop the writes.DecodeColorFormatmaps 8_SRGB (component swap 0) to R8_SRGB; other swaps and 8_8_SRGB still throw.COLOR_ATTACHMENTandCOLOR_ATTACHMENT_BLEND,AttachmentProxyFormatpicks RGBA8_SRGB (APS5_SRGB_ATTACHMENT_PROXY=1forces it). The resident R8 image is blitted into an RGBA8 copy before the pass and back after it, and the pass writes R only through an RGBA8_SRGB view: encode, decode and blending are the device's, as for 8_8_8_8_SRGB.Draw(#419recordDrawtoo), #290 and #944StorageTexture::release; all merge cleanly. Draft #426 does too, but already conflicts withmain.Tested
main9ab937b2: configure-DBUILD_TESTING=ON, full build,--target libs,ctest:ctest --output-on-failure)VK_DRIVER_FILES): 379/379 pass;agc_driver_flat_storeis left out there because it takes several minutes on Windows llvmpipeagc_driver_srgb8_color_target: multiply and DST_ALPHA blends (two in a continued pass), fast clear and MRT within 1 sRGB code; ZERO/ONE and outside-scissor bytes exact; fails onmain.agc_driver_graphics: decode, refusals, proxy choice; won't build onmain.color format 1 number type 6skips, 3,355 before; 0 of 7 frame dumps from 250 to 480 s black, 9 of 10 before.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-07T09:42:30Z.
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)docs/dev/TechnicalDebt.mdL256core/libs/prx/libSceAgcDriver/tests/Graphics.cppL8core/libs/prx/libSceAgcDriver/tests/Graphics.cppL8core/libs/prx/libSceAgcDriver/tests/Graphics.cppL8Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-08T05:52:42Z.
Checked on RADV (direct R8_SRGB path and the forced RGBA8_SRGB proxy via
APS5_SRGB_ATTACHMENT_PROXY=1):agc_driver_graphicsandagc_driver_srgb8_color_targetpass, full ctest 416/416 on top of currentmain; the new tests don't build or fail without the change; Linux/Windows CI green. Remaining 8_SRGB cases still throw and are listed in TechnicalDebt; merging.