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

Invalid surface on Intel iGPU driver #16

Open
flukejones opened this issue Apr 28, 2023 · 0 comments
Open

Invalid surface on Intel iGPU driver #16

flukejones opened this issue Apr 28, 2023 · 0 comments
Labels
T: bug Type: Something isn't working

Comments

@flukejones
Copy link

     Running `/home/luke/Projects/floem/target/debug/counter`
warning: queue 0x559c196f8870 destroyed while proxies still attached:
  wl_registry@2 still attached
thread 'main' panicked at 'Error in Surface::configure: invalid surface', /home/luke/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-0.15.1/src/backend/direct.rs:316:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: queue 0x559c196fa3f0 destroyed while proxies still attached:
  wl_display@1 still attached

…/examples/counter on  main is 📦 v0.1.0 via 🦀 v1.69.0 
❯ __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia cargo run
    Finished dev [unoptimized + debuginfo] target(s) in 0.11s
     Running `/home/luke/Projects/floem/target/debug/counter`
warning: queue 0x55c4fb38de40 destroyed while proxies still attached:
  wl_registry@2 still attached
warning: queue 0x55c4fb38fe00 destroyed while proxies still attached:
  zwp_linux_dmabuf_v1@6 still attached

Per output above, the first block is Intel GPU. Second is offload to Nvidia. When offloaded to Nvidia the example runs fine (and so does lapce floem branch).

I've not much experience with wgpu, but usually when I've encountered this it's been to do with pixel colour types or maybe blending.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: bug Type: Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants