NVIDIA / egl-wayland

The EGLStream-based Wayland external platform
MIT License
275 stars 44 forks source link

plasma wayland broken on nvidia-drivers 470 #51

Open mzcs opened 2 years ago

mzcs commented 2 years ago

Hi There ! :)

I'm Using a Few Instances of Gentoo Linux OS - All On This Desktop PC:

System:
  Kernel: 5.17.0-gentoo x86_64 bits: 64
    Desktop: KDE Plasma 5.24.3 Distro: Gentoo Base System release 2.8
Machine:
  Type: Desktop Mobo: HUANANZHI model: X99-F8 GAMING v: V2.0
    UEFI: American Megatrends v: 5.11 date: 12/13/2021
CPU:
  Info: 12-core model: Intel Xeon E5-2673 v3 bits: 64 type: MT MCP cache: L2: 3 MiB
Graphics:
  Device-1: NVIDIA GK107GL [Quadro K600] driver: nvidia v: 470.103.01
  Firmware: 80.07.c5.00.0c
  Display: wayland server: X.Org 1.22.1 driver: loaded: nvidia
    resolution: 1920x1080~60Hz
  OpenGL: renderer: Quadro K600/PCIe/SSE2 v: 4.6.0 NVIDIA 470.103.01

a Few Weeks Ago, Just After SW Upgrading an Instance, I've Found That The 'KDE-Plasma on Wayland' System Turned To SW Rendering (via Mesa/LLVMpipe), Even Though Driver-Level HW Acceleration Was Enabled & Functional - Just As It Was Before, As Also Evident By a Fully Functional HW Accelerated 'KDE-Plasma on X11' System (That's Co-Installed).

a Bit of Probing & Poking Later, I've Discovered That The Most Likely Culprit Is Somewhere In Between NVIDIA's driver & egl-wayland libs. ...

Some Good Advice Would Be Highly Appreciated ! :)

*

Some SW Vers. :

KDE Plasma Version: 5.24.2
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2

Env. Vars. (Relevant) :

EGL_PLATFORM=wayland
GDK_BACKEND=wayland
KWIN_COMPOSE=O
KWIN_DRM_USE_EGL_STREAMS=1
KWIN_OPENGL_INTERFACE=egl
QT_QPA_PLATFORM=wayland-egl
SDL_VIDEODRIVER=wayland
WAYLAND_DISPLAY=wayland-0
XDG_SESSION_TYPE=wayland
__GLX_VENDOR_LIBRARY_NAME=nvidia

'KDE-Plasma on Wayland' System - Launch Command:

dbus-launch --exit-with-session startplasma-wayland --drm --xwayland > ./startplasma-wayland.log 2>&1

startplasma-wayland.log (Relevant) :

OpenGL vendor string:                   Mesa/X.org
OpenGL renderer string:                 llvmpipe (LLVM 13.0.1, 256 bits)
OpenGL version string:                  4.5 (Core Profile) Mesa 21.3.7
OpenGL shading language version string: 4.50
Driver:                                 LLVMpipe
GPU class:                              Unknown
OpenGL version:                         4.5
GLSL version:                           4.50
Mesa version:                           21.3.7
Linux kernel version:                   5.17
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
kwin_wayland_drm: Failed to create gamma blob! Invalid argument
Failed to initialize glamor, falling back to sw
kdeinit5: opened connection to :0

'eglinfo' Output - On Wayland (Relevant) :

Wayland platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
--

X11 platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
--

Device platform:
EGL API version: 1.5
EGL vendor string: NVIDIA
EGL version string: 1.5
EGL client APIs: OpenGL_ES OpenGL

'eglinfo' Output - On X11 (Relevant) :

X11 platform:
EGL API version: 1.5
EGL vendor string: NVIDIA
EGL version string: 1.5
EGL client APIs: OpenGL_ES OpenGL
--

Device platform:
EGL API version: 1.5
EGL vendor string: NVIDIA
EGL version string: 1.5
EGL client APIs: OpenGL_ES OpenGL

'glxinfo' Output - On Wayland (Relevant) :

name of display: :0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: SGI
server glx version string: 1.4
server glx extensions:
--
    GLX_MESA_copy_sub_buffer, GLX_OML_swap_method, GLX_SGIS_multisample, 
    GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group, 
    GLX_SGI_make_current_read
client glx vendor string: NVIDIA Corporation
client glx version string: 1.4
client glx extensions:
--
    Dedicated video memory: 1024 MB
    Total available memory: 1024 MB
    Currently available dedicated video memory: 957 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: Quadro K600/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 470.103.01

'glxinfo' Output - On X11 (Relevant) :

name of display: :0
display: :0  screen: 0
direct rendering: Yes
server glx vendor string: NVIDIA Corporation
server glx version string: 1.4
server glx extensions:
--
    GLX_NV_robustness_video_memory_purge, GLX_NV_swap_group, 
    GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, GLX_SGI_swap_control, 
    GLX_SGI_video_sync
client glx vendor string: NVIDIA Corporation
client glx version string: 1.4
client glx extensions:
--
    Dedicated video memory: 1024 MB
    Total available memory: 1024 MB
    Currently available dedicated video memory: 622 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: Quadro K600/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 470.103.01
damnkrat commented 2 years ago

Same on Manjaro GNU/Linux