您尚未登录。

#1 2022-07-04 12:49:01

tategotoazarasi
会员
注册时间: 2022-07-04
帖子: 3

[已经解决] OpenGL无法加载驱动

昨天更新之后OpenGL无法加载驱动了,桌面特效都消失了。Info Center中的“图形”里显示MESA-LOADER无法加载/usr/lib/dri下的驱动,但实际上这些驱动都是在的

----------------------------------------------

> ls  -l  /usr/lib/dri
-rwxr-xr-x 12 root root 25M  7月 3日 18:07 crocus_dri.so
-rwxr-xr-x 12 root root 25M  7月 3日 18:07 d3d12_dri.so
-rwxr-xr-x 12 root root 25M  7月 3日 18:07 iris_dri.so
-rwxr-xr-x 12 root root 25M  7月 3日 18:07 kms_swrast_dri.so
-rwxr-xr-x 12 root root 25M  7月 3日 18:07 nouveau_dri.so
-rwxr-xr-x  3 root root 12M  7月 3日 18:07 nouveau_drv_video.so
-rwxr-xr-x 12 root root 25M  7月 3日 18:07 r300_dri.so
-rwxr-xr-x 12 root root 25M  7月 3日 18:07 r600_dri.so
-rwxr-xr-x  3 root root 12M  7月 3日 18:07 r600_drv_video.so
-rwxr-xr-x 12 root root 25M  7月 3日 18:07 radeonsi_dri.so
-rwxr-xr-x  3 root root 12M  7月 3日 18:07 radeonsi_drv_video.so
-rwxr-xr-x 12 root root 25M  7月 3日 18:07 swrast_dri.so
-rwxr-xr-x 12 root root 25M  7月 3日 18:07 virtio_gpu_dri.so
-rwxr-xr-x 12 root root 25M  7月 3日 18:07 vmwgfx_dri.so
-rwxr-xr-x 12 root root 25M  7月 3日 18:07 zink_dri.so

----------------------------------------------------------------------------------------------------

"Graphic-OpenGL(EGL)" section in KDE's Info Center

MESA-LOADER: failed to open radeonsi: libLLVM-14.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri, suffix _dri)
failed to load driver: radeonsi
MESA-LOADER: failed to open zink: libLLVM-14.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri, suffix _dri)
failed to load driver: zink
MESA-LOADER: failed to open kms_swrast: libLLVM-14.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri, suffix _dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: libLLVM-14.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri, suffix _dri)
failed to load swrast driver
MESA-LOADER: failed to open radeonsi: libLLVM-14.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri, suffix _dri)
failed to load driver: radeonsi
MESA-LOADER: failed to open zink: libLLVM-14.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri, suffix _dri)
failed to load driver: zink
MESA-LOADER: failed to open kms_swrast: libLLVM-14.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri, suffix _dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: libLLVM-14.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri, suffix _dri)
failed to load swrast driver
MESA-LOADER: failed to open radeonsi: libLLVM-14.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri, suffix _dri)
failed to load driver: radeonsi
MESA-LOADER: failed to open zink: libLLVM-14.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri, suffix _dri)
failed to load driver: zink
MESA-LOADER: failed to open kms_swrast: libLLVM-14.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri, suffix _dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: libLLVM-14.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri, suffix _dri)
failed to load swrast driver
libEGL warning: DRI2: failed to authenticate
libEGL warning: MESA-LOADER: failed to open swrast: libLLVM-14.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri, suffix _dri)

libEGL warning: MESA-LOADER: failed to open radeonsi: libLLVM-14.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri, suffix _dri)

libEGL warning: MESA-LOADER: failed to open swrast: libLLVM-14.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri, suffix _dri)

libEGL warning: MESA-LOADER: failed to open radeonsi: libLLVM-14.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri, suffix _dri)

libEGL warning: MESA-LOADER: failed to open radeonsi: libLLVM-14.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri, suffix _dri)

libEGL warning: MESA-LOADER: failed to open swrast: libLLVM-14.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri, suffix _dri)

libEGL warning: MESA-LOADER: failed to open swrast: libLLVM-14.so: cannot open shared object file: No such file or directory (search paths /usr/lib/dri, suffix _dri)

EGL client extensions string:
    EGL_EXT_platform_base EGL_EXT_device_base EGL_EXT_device_enumeration
    EGL_EXT_device_query EGL_KHR_client_get_all_proc_addresses
    EGL_EXT_client_extensions EGL_KHR_debug EGL_KHR_platform_x11
    EGL_EXT_platform_x11 EGL_EXT_platform_device EGL_KHR_platform_wayland
    EGL_EXT_platform_wayland EGL_KHR_platform_gbm EGL_MESA_platform_gbm
    EGL_MESA_platform_xcb EGL_MESA_platform_surfaceless

GBM platform:
eglinfo: eglInitialize failed

Wayland platform:
eglinfo: eglInitialize failed

X11 platform:
eglinfo: eglInitialize failed

