-
Notifications
You must be signed in to change notification settings - Fork 920
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
Failed to initialize window when libwayland is not symllinked properly #2335
Comments
Resolved by looking for Wayland libraries in /lib64. It looks like we either should embed libwayland, use its Rust alternative or search for versioned libs: https://github.com/Smithay/wayland-rs/blob/ddd92dcaf6736c1822f7698cf0d8446f03773d36/wayland-sys/src/client.rs#L89 Btw there should at least be some graceful handling for case where we get X11 WSI and Wayland window here |
Internals of the issue:
|
Description
GL backend does not work on Wayland.
Repro steps
0. wgpu repository
WGPU_BACKEND=gl cargo run --example cube
panicsWAYLAND_DISPLAY= WGPU_BACKEND=gl cargo run --example cube
worksExpected vs observed behavior
Expected: Both Wayland and X11 (Xwayland) work with both Vulkan and GLES
Got: Wayland only works with Vulkan, X11 is fine with both
Error:
[2021-12-30T12:23:13Z ERROR wgpu_core::device] surface configuration failed: incompatible window kind
Extra materials
I'm going to investigate the issue on my own currently and submit a PR in case of successful fix.
Platform
GNOME Shell/Mutter 41.2 on Fedora 35
AMDGPU (Ryzen 4500U)
wgpu from
master
branchThe text was updated successfully, but these errors were encountered: