AGC: agc_driver_msaa_dcc_srgb_clear_2/4/8 swap red and blue in BGRA sRGB DCC clears on AMD's Windows driver #14380
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 LeandroLP23 on 2026-11-01T11:00:05Z.
agc_driver_msaa_dcc_srgb_clear_2,_4and_8(added by #11704) fail on AMD's Windows driver:Setup: Radeon 860M (RDNA 3.5), Windows 11, driver 32.0.13058.8001,
maine6f57307fa,ANYPS5_REQUIRE_VULKAN=1 ANYPS5_NO_SHADER_CACHE=1. They pass on an RTX 5060 Ti (Windows, 621.01), and #11704 was tested on RADV.Which cases fail. With a local print of the first resolved texel of each case (bytes in memory order):
dccAlphaOnMsbB8G8R8A8_SRGB0x40(Clear0001)00 00 ff 00ff 00 00 00B8G8R8A8_SRGB0x80(Clear1110)ff ff 00 ff00 ff ff ffAll other combinations pass, at 2, 4 and 8 samples alike:
R8G8B8A8_SRGBcase;B8G8R8A8_SRGBkeys0x00and0xc0;dccAlphaOnMsb.The two failing cases are the only ones whose expected texel differs between byte 0 and byte 2. So the resolved BGRA texel has red and blue swapped, which suggests one step on this path reads or writes the BGRA clear as RGBA.
What it isn't:
shaderStorageImageMultisample. This driver doesn't have it. On the RTX 5060 Ti, with a local change that turnsstorageImageMultisampleoff, all three still pass.STORAGE_IMAGEforB8G8R8A8_UNORM(optimal tiling);B8G8R8A8_SRGBhas no storage bit, as on most drivers.I haven't found the step yet. @JJenkx, do you know which import or resolve path picks a different format or view on a device like this? I can run builds with extra logging on the 860M.
AI-assisted: yes (Claude Code)