Surfaceless platform:
eglinfo: eglInitialize failed

Device platform:
Device #0:

EGL device extensions string:
    EGL_EXT_device_drm EGL_EXT_device_drm_render_node
Platform Device:
eglinfo: eglInitialize failed

Device #1:

EGL device extensions string:
    EGL_MESA_device_software EGL_EXT_device_drm_render_node
Platform Device:
eglinfo: eglInitialize failed

------------------------

> glxinfo -B
name of display: :0
Error: couldn't find RGB GLX visual or fbconfig

---------

> pacman -Qs mesa
local/glu 9.0.2-3
    Mesa OpenGL utility library
local/lib32-glu 9.0.2-3
    Mesa OpenGL utility library (32 bits)
local/lib32-libva-mesa-driver 22.1.3-1
    VA-API implementation for gallium (32-bit)
local/lib32-mesa 22.1.3-1
    An open-source implementation of the OpenGL specification (32-bit)
local/lib32-mesa-vdpau 22.1.3-1
    Mesa VDPAU drivers (32-bit)
local/lib32-opencl-mesa 22.1.3-1
    OpenCL support for AMD/ATI Radeon mesa drivers (32-bit)
local/lib32-vulkan-mesa-layers 22.1.3-1
    Mesa's Vulkan layers (32-bit)
local/lib32-vulkan-radeon 22.1.3-1
    Radeon's Vulkan mesa driver (32-bit)
local/libva-mesa-driver 22.1.3-1
    VA-API implementation for gallium
local/mesa 22.1.3-1
    An open-source implementation of the OpenGL specification
local/mesa-utils 8.5.0-2
    Essential Mesa utilities
local/mesa-vdpau 22.1.3-1
    Mesa VDPAU drivers
local/opencl-mesa 22.1.3-1
    OpenCL support for AMD/ATI Radeon mesa drivers
local/vulkan-mesa-layers 22.1.3-1
    Mesa's Vulkan layers
local/vulkan-radeon 22.1.3-1
    Radeon's Vulkan mesa driver

----------------------------------------

> pacman -Qs amdgpu
local/aomp-amdgpu 11.11.0-1
    Clang/LLVM based compiler with added support for the OpenMP API on Radeon GPUs
local/rocm-llvm 5.2.0-1
    Radeon Open Compute - LLVM toolchain (llvm, clang, lld)
local/xf86-video-amdgpu 22.0.0-1 (xorg-drivers)
    X.org amdgpu video driver

------------------------------------------------

环境:

操作系统: Arch Linux
KDE Plasma 版本: 5.25.2
KDE 程序框架版本: 5.95.0
Qt 版本: 5.15.5
内核版本: 5.18.9-zen1-1-zen (64-位)
图形平台: X11
处理器: 16 × AMD Ryzen 7 5700G with Radeon Graphics
内存: 30.7 GiB 内存
制造商: BIOSTAR Group
产品名称: B550MX/E PRO

------------------------------------------------

之前遇到了dkms的bug https://github.com/dell/dkms/issues/229 ,降级了dkms并且重新安装了内核和驱动。

-------------------------------------------------


通过重装llvm解决了这个问题。

最近编辑记录 tategotoazarasi (2022-07-04 13:31:09)

离线

#2 2022-07-04 13:14:51

q234rty
会员
注册时间: 2017-10-01
帖子: 41

Re: [已经解决] OpenGL无法加载驱动

看看 pacman -Qs llvm

离线

#3 2022-07-04 13:15:41

tategotoazarasi
会员
注册时间: 2022-07-04
帖子: 3

Re: [已经解决] OpenGL无法加载驱动

q234rty 说:

看看 pacman -Qs llvm

> pacman -Qs llvm
local/android-sdk-build-tools r33-11
    Build-Tools for Google Android SDK (aapt, aidl, dexdump, dx, llvm-rs-cc)
local/aomp-amdgpu 11.11.0-1
    Clang/LLVM based compiler with added support for the OpenMP API on Radeon GPUs
local/cargo-asm 0.1.16-1
    Cargo subcommand showing the assembly or llvm-ir generated for Rust code
local/clang 14.0.6-1
    C language family frontend for LLVM
local/cling 0.9-3
    Interactive C++ interpreter, built on the top of LLVM and Clang libraries
local/lib32-clang 14.0.6-1
    C language family frontend for LLVM (32-bit)
local/lib32-llvm-libs 14.0.6-1
    LLVM runtime libraries (32-bit)
local/libc++ 14.0.6-1
    LLVM C++ standard library.
local/libc++abi 14.0.6-1
    Low level support for the LLVM C++ standard library.
local/lld 14.0.6-1
    Linker from the LLVM project
local/llvm 14.0.6-1
    Compiler infrastructure
local/llvm-libs 14.0.6-1
    LLVM runtime libraries
local/spirv-llvm-translator 14.0.0.r57+g33898cef-1
    Tool and a library for bi-directional translation between SPIR-V and LLVM IR

最近编辑记录 tategotoazarasi (2022-07-04 13:24:25)

离线

页脚