AMDGPU

amdgpu is a family of open source graphics drivers for AMD/ATI Radeon graphics cards.

Hardware detection
To choose the right driver, first detect the graphics card. Use for this task:

Feature support

 * 1 Support is optional in the kernel.

Firmware
Microcode is required. To get the firmware install one of two separate packages. Either the package:

Or the package (this package contains also other firmware):

When compiling amdgpu directly into the kernel (instead of as a module), make sure firmware for each model (check available ones in or ) is included in the kernel:

Save the kernel configuration and exit without compiling. More kernel configuration options will be set below.

Below is a list of the firmware files needed for each family/chipset of cards:


 * If you are currently using sys-kernel/linux-firmware, it's a good idea to make sure all the includes above for your GPU are found in /lib/firmware/radeon for legacy GPU's. At the time of this writing radeon/bonaire_sdma1.bin did not exist and switching to amdgpu-ucode solved the problem.

Kernel
You need to set the following kernel options:

The options from the Sound card support menu need only to be set if the card supports HDMI or DisplayPort audio and you want to use it. See the Radeon article for more details about using HDMI/DisplayPort audio.

make.conf
Portage uses the VIDEO_CARDS variable for enabling support for various graphics cards in packages. Setting VIDEO_CARDS to  (see the feature matrix) will pull in the correct driver: