Diffusion KWin 6b610927f434

[platforms/drm] introduce env var to select GPU

Authored by bshah on Sep 18 2019, 10:21 AM.

Description

[platforms/drm] introduce env var to select GPU

Summary:
In some environemnts it is possible that udev detection of primary GPU
fails and it picks the first available card (normally card0). But it is
not desired, and it would be required to use different card (card1).

Introduce environment variable, which when used, will make it possible
to use different card node then one selected by udev.

You can use it like KWIN_DRM_DEVICE_NODE=/dev/dri/card1 kwin_wayland

Test Plan: Tested on the device where card0 was not usable for kms, but card1

Reviewers: KWin

Subscribers: kwin

Tags: KWin

Differential Revision: https://phabricator.kde.org/D24051

Details

Committed
bshahSep 19 2019, 9:31 AM
Differential Revision
D24051: [platforms/drm] introduce env var to select GPU
Parents
R108:48691c406e94: Update version number for 5.16.90 GIT_SILENT
Branches
Unknown
Tags
Unknown