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

Closed
opened 2026-11-01 11:00:05 +00:00 by LeandroLP23 · 0 comments
LeandroLP23 commented 2026-11-01 11:00:05 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by LeandroLP23 on 2026-11-01T11:00:05Z.


agc_driver_msaa_dcc_srgb_clear_2, _4 and _8 (added by #11704) fail on AMD's Windows driver:

AGC graphics: an sRGB DCC import or resolve changed an undrawn sample endpoint

Setup: Radeon 860M (RDNA 3.5), Windows 11, driver 32.0.13058.8001, main e6f57307fa, 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):

Format DCC key dccAlphaOnMsb Resolved Expected Wrong bytes
B8G8R8A8_SRGB 0x40 (Clear0001) false 00 00 ff 00 ff 00 00 00 65,536
B8G8R8A8_SRGB 0x80 (Clear1110) false ff ff 00 ff 00 ff ff ff 65,536

All other combinations pass, at 2, 4 and 8 samples alike:

  • every R8G8B8A8_SRGB case;
  • the B8G8R8A8_SRGB keys 0x00 and 0xc0;
  • every case with 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:

  • Not the missing shaderStorageImageMultisample. This driver doesn't have it. On the RTX 5060 Ti, with a local change that turns storageImageMultisample off, all three still pass.
  • Not missing BGRA storage support. The driver reports STORAGE_IMAGE for B8G8R8A8_UNORM (optimal tiling); B8G8R8A8_SRGB has 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)

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:6146103840 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/14380). Originally posted by [LeandroLP23](https://github.com/LeandroLP23) on 2026-11-01T11:00:05Z. --- `agc_driver_msaa_dcc_srgb_clear_2`, `_4` and `_8` (added by #11704) fail on AMD's Windows driver: ``` AGC graphics: an sRGB DCC import or resolve changed an undrawn sample endpoint ``` **Setup:** Radeon 860M (RDNA 3.5), Windows 11, driver 32.0.13058.8001, `main` `e6f57307fa`, `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): | Format | DCC key | `dccAlphaOnMsb` | Resolved | Expected | Wrong bytes | |---|---|---|---|---|---| | `B8G8R8A8_SRGB` | `0x40` (`Clear0001`) | false | `00 00 ff 00` | `ff 00 00 00` | 65,536 | | `B8G8R8A8_SRGB` | `0x80` (`Clear1110`) | false | `ff ff 00 ff` | `00 ff ff ff` | 65,536 | All other combinations pass, at 2, 4 and 8 samples alike: - every `R8G8B8A8_SRGB` case; - the `B8G8R8A8_SRGB` keys `0x00` and `0xc0`; - every case with `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:** - **Not the missing `shaderStorageImageMultisample`.** This driver doesn't have it. On the RTX 5060 Ti, with a local change that turns `storageImageMultisample` off, all three still pass. - **Not missing BGRA storage support.** The driver reports `STORAGE_IMAGE` for `B8G8R8A8_UNORM` (optimal tiling); `B8G8R8A8_SRGB` has 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)
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#14380
No description provided.