D24051: [platforms/drm] introduce env var to select GPU

Bhushan Shah <[email protected]>
Newsgroups gmane.comp.kde.devel.kwin
Message-ID <[email protected]>
bshah created this revision.
bshah added a reviewer: KWin.
Herald added a project: KWin.
Herald added a subscriber: kwin.
bshah requested review of this revision.

REVISION 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=/dev/dri/card1 kwin_wayland

TEST PLAN
  Tested on the device where card0 was not usable for kms, but card1

REPOSITORY
  R108 KWin

BRANCH
  bshah/env-for-drmdev

REVISION DETAIL
  https://phabricator.kde.org/D24051

AFFECTED FILES
  plugins/platforms/drm/drm_backend.cpp

To: bshah, #kwin
Cc: kwin, LeGast00n, The-Feren-OS-Dev, sbergeron, jraleigh, fbampaloukas, GB_2, mkulinski, ragreen, jackyalcine, iodelay, crozbo, bwowk, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, romangg, jensreuterberg, abetts, sebas, apol, mart
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.