SDB:AMDGPU

Jump to: navigation, search

AMD portal edit

AMD Hardware

Drivers

  • Open source:
AMDGPU
Radeon
  • Proprietary:
AMDGPU-PRO
AMD fglrx


Version: Leap 42.2 and newer The AMDGPU driver provided for openSUSE Leap 42.2+.

Intro

AMDGPU is the next generation family of open source graphics drivers for newer AMD/ATI Radeon graphics cards based on the Graphics Core Next-chipsets, ranging from GCN1 (Radeon HD 7000) up to the latest graphics cards.

This guide is to help you install the AMDGPU open source AMD drivers for video cards from Radeon GPU HD 7000 to most recent series only.

Check HCL:AMD video cards to select the driver that best suits your hardware first before proceeding.

Installation

Install the xf86-video-amdgpu and kernel-firmware packages.

sudo zypper install xf86-video-amdgpu kernel-firmware

Hybrid Graphics Configuration

Laptops with discrete AMD GPUs will run with the Intel graphics as primary. Since it is advantageous for longer battery life to use the included Intel GPU, and only activate the AMD GPU for applications that need it. This process is called "offloading".

The Boot Loader will need to have two parameters to be passed to the kernel

YaST > Boot Loader

Select the Kernel Parameters Tab and add the following:

amdgpu.si_support=1 radeon.si_support=0

This will tell the kernel to use the amdgpu driver and not use the radeon driver. After changes have been saved, reboot the machine.

To test that the AMD GPU is available, open a terminal and run

xrandr --listproviders

The output should be similar to this:

Providers: number : 2
Provider 0: id: 0x69; cap: 0xf (Source Output, Sink Output, Source Offload, Sink Offload); crtcs: 3; outputs: 7; 
associated providers: 1; name: modesetting
output eDP-1
output VGA-1
output HDMI-1
output DP-1
output HDMI-2
output DP-2
output HDMI-3
Provider 1: id: 0x3f; cap: 0xd (Source Output, Source Offload, Sink Offload); crtcs: 0; outputs: 0; associated 
providers: 1; name: AMD Radeon HD 8600M Series @ pci:0000:01:00.0

Take notice of two key points: First, that there are 2 providers. Provider 0, is the Intel GPU, the second, Provider 1, is the AMD. Take note that Provider 1 is AMD.

To test that the AMD GPU is properly usable run the following in termrinal:

DRI_PRIME=1 glxinfo | grep “OpenGL renderer”

The output should be similar to this:

OpenGL renderer string: AMD Radeon HD 8600M Series (HAINAN / DRM 3.23.0 / 4.16.8-1-default, LLVM 6.0.0)

In order to offload the graphics processing to the AMD GPU for more graphic intensive applications, prepend any application with DRI_PRIME=1

For example, to run all Steam games using the AMD GPU not the Intel, from terminal:

DRI_PRIME=1 steam

This can also be added in the menu for executing an application. Through your menu editor or .desktop file, DRI_PRIME=1 can be prepended to any application you want to be offloaded to the AMD GPU. This should work for applications such as games, emulators, engineering applications like FreeCAD and so forth.


See also

Related articles

External links