Open
Description
Bevy version
pipelined-rendering HEAD
Operating system & version
Ubuntu 20.04
What you did
- Set prime to intel-only mode
cargo run --example 3d_scene_pipelined
What you expected to happen
3d_scene_pipelined
demo to be rendered on the Intel GPU
What actually happened
thread 'main' panicked at 'Error in Surface::configure: surface does not support the adapter's queue family', /home/branan/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-0.11.0/src/backend/direct.rs:204:9
Additional information
The reason that wgpu selects the intel GPU even though it cannot present to it is because Bevy does not request surface compatibility when initializing the wgpu adapter.
This happens in my case because wgpu is overly-aggressive in disabling presentation on Intel GPUs on systems with prime/optimus. However, I believe that this lack of an explicit compatibility check could potentially cause wgpu to select an incorrect Vulkan device in other situations where there are GPUs which cannot present.
Activity