Skip to content

DRI_PRIME=1 is set unconditionally on linux when hardware adapter is used #328

@mukilan

Description

@mukilan

Originally reported in servo/servo#34814

The DRI_PRIME environment variable is being set by surfman unconditionally. This is the commit that introduced this feature.

According to the mesa documentation DRI_PRIME=1 will be interpreted as the number of the (non-default) GPU to use and not just as an 'enable low power mode' flag, but I don't know enough about this to say if surfman's usage of DRI_PRIME is a bug. It is also not clear to me if DRI_PRIME=1 is a bug if the system has only one gpu.

As seen in servo/servo#34814, this seems to break other applications (like some tinyfiledialog backends) in some cases. I

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions