我如何告诉 Ubuntu 在不同的路径下搜索驱动程序?

我如何告诉 Ubuntu 在不同的路径下搜索驱动程序?

尝试让 Blender/Steam 使用我的 AMD GPU 进行渲染,最终让它安装amdgpu-pro驱动程序,以便它在 Blender/Steam 内部被识别。

但是对于我的驱动程序来说,它寻找的路径是错误的;

glxgears


libGL error: MESA-LOADER: failed to open radeonsi (search paths /snap/alacritty/14/usr/lib/x86_64-linux-gnu/dri)
libGL error: failed to load driver: radeonsi
libGL error: MESA-LOADER: failed to open radeonsi (search paths /snap/alacritty/14/usr/lib/x86_64-linux-gnu/dri)
libGL error: failed to load driver: radeonsi
libGL error: MESA-LOADER: failed to open swrast (search paths /snap/alacritty/14/usr/lib/x86_64-linux-gnu/dri)
libGL error: failed to load driver: swrast
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  152 (GLX)
  Minor opcode of failed request:  6 (X_GLXIsDirect)
  Serial number of failed request:  46
  Current serial number in output stream:  45

它看起来是在寻找/snap/alacritty/14/usr/lib/x86_64-linux-gnu/dri我的驱动程序。但如果我运行以下命令;

locate swrast


/snap/alacritty/14/usr/lib/x86_64-linux-gnu/dri/kms_swrast_dri.so
/snap/alacritty/14/usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
/snap/gnome-3-34-1804/24/usr/lib/x86_64-linux-gnu/dri/kms_swrast_dri.so
/snap/gnome-3-34-1804/24/usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
/snap/gnome-3-34-1804/33/usr/lib/x86_64-linux-gnu/dri/kms_swrast_dri.so
/snap/gnome-3-34-1804/33/usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
/usr/lib/x86_64-linux-gnu/dri/kms_swrast_dri.so
/usr/lib/x86_64-linux-gnu/dri/swrast_dri.so

似乎应该看看/usr/lib/x86_64-linux-gnu/dri

dpkg -l | grep radeonsi没有返回任何内容。

我怎样告诉系统在正确的目录中查找?

相关内容