gfx-rs / wgpu

A cross-platform, safe, pure-Rust graphics API.
https://wgpu.rs
Apache License 2.0
12.76k stars 935 forks source link

Strange discoloring when using msaa on Windows with Vulkan #5565

Open AndriBaal opened 7 months ago

AndriBaal commented 7 months ago

I have a strange discoloring when 2d rendering to the surface target or any other render target, when using a multisampling on Windows 10 / 11 with Vulkan.

This is how it looks when:

This is how it looks with Vulkan and multisample on Windows 10 / 11 (AMD RX 6600XT): grafik

For me, this looks like it might be an issue with HDR. Altough my monitor supports HDR, I have HDR deactivated in my monitor settings and Windows does not recognize my display as a HDR display. I also never had any issues with discoloring in other games i played.

I also get a lot of DirectX errors while using Vulkan just like described in https://github.com/gfx-rs/wgpu/issues/3959. (I don't think it has anything to do with it, since I also have it on Windows with OpenGL, but I wanted to mention it anyway.)

Is this an already known issue or am I maybe just doing something wrong? I'd be happy to supply more information or an example if needed!

valaphee commented 7 months ago

Reminds me of https://github.com/gfx-rs/wgpu/issues/4842

AndriBaal commented 7 months ago

Would be possible since I also use sRGB.

chuigda commented 4 weeks ago

Maybe not very relevant with wgpu-rs specifically. I'm using Windows 10 and AMD RX-6650XT. It seems that even the Vulkan Tutorial MSAA example has this discoloring:

image

And on Linux side (I have dual boot) everything works fine. So I guess this could be a potential driver problem.