Skip to content
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

panic on Intel HD 520 (Mailbox) #368

Closed
Zhou-Pixel opened this issue Dec 20, 2022 · 4 comments
Closed

panic on Intel HD 520 (Mailbox) #368

Zhou-Pixel opened this issue Dec 20, 2022 · 4 comments

Comments

@Zhou-Pixel
Copy link

I can't run any example from source.
system:EndeavourOS(base on arch)
kde plasma version: 5.26.4
x11/wayland:x11
cpu:i3-6006u
gpu:intel hd 520
output:
thread 'main' panicked at 'Error in Surface::configure: requested present mode Mailbox is not in the list of supported present modes: [Fifo]', /home/zhou/.cargo/registry/src/mirrors.ustc.edu.cn-61ef6e0cd06fb9b8/wgpu-0.14.2/src/backend/direct.rs:274:9
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace

@dhardy
Copy link
Collaborator

dhardy commented Dec 20, 2022

It's not KDE, it's WGPU on older Intel graphics hardware. Please try wgpu examples and see what works.

@dhardy dhardy changed the title panic on kde panic on Intel HD 520 (Mailbox) Dec 20, 2022
@dhardy
Copy link
Collaborator

dhardy commented Dec 20, 2022

You can also try changing the present_mode to Fifo in crates/kas-wgpu/src/window.rs:141. No other change required.

@Zhou-Pixel
Copy link
Author

It has the same problem on another computer that only has a different processor(CPU:AMD R5-5600H).

I tried some wgpu examples like https://github.com/gfx-rs/wgpu/tree/master/wgpu/examples/water, it works fine.
output:
Using Mesa Intel(R) HD Graphics 520 (SKL GT2) (Gl)
Avg frame time 15.864518ms
Avg frame time 16.645708ms
Avg frame time 16.64359ms
Avg frame time 16.645853ms
Avg frame time 16.645884ms
Avg frame time 16.645628ms
Avg frame time 16.643642ms

@Zhou-Pixel
Copy link
Author

You can also try changing the present_mode to Fifo in crates/kas-wgpu/src/window.rs:141. No other change required.

It works fine with changing the present_mode to Fifo.

This was referenced Dec 21, 2022
@dhardy dhardy closed this as completed May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants