Centos 8 + Wayland 上显示速度非常慢并且出现 glxinfo 错误

Centos 8 + Wayland 上显示速度非常慢并且出现 glxinfo 错误

我使用的是 CentOS 8.2.2004 以及配备 AMD Radeon RX570 和 Intel 板载显卡的双显示器。 (AMD 图形驱动程序是amdgpu-pro-20.20-1089974-rhel-8.2。)

几周前,我的电脑可以在 Xserver 上运行,但最近更新内核后,它可以在 Wayland 上运行。之后,显示速度非常慢,就像没有使用 H/W 加速一样。

为了检查它,我运行了LIBGL_DEBUG=verbose glxinfo,但它显示一条错误消息:

name of display: :0
libGL: DRI2 mode is not allowed under Wayland. Running in DRI3 mode
libGL: Error! DRI3 initializes failed
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
libGL: dlopen /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so failed (/usr/lib/x86_64-linux-gnu/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
libGL: OpenDriver: trying /usr/X11R6/lib64/modules/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/X11R6/lib64/modules/dri/swrast_dri.so
libGL: dlopen /usr/X11R6/lib64/modules/dri/swrast_dri.so failed (/usr/X11R6/lib64/modules/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
libGL: OpenDriver: trying /usr/lib64/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib64/dri/swrast_dri.so
libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/swrast_dri.so
libGL: dlopen /usr/X11R6/lib/modules/dri/swrast_dri.so failed (/usr/X11R6/lib/modules/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
libGL: OpenDriver: trying /usr/lib/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib/dri/swrast_dri.so
libGL: dlopen /usr/lib/dri/swrast_dri.so failed (/usr/lib/dri/swrast_dri.so: wrong ELF class: ELFCLASS32)
libGL: OpenDriver: trying /usr/X11R6/lib32/modules/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/X11R6/lib32/modules/dri/swrast_dri.so
libGL: dlopen /usr/X11R6/lib32/modules/dri/swrast_dri.so failed (/usr/X11R6/lib32/modules/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
libGL: OpenDriver: trying /usr/lib32/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib32/dri/swrast_dri.so
libGL: dlopen /usr/lib32/dri/swrast_dri.so failed (/usr/lib32/dri/swrast_dri.so: cannot open shared object file: No such file or directory)
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  149 (GLX)
  Minor opcode of failed request:  6 (X_GLXIsDirect)
  Serial number of failed request:  43
  Current serial number in output stream:  42

我不知道如何解决这个问题,因为我对 Linux 显示系统很新手。有人可以帮我吗?

PS 我知道我可以更改登录名以使用 Xserver。但是,由于这个问题,如果可能的话我想使用 Wayland,Intel 板载显卡 + AMD Radeon 上的屏幕撕裂(PRIME 同步 0)

仅供参考,当我LIBGL_DEBUG=verbose glxinfo在 Xserver 模式下运行时,显示以下输出:

name of display: :0
libGL: Running in DRI3 mode
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/tls/amdgpu_dri.so
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so
libGL: dlopen /usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so failed (/usr/lib/x86_64-linux-gnu/dri/amdgpu_dri.so: cannot open shared object file: No such file or directory)
libGL: OpenDriver: trying /usr/X11R6/lib64/modules/dri/tls/amdgpu_dri.so
libGL: OpenDriver: trying /usr/X11R6/lib64/modules/dri/amdgpu_dri.so
libGL: dlopen /usr/X11R6/lib64/modules/dri/amdgpu_dri.so failed (/usr/X11R6/lib64/modules/dri/amdgpu_dri.so: cannot open shared object file: No such file or directory)
libGL: OpenDriver: trying /usr/lib64/dri/tls/amdgpu_dri.so
libGL: OpenDriver: trying /usr/lib64/dri/amdgpu_dri.so
/opt/amdgpu/share/libdrm/amdgpu.ids version: 1.0.0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: AMD
server glx version string: 1.4
server glx extensions:
    GLX_ARB_create_context, GLX_ARB_create_context_profile, 
    GLX_ARB_fbconfig_float, GLX_ARB_framebuffer_sRGB, GLX_ARB_multisample, 

...

相关内容