Skip to content

Pipelined Rendering: bevy does not request surface compatibility from wgpu #3051

Open
@branan

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behaviorC-DependenciesA change to the crates that Bevy depends on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions