-
Notifications
You must be signed in to change notification settings - Fork 1.1k
wayland and GL backend does not like sRGB formats on integrated intel gpu #1981
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thank you for investigating! |
Looks like Mesa's EGL-Wayland support just does not handle sRGB at all like the Vulkan WSI does. I'll look into adding the missing support. But in any case you probably shouldn't rely on this always working, this sRGB format stuff seems relatively new and obscure-ish (?). |
hm, tracing the driver a bit, it's not that the sRGB configs weren't added, it's the incoming |
So we are picking a wrong config? |
Oh! Yes. I know the issue. Hint: this is the same issue that used to cause GTK4 applications to have non-smooth shadows (!) … … … … … get it yet? … … … … You're picking a 10-bit color format like ARGB2101010 by just using |
Ok, interesting. This is a bit problematic. We are currently choosing FBConfig at instance creation time. But we don't know what surface format is going to be requested by
I think (1) would work best. Open to other proposals! |
Uh oh!
There was an error while loading. Please reload this page.
Description
Shadow example (and all others, etc.) surfaces a panic (failure to configure surface basically), which originates from an error coming from this call right here:
wgpu/wgpu-hal/src/gles/egl.rs
Line 890 in 87c8680
Repro steps
On archlinux, running gnome wayland:
ends with:
Expected vs observed behavior
According to capabilities, it should run without panicking on a sRGB surface, e.g. logs return:
Which mean we hit this line:
wgpu/wgpu-hal/src/gles/egl.rs
Line 436 in 87c8680
which is what sets
srgb_kind
, which is what enables theenable_srgb
flag, which is what returns the sRGB surfaces as supported incaps
.Extra materials
Changing to the following fixes (though it clearly renders in linear colorspace):
Platform
Archlinux x86_64, running gnome + wayland, targetting gl backend.
The text was updated successfully, but these errors were encountered: