mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-11-05 13:20:11 +00:00
CB_COLOR_INFO format 1 with number type 6 (8_SRGB) threw at decode. It now decodes as R8_SRGB with component swap 0; the other swaps and 8_8_SRGB still throw. A device that cannot attach and blend R8_SRGB (NVIDIA, lavapipe) renders a resident 8_SRGB target through an RGBA8_SRGB view of an RGBA8 copy of its R8 image: the image is blitted in before the pass and back when the pass ends, and the write mask keeps R only, so the encode, decode and blend are the device's sRGB attachment rules. APS5_SRGB_ATTACHMENT_PROXY=1 forces the copy. Linear, mipmapped and 3D 8_SRGB targets throw on such a device. PPSA26344 renders its G-buffer slot 5 and a multiply-blend pass into 8_SRGB targets.