Skip to content

Intel vulkan adapter is marked cannot present in intel-only prime mode. #2129

Closed
@branan

Description

@branan

Description
The Optimus detection code relies only on the presence of the optimus Vulkan layer. When this layer is found, the intel adapter is marked as unusable to present surfaces. This is incorrect when prime is in intel-only or on-demand mode, as in those cases the intel adapter is absolutely the correct adapter.

This causes the examples (which request surface compatibility) to fall back to OpenGL mode. In code which doesn't specifically request surface compatibililty, like Bevy, this causes the application to panic when attempting to set up the swap chain.

Platform
Ubuntu 20.04 (vendor-installed) on a Dell precision 3551. Prime is in intel-only mode.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: correctnessWe're behaving incorrectlyhelp requiredWe need community help to make this happen.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions