Closed matteomeli closed 3 days ago
If you can reproduce this in a simple app, it's most probably a driver issue and nothing we can fix.
Sample looks and works fine for me on an RTX 4070 and a Google Pixel 4a.
Yeah was worried it could be that.
Have you tried, or could you try, the sample on AMD GPU?
I tried on an M2 and a Arc and was not able to reproduce. I can test AMD early November
I am just following Vulkan Tutorial and probably encountered the same problem.
Code from Generating Mipmaps chapter gives me normal colors:
Code from Multisampling chapter gives me darker colors:
If for Multisampling chapter I change VK_FORMAT_R8G8B8A8_SRGB
to VK_FORMAT_R8G8B8A8_UNORM
then colors are fine.
The same change for Generating Mipmaps chapter gives brighter colors:
I am using Windows 11 with AMD Ryzen 7 7800X3D and AMD Radeon RX 7900 XTX.
Driver Version: 24.10.29.01-240714a-406784C-AMD-Software-Adrenalin-Edition
AMD Windows Driver Version: 32.0.11029.1008
Can you open an issue with your GPU vendor? Most probably nothing we can fix on our side.
Hi @matteomeli, we're closing this as it appears to be a vendor bug - please reopen if this is not the case. Thanks!
I have noticed some issues with the resulting displayed colours of the MSAA sample. When I select MSAA from the drop down list (any sample count) the scene appears much darker. If I choose no MSAA instead, the scene appears much brighter, looking correct.
With MSAA:
Without MSAA:
This is on my laptop with an AMD Radeon RX 7700S (discrete), but it also happens with the integrated chip AMD Radeon 780M.
I wrote a much simpler program to just load a texture onto a quad, and I can reproduce the same issue. If I load the texture and create its view with VK_R8G8B8A8_SRGB format, then, if multisampling is enabled, it appears much darker. With multisampling enabled, f I load it with VK_R8G8B8A8_UNORM, then it will appear fine. But if I then disable multisampling, it appears very bright.
On my desktop (Intel UHD Graphics 630 and NVIDIA GeForce RTX 2080 SUPER), the issue doesn't reproduce at all, again with either card.
Any idea what's going on? Is it a known driver issue about multisampling and sRGB on AMD cards?
Driver details are: AMD Software Adrenaline Edition Version: 23.40.18.02 AMD Windows Driver Version: 31.0.24018.2001