arch/pkg/de-p1st-gpu-amdgpu/README.md

84 lines
2.1 KiB
Markdown
Raw Normal View History

2021-05-05 16:20:25 +02:00
# AMD Graphics Card
Good overview (table):
* [wiki.gentoo.org/Radeon](https://wiki.gentoo.org/wiki/Radeon#Feature_support)
* [wiki.gentoo.org/AMDGPU](https://wiki.gentoo.org/wiki/AMDGPU#Feature_support)
## AMDGPU
From gentoo wiki one should use AMDGPU e.g. for:
> AMD Zen 2 "4000" series 7nm laptop APUs
### AMDGPU (mandatory packages)
* archwiki -> AMDGPU -> Installation
* archwiki -> Xorg -> AMD
* archwiki -> Lenovo-IdeaPad-S540-13ARE (Ryzen 7 4800U CPU)
* archwiki -> Hardware_video_acceleration -> ATI/AMD
* HW-video-accel verification:
* run `vainfo` and `vdpauinfo` as non-root
* `amdgpu` module
2021-05-24 16:46:15 +02:00
* https://wiki.archlinux.org/title/AMDGPU#Loading
* The amdgpu kernel module is supposed to load automatically
on system boot.
* It is possible it loads, but late, after the X server requires it.
In this case:
* Include "amdgpu" in MODULES=(...) of `/etc/mkinitcpio.conf`
* https://wiki.archlinux.org/title/AMDGPU#Specify_the_correct_module_order
* `amdgpu` before `radeon`
2021-05-05 16:20:25 +02:00
```shell
# "DRI driver for 3D acceleration"
depends=(mesa)
# "DDX driver for 2D acceleration"
2021-05-05 17:08:14 +02:00
depends+=(xf86-video-amdgpu)
2021-05-05 16:20:25 +02:00
# "Vulkan support"
2021-05-05 17:08:14 +02:00
depends+=(vulkan-radeon)
2021-05-05 16:20:25 +02:00
# "HW-vide-acceleration: VA-API"
2021-05-05 17:08:51 +02:00
depends+=(libva-mesa-driver)
2021-05-05 16:20:25 +02:00
# "HW-vide-acceleration: VDPAU"
2021-05-05 17:08:14 +02:00
depends+=(mesa-vdpau)
2021-05-05 16:20:25 +02:00
```
2021-05-24 16:46:15 +02:00
**Verification**:
```shell
lspci -k | grep -EA3 'VGA|3D|Display'
```
Example output:
```
Kernel driver in use: amdgpu
Kernel modules: amdgpu
```
2021-05-05 16:20:25 +02:00
### AMDGPU PRO (optional packages)
* archwiki -> AMDGPU#AMDGPU_PRO
* archwiki -> AMDGPU_PRO
2021-12-17 22:22:43 +01:00
The `amdgpu-pro-installer` contains proprietary components for
2021-05-05 16:20:25 +02:00
AMDGPU (it works on top of AMDGPU).
Quote about the opengl part (from archwiki -> AMDGPU):
> From Radeon Software 18.50 vs Mesa 19 benchmarks article:
> When it comes to OpenGL games, the RadeonSI Gallium3D driver
> simply dominates the proprietary AMD OpenGL driver.
```shell
# proprietary OpenGL implementation
depends+=(amdgpu-pro-libgl)
# proprietary OpenCL implementation
depends+=(opencl-amd)
# proprietary Vulkan implementation
depends+=(vulkan-amdgpu-pro)
# Advanced Media Framework implementation
depends+=(amf-amdgpu-pro)
```