MESA-LOADER: failed to open radeonsi

/usr/lib/dri/radeonsi_dri.so: cannot open shared object file: No such file or directory

If you are seeing an error like this:
MESA-LOADER: failed to open radeonsi: /usr/lib/dri/radeonsi_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
failed to load driver: radeonsi

MESA-LOADER: failed to open radeonsi: /usr/lib/dri/radeonsi_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
failed to load driver: radeonsi

MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: No such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
W

The answer...

Add the following to the end of your ~/.bashrc
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libdrm_amdgpu.so.1

Make sure the path above actually exists for you.

Now in a fresh terminal try your running your program again, in my case FreeCAD