How do I use OpenCL with an RX 5700 XT on ArchLinux?

I installed the opencl package, but I still get this in my settings menu:

Blender only supports the proprietary drivers for GPU rendering. Install AMDGPU PRO.

There is also an AUR package which contains only the OpenCL part of the AMDGPU PRO driver. You might want to check that out if you don’t want to install the entire proprietary driver.

Also, check if your GPU has OpenCL support on Linux with the latest AMD drivers. I once had the problem that my GPU was supported in one version but not in the next.

That sucks. I’ll probably do what @Millani suggested. Do you know if there is any effort to make it work with Mesa?

For the current solution with OpenCL check these threads on DevTalk:

You can also check my old thread about performance on OpenCL under Linux, thou it’s outdated as the performance regression was fixed recently: