Note to anyone wanting to actually use this full stack: It can't be done on Arch Linux, you will experience X crashes. However....
If anyone is wanting to use the OpenGL driver from this in order to run DaVinci Resolve, that CAN be done, and quite easily actually.
Install opencl-amd
for the proprietary standalone opencl driver. This also allows you to use OpenCL for things like Blender. But for DaVinci Resolve specifically, you also need to have the OpenGL driver, but you CANNOT install it systemwide. What you need to do, is put something like this in your .zshrc (or somewhere else where you can easily run it from the terminal):
progl() {
export LD_LIBRARY_PATH="${HOME}/pro/drivers:${LD_LIBRARY_PATH}"
export LIBGL_DRIVERS_PATH="${HOME}/pro/drivers/dri"
export dri_driver="amdgpu"
}
And then simply extract a few of the packages and put them in ${HOME}/pro/drivers (and ${HOME}/pro/drivers/dri).
Here is the output of ll -R ${HOME}/pro/drivers/
total 1.1M
drwxr-xr-x 2 matt matt 4.0K Aug 3 06:03 dri
lrwxrwxrwx 1 matt matt 11 Aug 3 06:05 libEGL.so -> libEGL.so.1
-rw-r--r-- 1 matt matt 80K Aug 3 06:05 libEGL.so.1
lrwxrwxrwx 1 matt matt 12 Aug 3 06:02 libGL.so -> libGL.so.1.2
lrwxrwxrwx 1 matt matt 12 Aug 3 06:02 libGL.so.1 -> libGL.so.1.2
-rw-r--r-- 1 matt matt 1013K Aug 3 06:02 libGL.so.1.2
pro/drivers/dri:
total 51M
-rw-r--r-- 1 matt matt 51M Aug 3 06:03 amdgpu_dri.so
amdgpu-pro-libgl-20.30_1109583-1-x86_64.pkg.tar should contain everything you need. Make sure to put the amdgpu_dri.so file inside a dri/
directory within the pro/
directory.
I've already tested this, it does allow DaVinci Resolve to open and run. You obviously have to run progl
from the terminal first, and then run DaVinci Resolve from that same terminal, but yeah that's it.
You could also just edit the .desktop file for DaVinci Resolve in order to add those envvars to the beginning of the Exec=
command.
Pinned Comments
Ashark commented on 2019-12-09 20:52
PKGBUILD generator is located here: https://github.com/Ashark/archlinux-amdgpu-pro
AMDGPU PRO wiki page: https://wiki.archlinux.org/index.php/AMDGPU_PRO