summaryrefslogtreecommitdiffstats
path: root/tools/display_driver_helper
diff options
context:
space:
mode:
authorThomas Backlund <tmb@mageia.org>2017-03-28 17:24:27 +0300
committerThomas Backlund <tmb@mageia.org>2017-03-28 17:24:27 +0300
commit1ecd39ba24adb8de07998efa77c78403f6cbd977 (patch)
treee7d07e4683fd67e0bf2a3e620ccfe8ae787667c4 /tools/display_driver_helper
parent3187693b28287dc9529c24913caa8625f3e3506f (diff)
downloaddrakx-kbd-mouse-x11-1ecd39ba24adb8de07998efa77c78403f6cbd977.tar
drakx-kbd-mouse-x11-1ecd39ba24adb8de07998efa77c78403f6cbd977.tar.gz
drakx-kbd-mouse-x11-1ecd39ba24adb8de07998efa77c78403f6cbd977.tar.bz2
drakx-kbd-mouse-x11-1ecd39ba24adb8de07998efa77c78403f6cbd977.tar.xz
drakx-kbd-mouse-x11-1ecd39ba24adb8de07998efa77c78403f6cbd977.zip
detect amdgpu (mga#20538)
Diffstat (limited to 'tools/display_driver_helper')
-rw-r--r--tools/display_driver_helper16
1 files changed, 13 insertions, 3 deletions
diff --git a/tools/display_driver_helper b/tools/display_driver_helper
index d5488c0..c8b5461 100644
--- a/tools/display_driver_helper
+++ b/tools/display_driver_helper
@@ -30,9 +30,9 @@ fi
export LC_ALL=C
-KMS_DRIVERS="i915 radeon nouveau"
+KMS_DRIVERS="i915 amdgpu radeon nouveau"
# module names at run-time (hence nvidia instead of nvidia*):
-KNOWN_MODULES="i915|radeon|nouveau|fglrx|nvidia"
+KNOWN_MODULES="i915|amdgpu|radeon|nouveau|fglrx|nvidia"
XORG_i915="intel"
CONFLICTS_i915=""
@@ -41,7 +41,10 @@ XORG_nouveau="nouveau"
CONFLICTS_nouveau="nv nvidia"
XORG_radeon="ati radeon"
-CONFLICTS_radeon="fglrx"
+CONFLICTS_radeon="fglrx amdgpu"
+
+XORG_amdgpu="amdgpu"
+CONFLICTS_amdgpu="radeon"
# Note: no /usr
# See end of script for descriptions of global variables.
@@ -58,6 +61,13 @@ check_driver() {
check_xorg $name 0 || return 1
IS_KMS=1
;;
+ amdgpu)
+ # implicitely loaded by X.org
+ check_xorg $name 0 || return 1
+ IS_KMS=1
+ # amdgpu KMS needs to be loaded before X server
+ NEEDS_LOAD_NOW=1
+ ;;
radeon)
# implicitely loaded by X.org
check_xorg $name 0 || return 1