Created attachment 139814 [details] [review]
When clearing render targets, fast color clears use the image format rather than the format of the image view, which is incorrect if the formats differ. This leads to a rendering issue in ELEX with DXVK:
Here's a Renderdoc capture that shows the issue (recorded on Polaris):
At EID 10305, the game clears a render target view with VK_FORMAT_R8G8B8A8_UNORM where the image itself has the format VK_FORMAT_R8G8B8A8_UINT. As a result, the alpha value of the cleared image is incorrect (129 instead of 1).
This issue does not occur when setting RADV_DEBUG=nofastclears.
The attached patch fixes the issue for this game, although I'm not sure if it is entirely correct.
This patch fixes the issue in Elex with DXVK for me. Thanks.
(Polaris, RX 470, radv)
Looks correct to me and no CTS regressions here, so