You are not logged in.

#1 2024-07-08 12:42:38

dureu
Member
From: MI, USA
Registered: 2024-07-08
Posts: 5

Wayland using llvmpipe as OpenGL renderer instead of nvidia graphics

changed name from "Wayland using zink as OpenGL renderer instead of nvidia graphics"

Hello,

I'm having trouble getting my laptop to render things using my discrete nvidia graphics card.

fastfetch:

                  -`                     lapras@syn-2600-6c4a-757f-5685-25d8-0711-95a1-a313
                 .o+`                    --------------------------------------------------
                `ooo/                    OS: Arch Linux x86_64
               `+oooo:                   Host: ROG Strix G533ZW_G533ZW (1.0)
              `+oooooo:                  Kernel: Linux 6.9.7-zen1-1-zen
              -+oooooo+:                 Uptime: 33 mins
            `/:-:++oooo+:                Packages: 811 (pacman)
           `/++++/+++++++:               Shell: zsh 5.9
          `/++++++++++++++:              Display (BOE0A55): 2560x1440 @ 240Hz [Built-in]
         `/+++ooooooooooooo/`            Display (LG ULTRAGEAR): 2560x1440 @ 144Hz
        ./ooosssso++osssssso+`           Display (VSC9C30): 3840x2160 @ 60Hz [External]
       .oossssso-````/ossssss+`          WM: Sway (Wayland)
      -osssssso.      :ssssssso.         Cursor: Adwaita
     :osssssss/        osssso+++.        Terminal: foot 1.17.2
    /ossssssss/        +ssssooo/-        Terminal Font: Mononoki Nerd Font (10pt)
  `/ossssso+/:-        -:/+osssso+-      CPU: 12th Gen Intel(R) Core(TM) i9-12900H (20) @ 5.00 GHz
 `+sso+:-`                 `.-/+oso:     GPU 1: Intel Iris Xe Graphics @ 1.45 GHz [Integrated]
`++:.                           `-/+/    GPU 2: NVIDIA Geforce RTX 3070 Ti Laptop GPU [Discrete]
.`                                 `/    Memory: 2.55 GiB / 15.28 GiB (17%)
                                         Swap: 0 B / 16.00 GiB (0%)
                                         Disk (/): 467.58 GiB / 919.86 GiB (51%) - ext4
                                         Local IP (wlo1): 192.168.86.239/24 *
                                         Battery: 100% [AC Connected]
                                         Locale: en_US.UTF-8

journalctl -b: http://0x0.st/XB0W.txt

eglinfo -B:

GBM platform:
EGL API version: 1.5
EGL vendor string: NVIDIA
EGL version string: 1.5
EGL client APIs: OpenGL_ES OpenGL
OpenGL core profile vendor: NVIDIA Corporation
OpenGL core profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL core profile version: 4.6.0 NVIDIA 555.58
OpenGL core profile shading language version: 4.60 NVIDIA
OpenGL compatibility profile vendor: NVIDIA Corporation
OpenGL compatibility profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL compatibility profile version: 4.6.0 NVIDIA 555.58
OpenGL compatibility profile shading language version: 4.60 NVIDIA
OpenGL ES profile vendor: NVIDIA Corporation
OpenGL ES profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL ES profile version: OpenGL ES 3.2 NVIDIA 555.58
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Wayland platform:
libEGL warning: egl: failed to create dri2 screen
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
OpenGL core profile vendor: Mesa
OpenGL core profile renderer: zink Vulkan 1.3(NVIDIA GeForce RTX 3070 Ti Laptop GPU (NVIDIA_PROPRIETARY))
OpenGL core profile version: 4.6 (Core Profile) Mesa 24.1.2-arch1.1
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: Mesa
OpenGL compatibility profile renderer: zink Vulkan 1.3(NVIDIA GeForce RTX 3070 Ti Laptop GPU (NVIDIA_PROPRIETARY))
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 24.1.2-arch1.1
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: Mesa
OpenGL ES profile renderer: zink Vulkan 1.3(NVIDIA GeForce RTX 3070 Ti Laptop GPU (NVIDIA_PROPRIETARY))
OpenGL ES profile version: OpenGL ES 3.2 Mesa 24.1.2-arch1.1
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

X11 platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
OpenGL core profile vendor: Mesa
OpenGL core profile renderer: llvmpipe (LLVM 17.0.6, 256 bits)
OpenGL core profile version: 4.5 (Core Profile) Mesa 24.1.2-arch1.1
OpenGL core profile shading language version: 4.50
OpenGL compatibility profile vendor: Mesa
OpenGL compatibility profile renderer: llvmpipe (LLVM 17.0.6, 256 bits)
OpenGL compatibility profile version: 4.5 (Compatibility Profile) Mesa 24.1.2-arch1.1
OpenGL compatibility profile shading language version: 4.50
OpenGL ES profile vendor: Mesa
OpenGL ES profile renderer: llvmpipe (LLVM 17.0.6, 256 bits)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 24.1.2-arch1.1
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Surfaceless platform:
EGL API version: 1.5
EGL vendor string: NVIDIA
EGL version string: 1.5
EGL client APIs: OpenGL_ES OpenGL
OpenGL core profile vendor: NVIDIA Corporation
OpenGL core profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL core profile version: 4.6.0 NVIDIA 555.58
OpenGL core profile shading language version: 4.60 NVIDIA
OpenGL compatibility profile vendor: NVIDIA Corporation
OpenGL compatibility profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL compatibility profile version: 4.6.0 NVIDIA 555.58
OpenGL compatibility profile shading language version: 4.60 NVIDIA
OpenGL ES profile vendor: NVIDIA Corporation
OpenGL ES profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL ES profile version: OpenGL ES 3.2 NVIDIA 555.58
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Device platform:
Device #0:

Platform Device platform:
EGL API version: 1.5
EGL vendor string: NVIDIA
EGL version string: 1.5
EGL client APIs: OpenGL_ES OpenGL
OpenGL core profile vendor: NVIDIA Corporation
OpenGL core profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL core profile version: 4.6.0 NVIDIA 555.58
OpenGL core profile shading language version: 4.60 NVIDIA
OpenGL compatibility profile vendor: NVIDIA Corporation
OpenGL compatibility profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL compatibility profile version: 4.6.0 NVIDIA 555.58
OpenGL compatibility profile shading language version: 4.60 NVIDIA
OpenGL ES profile vendor: NVIDIA Corporation
OpenGL ES profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL ES profile version: OpenGL ES 3.2 NVIDIA 555.58
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Device #1:

Platform Device platform:
libEGL warning: egl: failed to create dri2 screen
libEGL warning: egl: failed to create dri2 screen
libEGL warning: egl: failed to create dri2 screen
eglinfo: eglInitialize failed

Device #2:

Platform Device platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
OpenGL core profile vendor: Intel
OpenGL core profile renderer: Mesa Intel(R) Graphics (ADL GT2)
OpenGL core profile version: 4.6 (Core Profile) Mesa 24.1.2-arch1.1
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: Intel
OpenGL compatibility profile renderer: Mesa Intel(R) Graphics (ADL GT2)
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 24.1.2-arch1.1
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: Intel
OpenGL ES profile renderer: Mesa Intel(R) Graphics (ADL GT2)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 24.1.2-arch1.1
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Device #3:

Platform Device platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
OpenGL core profile vendor: Mesa
OpenGL core profile renderer: llvmpipe (LLVM 17.0.6, 256 bits)
OpenGL core profile version: 4.5 (Core Profile) Mesa 24.1.2-arch1.1
OpenGL core profile shading language version: 4.50
OpenGL compatibility profile vendor: Mesa
OpenGL compatibility profile renderer: llvmpipe (LLVM 17.0.6, 256 bits)
OpenGL compatibility profile version: 4.5 (Compatibility Profile) Mesa 24.1.2-arch1.1
OpenGL compatibility profile shading language version: 4.50
OpenGL ES profile vendor: Mesa
OpenGL ES profile renderer: llvmpipe (LLVM 17.0.6, 256 bits)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 24.1.2-arch1.1
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

glxinfo -B:

                                               
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Mesa (0xffffffff)
    Device: llvmpipe (LLVM 17.0.6, 256 bits) (0xffffffff)
    Version: 24.1.2
    Accelerated: no
    Video memory: 15648MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 4.5
    Max compat profile version: 4.5
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.2
Memory info (GL_ATI_meminfo):
    VBO free memory - total: 21 MB, largest block: 21 MB
    VBO free aux. memory - total: 13761 MB, largest block: 13761 MB
    Texture free memory - total: 21 MB, largest block: 21 MB
    Texture free aux. memory - total: 13761 MB, largest block: 13761 MB
    Renderbuffer free memory - total: 21 MB, largest block: 21 MB
    Renderbuffer free aux. memory - total: 13761 MB, largest block: 13761 MB
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 282790 MB
    Total available memory: 298438 MB
    Currently available dedicated video memory: 21 MB
OpenGL vendor string: Mesa
OpenGL renderer string: llvmpipe (LLVM 17.0.6, 256 bits)
OpenGL core profile version string: 4.5 (Core Profile) Mesa 24.1.2-arch1.1
OpenGL core profile shading language version string: 4.50
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.5 (Compatibility Profile) Mesa 24.1.2-arch1.1
OpenGL shading language version string: 4.50
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.2 Mesa 24.1.2-arch1.1
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

vulkaninfo --summary:

WARNING: [Loader Message] Code 0 : loader_add_layer_properties: 'layers' tag not supported until file version 1.0.1, but /usr/share/vulkan/implicit_layer.d/nvidia_layers.json is reporting version 1
==========
VULKANINFO
==========

Vulkan Instance Version: 1.3.279


Instance Extensions: count = 23
-------------------------------
VK_EXT_acquire_drm_display             : extension revision 1
VK_EXT_acquire_xlib_display            : extension revision 1
VK_EXT_debug_report                    : extension revision 10
VK_EXT_debug_utils                     : extension revision 2
VK_EXT_direct_mode_display             : extension revision 1
VK_EXT_display_surface_counter         : extension revision 1
VK_EXT_surface_maintenance1            : extension revision 1
VK_EXT_swapchain_colorspace            : extension revision 4
VK_KHR_device_group_creation           : extension revision 1
VK_KHR_display                         : extension revision 23
VK_KHR_external_fence_capabilities     : extension revision 1
VK_KHR_external_memory_capabilities    : extension revision 1
VK_KHR_external_semaphore_capabilities : extension revision 1
VK_KHR_get_display_properties2         : extension revision 1
VK_KHR_get_physical_device_properties2 : extension revision 2
VK_KHR_get_surface_capabilities2       : extension revision 1
VK_KHR_portability_enumeration         : extension revision 1
VK_KHR_surface                         : extension revision 25
VK_KHR_surface_protected_capabilities  : extension revision 1
VK_KHR_wayland_surface                 : extension revision 6
VK_KHR_xcb_surface                     : extension revision 6
VK_KHR_xlib_surface                    : extension revision 6
VK_LUNARG_direct_driver_loading        : extension revision 1

Instance Layers: count = 9
--------------------------
VK_LAYER_KHRONOS_validation       Khronos Validation Layer     1.3.275  version 1
VK_LAYER_LUNARG_api_dump          LunarG API dump layer        1.3.250  version 2
VK_LAYER_LUNARG_monitor           Execution Monitoring Layer   1.3.250  version 1
VK_LAYER_LUNARG_screenshot        LunarG image capture layer   1.3.250  version 1
VK_LAYER_NV_optimus               NVIDIA Optimus layer         1.3.278  version 1
VK_LAYER_VALVE_steam_fossilize_32 Steam Pipeline Caching Layer 1.3.207  version 1
VK_LAYER_VALVE_steam_fossilize_64 Steam Pipeline Caching Layer 1.3.207  version 1
VK_LAYER_VALVE_steam_overlay_32   Steam Overlay Layer          1.3.207  version 1
VK_LAYER_VALVE_steam_overlay_64   Steam Overlay Layer          1.3.207  version 1

Devices:
========
GPU0:
	apiVersion         = 1.3.278
	driverVersion      = 555.58.0.0
	vendorID           = 0x10de
	deviceID           = 0x24a0
	deviceType         = PHYSICAL_DEVICE_TYPE_DISCRETE_GPU
	deviceName         = NVIDIA GeForce RTX 3070 Ti Laptop GPU
	driverID           = DRIVER_ID_NVIDIA_PROPRIETARY
	driverName         = NVIDIA
	driverInfo         = 555.58
	conformanceVersion = 1.3.8.0
	deviceUUID         = b4820f95-4f0b-a65e-9ba8-73516eaccd8f
	driverUUID         = fbcd7e97-91e7-57e7-a557-58c0355c962c

paru -Q:

abseil-cpp 20240116.2-2
acl 2.3.2-1
acpi 1.7-3
adobe-source-code-pro-fonts 2.042u+1.062i+1.026vf-1
adwaita-cursors 46.2-1
adwaita-icon-theme 46.2-1
adwaita-icon-theme-legacy 46.2-1
alsa-card-profiles 1:1.2.0-2
alsa-lib 1.2.12-1
alsa-plugins 1:1.2.12-2
alsa-topology-conf 1.2.5.1-3
alsa-ucm-conf 1.2.12-1
alsa-utils 1.2.12-1
android-tools 35.0.1-2
android-udev 20240625-1
aom 3.9.1-1
appstream 1.0.3-1
apulse 0.1.13-1
archlinux-keyring 20240609-1
argon2 20190702-5
asusctl 6.0.11.r0.gf14d1ad-1
at-spi2-core 2.52.0-1
attr 2.5.2-1
audit 4.0.1-3
autoconf 2.72-1
automake 1.16.5-2
avahi 1:0.8+r194+g3f79789-2
base 3-2
base-devel 1-1
bash 5.2.026-2
bc 1.07.1-4
binutils 2.42+r91+g6224493e457-1
bison 3.8.2-6
bluez 5.76-1
bluez-libs 5.76-1
bluez-utils 5.76-1
boost 1.83.0-9
boost-libs 1.83.0-9
brotli 1.1.0-2
bzip2 1.0.8-6
c-ares 1.29.0-1
ca-certificates 20240618-1
ca-certificates-mozilla 3.101.1-1
ca-certificates-utils 20240618-1
cairo 1.18.0-2
cairomm-1.16 1.18.0-1
cantarell-fonts 1:0.303.1-1
cbindgen 0.26.0-2
clang 17.0.6-2
clang16 16.0.6-1
cmake 3.29.6-1
compiler-rt 17.0.6-2
compiler-rt16 16.0.6-1
coppwr-bin 1.6.0-1
coreutils 9.5-1
cppdap 1.58.0-2
cpupower 6.9-1
cryptsetup 2.7.3-1
cunit 2.1.3-3
curl 8.8.0-1
dav1d 1.4.3-1
db5.3 5.3.28-5
dbus 1.14.10-2
dbus-broker 36-2
dbus-broker-units 36-2
dbus-glib 0.112-3
dconf 0.40.0-2
debugedit 5.0-6
default-cursors 2-1
desktop-file-utils 0.27-1
device-mapper 2.03.24-1
diffutils 3.10-1
discord 0.0.58-1
dkms 3.0.12-1
dotnet-host 8.0.6.sdk106-1
dotnet-runtime 8.0.6.sdk106-1
dotnet-runtime-6.0 6.0.31.sdk131-1
dotnet-sdk 8.0.6.sdk106-1
dotnet-sdk-6.0 6.0.31.sdk131-1
dotnet-targeting-pack 8.0.6.sdk106-1
dotnet-targeting-pack-6.0 6.0.31.sdk131-1
double-conversion 3.3.0-2
downgrade 11.3.0-1
duktape 2.7.0-6
e2fsprogs 1.47.1-4
efibootmgr 18-3
efivar 39-1
egl-wayland 2:1.1.13-2
eglexternalplatform 1.1-3
eigen 3.4.0-2
elfutils 0.191-3
expat 2.6.2-1
extra-cmake-modules 6.3.0-1
fakeroot 1.35-1
fastfetch 2.17.1-2
faudio-debug 24.04-1
fcft 3.1.8-1
fennel 1.5.0-1
ffmpeg 2:7.0.1-1
fftw 3.3.10-7
file 5.45-1
filesystem 2024.04.07-1
findutils 4.10.0-1
firefox 127.0.2-1
flac 1.4.3-1
flex 2.6.4-5
fluidsynth 2.3.5-1
fontconfig 2:2.15.0-2
foot 1.17.2-1
freetype2 2.13.2-2
fribidi 1.0.15-1
fuse-common 3.16.2-1
fuse2 2.9.9-4
fzf 0.53.0-1
gamemode 1.8.1-2
gawk 5.3.0-1
gc 8.2.6-1
gcc 14.1.1+r58+gfc9fb69ad62-1
gcc-fortran 14.1.1+r58+gfc9fb69ad62-1
gcc-libs 14.1.1+r58+gfc9fb69ad62-1
gconf 3.2.6+11+g07808097-10
gdb 14.2-2
gdb-common 14.2-2
gdbm 1.23-2
gdk-pixbuf2 2.42.12-1
gettext 0.22.5-1
ghc-filesystem 1.5.14-1
giflib 5.2.2-1
git 2.45.2-1
git-credential-manager-core-bin 2.5.0-1
glances 4.1.1-1
glib-networking 1:2.80.0-1
glib2 2.80.3-2
glibc 2.39+r52+gf8e4623421-1
glibmm-2.68 2.80.0-1
glslang 14.2.0-1
gmp 6.3.0-2
gnu-netcat 0.7.1-10
gnupg 2.4.5-1
gnutls 3.8.5-1
gobject-introspection-runtime 1.80.1-3
gperftools 2.15-1
gpgme 1.23.2-4
gpm 1.20.7.r38.ge82d1a6-5
gptfdisk 1.0.10-1
graphene 1.10.8-1
graphite 1:1.3.14-3
grep 3.11-1
groff 1.23.0-6
grub 2:2.12-2
gsettings-desktop-schemas 46.0-2
gsm 1.0.22-1
gssdp 1.6.3-1
gst-plugins-bad-libs 1.24.5-2
gst-plugins-base-libs 1.24.5-2
gstreamer 1.24.5-2
gtest 1.14.0-1
gtk-update-icon-cache 1:4.14.4-1
gtk3 1:3.24.42-1
gtk4 1:4.14.4-1
gtkmm-4.0 4.14.0-1
guile 3.0.10-1
gupnp 1:1.6.6-1
gupnp-igd 1.6.0-1
gzip 1.13-2
harfbuzz 9.0.0-1
hicolor-icon-theme 0.18-1
hidapi 0.14.0-2
highway 1.2.0-1
htop 3.3.0-3
hwdata 0.383-1
hwloc 2.10.0-1
iana-etc 20240412-1
icu 75.1-1
imagemagick 7.1.1.34-1
imath 3.1.11-2
intel-ucode 20240531-1
inxi 3.3.35.1-1
iproute2 6.9.0-1
iptables 1:1.8.10-1
iputils 20240117-1
iso-codes 4.16.0-1
jansson 2.14-4
java-environment-common 3-5
java-runtime-common 3-5
jbigkit 2.1-8
jdk17-openjdk 17.0.11.u9-1
jq 1.7.1-2
jre8-openjdk-headless 8.412.u08-1
json-c 0.17-1
json-glib 1.8.0-2
jsoncpp 1.9.5-2
kanshi 1.7.0-1
kbd 2.6.4-1
keyutils 1.6.3-2
kmod 32-1
kotlin 2.0.0-1
krb5 1.21.2-2
l-smash 2.14.5-3
ladspa 1.17-4
lame 3.100-4
lcms2 2.16-1
less 1:643-2
lib32-alsa-lib 1.2.12-1
lib32-alsa-plugins 1.2.12-1
lib32-brotli 1.1.0-1
lib32-bzip2 1.0.8-3
lib32-curl 8.8.0-1
lib32-dbus 1.14.10-2
lib32-e2fsprogs 1.47.1-1
lib32-expat 2.6.2-1
lib32-gcc-libs 14.1.1+r58+gfc9fb69ad62-1
lib32-glib2 2.80.3-1
lib32-glibc 2.39+r52+gf8e4623421-1
lib32-icu 75.1-1
lib32-keyutils 1.6.3-2
lib32-krb5 1.21.2-1
lib32-libcap 2.70-1
lib32-libdrm 2.4.120-1
lib32-libelf 0.191-1
lib32-libffi 3.4.6-1
lib32-libgcrypt 1.11.0-1
lib32-libglvnd 1.7.0-1
lib32-libgpg-error 1.49-1
lib32-libidn2 2.3.7-1
lib32-libldap 2.6.8-1
lib32-libnghttp2 1.62.1-1
lib32-libnghttp3 1.4.0-1
lib32-libnsl 2.0.1-1
lib32-libpciaccess 0.18.1-1
lib32-libpipewire 1:1.2.0-1
lib32-libpsl 0.21.5-1
lib32-libssh2 1.11.0-1
lib32-libtasn1 4.19.0-2
lib32-libtirpc 1.3.4-1
lib32-libunistring 1.2-1
lib32-libunwind 1.8.1-1
lib32-libx11 1.8.9-1
lib32-libxau 1.0.11-1
lib32-libxcb 1.17.0-1
lib32-libxcrypt 4.4.36-1
lib32-libxcrypt-compat 4.4.36-1
lib32-libxdmcp 1.1.5-1
lib32-libxext 1.3.6-1
lib32-libxfixes 6.0.1-1
lib32-libxkbcommon 1.7.0-2
lib32-libxml2 2.13.1-1
lib32-libxshmfence 1.3.2-1
lib32-libxss 1.2.4-1
lib32-libxxf86vm 1.1.5-1
lib32-llvm-libs 17.0.6-2
lib32-lm_sensors 1:3.6.0.r41.g31d1f125-2
lib32-mesa 1:24.1.2-1
lib32-mesa-utils 9.0.0-1
lib32-ncurses 6.5-1
lib32-nspr 4.35-3
lib32-nss 3.101.1-1
lib32-nvidia-utils 555.58-1
lib32-openssl 1:3.3.1-1
lib32-p11-kit 0.25.3-1
lib32-pam 1.6.1-1
lib32-pcre2 10.44-1
lib32-pipewire 1:1.2.0-1
lib32-sqlite 3.46.0-1
lib32-systemd 256.1-1
lib32-util-linux 2.40.1-1
lib32-vulkan-icd-loader 1.3.279-1
lib32-wayland 1.22.0-1
lib32-xz 5.6.2-1
lib32-zlib 1.3.1-1
lib32-zstd 1.5.6-1
libadwaita 1:1.5.2-1
libaio 0.3.113-3
libarchive 3.7.4-1
libass 0.17.2-1
libassuan 2.5.7-2
libasyncns 1:0.8+r3+g68cd5af-2
libavc1394 0.5.4-6
libbluray 1.3.4-1
libbpf 1.4.2-1
libbs2b 3.1.0-8
libc++ 17.0.6-1
libc++abi 17.0.6-1
libcamera 0.3.0-1
libcamera-ipa 0.3.0-1
libcanberra 1:0.30+r2+gc0620e4-3
libcap 2.70-1
libcap-ng 0.8.5-2
libcdio 2.1.0-3
libcdio-paranoia 10.2+2.0.2-1
libclc 17.0.6-1
libcloudproviders 0.3.6-1
libcolord 1.4.7-2
libcups 2:2.4.10-1
libdaemon 0.14-5
libdatrie 0.2.13-4
libdecor 0.2.2-1
libdeflate 1.20-2
libdisplay-info 0.2.0-1
libdovi 3.3.0-2
libdrm 2.4.122-1
libdvdnav 6.1.1-2
libdvdread 6.1.3-2
libedit 20240517_3.1-1
libei 1.2.1-1
libelf 0.191-3
libepoxy 1.5.10-2
libevdev 1.13.2-1
libevent 2.1.12-4
libfabric 1.21.0-1
libfdk-aac 2.0.3-1
libffi 3.4.6-1
libfontenc 1.1.8-1
libfreeaptx 0.1.1-1
libgcrypt 1.11.0-2
libgirepository 1.80.1-3
libglvnd 1.7.0-1
libgpg-error 1.50-1
libgudev 238-1
libice 1.1.1-2
libidn2 2.3.7-1
libiec61883 1.2.0-7
libimobiledevice 1.3.0-13
libimobiledevice-glue 1.3.0-1
libinih 58-1
libinput 1.26.1-1
libinstpatch 1.1.6-2
libisl 0.26-2
libjpeg-turbo 3.0.3-1
libjxl 0.10.3-1
libksba 1.6.7-1
liblc3 1.1.1-1
libldac 2.0.2.3-1
libldap 2.6.8-1
libliftoff 0.5.0-1
liblqr 0.4.2-3
libluv 1.48.0_2-1
libmm-glib 1.22.0-1
libmnl 1.0.5-2
libmodplug 0.8.9.0-5
libmpc 1.3.1-1
libmtp 1.1.21-1
libmysofa 1.3.2-1
libndp 1.8-2
libnet 2:1.3-1
libnetfilter_conntrack 1.0.9-2
libnewt 0.52.24-2
libnfnetlink 1.0.2-2
libnftnl 1.2.6-1
libnghttp2 1.62.1-1
libnghttp3 1.4.0-1
libngtcp2 1.6.0-1
libnice 0.1.22-1
libnl 3.9.0-1
libnm 1.48.2-1
libnotify 0.8.3-1
libnsl 2.0.1-1
libogg 1.3.5-2
libomxil-bellagio 0.9.3-4
libopenmpt 0.7.8-1
libp11-kit 0.25.3-1
libpcap 1.10.4-1
libpciaccess 0.18.1-2
libpgm 5.3.128-3
libpipewire 1:1.2.0-2
libplacebo 6.338.2-7
libplist 2.6.0-1
libpng 1.6.43-1
libproxy 0.5.7-1
libpsl 0.21.5-2
libpulse 17.0-3
libraqm 0.10.1-1
libraw1394 2.1.2-4
librsvg 2:2.58.1-1
libsamplerate 0.2.2-2
libsasl 2.1.28-4
libscfg 0.1.1-2
libseccomp 2.5.5-3
libsecret 0.21.4-1
libsigc++-3.0 3.6.0-1
libsixel 1.10.3-5
libsm 1.2.4-1
libsndfile 1.2.2-2
libsodium 1.0.20-1
libsoup3 3.4.4-1
libsoxr 0.1.3-3
libssh 0.10.6-2
libssh2 1.11.0-1
libstemmer 2.2.0-2
libsysprof-capture 46.0-3
libtasn1 4.19.0-1
libteam 1.32-1
libthai 0.1.29-3
libtheora 1.1.1-6
libtiff 4.6.0-5
libtirpc 1.3.4-1
libtool 2.5.0+14+g9a4a0261-1
libtraceevent 1:1.8.2-2
libudev0-shim 1-4
libunibreak 6.1-1
libunistring 1.2-1
libunwind 1.8.1-3
libusb 1.0.27-1
libusbmuxd 2.1.0-1
libutempter 1.2.1-4
libutf8proc 2.9.0-1
libuv 1.48.0-2
libva 2.21.0-1
libva-nvidia-driver 0.0.12-1
libva-utils 2.22.0-1
libvarlink 23-1
libvdpau 1.5-2
libvdpau-va-gl 0.4.2-3
libverto 0.3.2-5
libvorbis 1.3.7-3
libvpl 2.12.0-1
libvpx 1.14.0-1
libvterm 0.3.3-1
libwacom 2.12.2-1
libwebp 1.4.0-1
libwireplumber 0.5.5-1
libx11 1.8.9-1
libxau 1.0.11-2
libxcb 1.17.0-1
libxcomposite 0.4.6-1
libxcrypt 4.4.36-1
libxcrypt-compat 4.4.36-1
libxcursor 1.2.2-1
libxcvt 0.1.2-1
libxdamage 1.1.6-1
libxdg-basedir 1.2.3-2
libxdmcp 1.1.5-1
libxext 1.3.6-1
libxfixes 6.0.1-1
libxfont2 2.0.6-2
libxft 2.3.8-1
libxi 1.8.1-1
libxinerama 1.1.5-1
libxkbcommon 1.7.0-2
libxkbcommon-x11 1.7.0-2
libxkbfile 1.1.3-1
libxml2 2.13.1-1
libxmlb 0.3.19-1
libxmu 1.2.1-1
libxpresent 1.0.1-1
libxrandr 1.5.4-1
libxrender 0.9.11-1
libxshmfence 1.3.2-1
libxslt 1.1.41-1
libxss 1.2.4-1
libxt 1.3.0-1
libxtst 1.2.4-1
libxv 1.0.12-1
libxxf86vm 1.1.5-1
libyaml 0.2.5-2
libzip 1.10.1-1
licenses 20240206-1
lilv 0.24.24-2
linux-api-headers 6.8-1
linux-firmware 20240610.9c10a208-1
linux-firmware-whence 20240610.9c10a208-1
linux-zen 6.9.7.zen1-1
linux-zen-headers 6.9.7.zen1-1
lld 17.0.6-1
lld16 16.0.6-1
llvm-libs 17.0.6-5
llvm16-libs 16.0.6-1
lm_sensors 1:3.6.0.r41.g31d1f125-2
lsb-release 2.0.r53.a86f885-1
lsof 4.99.3-2
lswt 2.0.0-1
lua 5.4.7-1
lua51-lpeg 1.1.0-2
lua53 5.3.6-2
luajit 2.1.1716656478-1
luarocks 3.11.1-1
lv2 1.18.10-1
lvm2 2.03.24-1
lz4 1:1.9.4-3
lzo 2.10-5
m4 1.4.19-3
mailcap 2.1.54-1
make 4.4.1-2
mako 1.9.0-1
maven 3.9.8-1
mbedtls2 2.28.8-3
md4c 0.5.2-1
mesa 1:24.1.2-1
mesa-utils 9.0.0-4
meson 1.4.1-1
minizip 1:1.3.1-2
mkinitcpio 39.2-2
mkinitcpio-busybox 1.36.1-1
mobile-broadband-provider-info 20240407-1
mpdecimal 4.0.0-2
mpfr 4.2.1-3
mpg123 1.32.6-1
mpv 1:0.38.0-5
msgpack-c 5.0.0-2
mtdev 1.1.6-2
mujs 1.3.5-1
nano 8.0-1
nasm 2.16.03-1
ncurses 6.5-3
neovim 0.10.0-5
nethogs 0.8.7-1
netstandard-targeting-pack 8.0.6.sdk106-1
nettle 3.10-1
networkmanager 1.48.2-1
networkmanager-dmenu-git r201.6ad647e-1
ngrok 3.12.0-1
ninja 1.12.1-1
nlohmann-json 3.11.2-3
nmap 7.95-1
node-gyp 10.1.0-3
nodejs-lts-hydrogen 18.20.3-1
nodejs-nopt 7.2.0-1
npm 10.8.1-1
npth 1.7-1
nspr 4.35-3
nss 3.101.1-1
ntfs-3g 2022.10.3-1
ntp 4.2.8.p18-1
numactl 2.0.18-1
nvidia-dkms 555.58-2
nvidia-utils 555.58-2
ocl-icd 2.3.2-1
oniguruma 6.9.9-1
openal 1.23.1-2
opencore-amr 0.1.6-1
openexr 3.2.4-1
openjpeg2 2.5.2-1
openmpi 5.0.3-1
openpmix 5.0.2-1
openssl 3.3.1-1
openucx 1.17.0-1
opus 1.5.2-1
orc 0.4.38-1
os-prober 1.81-1
p11-kit 0.25.3-1
pacman 6.1.0-3
pacman-contrib 1.10.6-1
pacman-mirrorlist 20231001-1
pahole 1:1.27-1
pam 1.6.1-2
pambase 20230918-1
pango 1:1.54.0-1
pangomm-2.48 2.52.0-1
paru 2.0.3-1
pass 1.7.4-5
patch 2.7.6-10
pavucontrol 1:6.0-1
pciutils 3.13.0-1
pcre 8.45-4
pcre2 10.44-1
pcsclite 2.2.3-1
perf 6.9-1
perl 5.38.2-1
perl-clone 0.46-2
perl-encode-locale 1.05-11
perl-error 0.17029-5
perl-file-listing 6.16-2
perl-html-parser 3.82-1
perl-html-tagset 3.24-1
perl-http-cookiejar 0.014-1
perl-http-cookies 6.11-1
perl-http-daemon 6.16-2
perl-http-date 6.06-1
perl-http-message 6.46-1
perl-http-negotiate 6.01-12
perl-io-html 1.004-4
perl-libwww 6.77-1
perl-lwp-mediatypes 6.04-4
perl-mailtools 2.21-7
perl-net-http 6.23-2
perl-timedate 2.33-5
perl-try-tiny 0.31-3
perl-uri 5.28-1
perl-www-robotrules 6.02-12
pinentry 1.3.0-1
pipewire 1:1.2.0-2
pipewire-alsa 1:1.2.0-2
pipewire-audio 1:1.2.0-2
pipewire-jack 1:1.2.0-2
pipewire-session-manager 1:1.2.0-2
pixman 0.43.4-1
pkgconf 2.1.1-1
playerctl 2.4.1-3
polkit 124-2
popt 1.19-1
portaudio 1:19.7.0-2
power-profiles-daemon 0.21-1
procps-ng 4.0.4-3
protobuf 27.2-1
proxychains-ng 4.17-2
prrte 3.0.5-3
psmisc 23.7-1
python 3.12.4-1
python-annotated-types 0.7.0-1
python-anyio 4.4.0-1
python-attrs 23.2.0-3
python-autocommand 2.2.2-6
python-bottle 0.12.25-5
python-build 1.2.1-3
python-certifi 2024.06.02-1
python-cffi 1.16.0-2
python-charset-normalizer 3.3.2-2
python-cryptography 42.0.6-1
python-defusedxml 0.7.1-6
python-docutils 1:0.21.2-1
python-fastjsonschema 2.20.0-1
python-future 1.0.0-1
python-gobject 3.48.2-1
python-h11 0.14.0-3
python-httpcore 1.0.5-1
python-httpx 0.27.0-1
python-idna 3.7-1
python-importlib-metadata 7.1.0-1
python-inflect 7.2.1-2
python-iniconfig 2.0.0-5
python-installer 0.7.0-8
python-jaraco.context 4.3.0-4
python-jaraco.functools 4.0.1-1
python-jaraco.text 3.12.1-1
python-jedi 0.19.1-2
python-mako 1.3.5-1
python-markupsafe 2.1.5-2
python-more-itertools 10.2.0-2
python-nose 1.3.7-16
python-ordered-set 4.1.0-5
python-orjson 3.10.5-1
python-packaging 24.0-1
python-parso 1:0.8.4-2
python-pip 24.0-2
python-platformdirs 4.2.2-1
python-pluggy 1.5.0-1
python-ply 3.11-13
python-psutil 5.9.8-4
python-pycparser 2.22-2
python-pydantic 2.7.4-1
python-pydantic-core 1:2.18.4-1
python-pygments 2.18.0-1
python-pyproject-hooks 1.1.0-1
python-pytest 1:8.2.2-1
python-requests 2.32.3-1
python-setuptools 1:69.0.3-6
python-setuptools-scm 8.1.0-1
python-sniffio 1.3.1-3
python-tekore 5.1.1-1
python-tomli 2.0.1-4
python-tqdm 4.66.4-1
python-trove-classifiers 2024.5.22-1
python-typeguard 4.3.0-1
python-typing_extensions 4.12.2-1
python-ujson 5.10.0-1
python-urllib3 1.26.18-3
python-validate-pyproject 0.16-1
python-wheel 0.43.0-4
python-zipp 3.18.1-2
qt5-base 5.15.14+kde+r141-1
qt5-declarative 5.15.14+kde+r28-1
qt5-location 5.15.14+kde+r7-1
qt5-svg 5.15.14+kde+r5-1
qt5-translations 5.15.14-1
qt5-webchannel 5.15.14+kde+r3-1
qt5-webengine 5.15.17-5
qt6-doc 6.7.2-1
qt6-examples 6.7.2-1
r2modman-appimage 3.1.49-1
rav1e 0.7.1-1
readline 8.2.010-1
rhash 1.4.4-1
rofi-wayland 1.7.5+wayland3-2
rubberband 3.3.0-1
rust 1:1.79.0-1
rust-bindgen 0.69.4-1
sbc 2.0-1
scdoc 1.11.3-1
screenfetch 3.9.1-3
sdl2 2.30.4-1
seatd 0.8.0-1
sed 4.9-3
semver 7.6.2-1
serd 0.32.2-1
setconf 0.7.7-2
shaderc 2024.1-1
shadow 4.15.1-2
shared-mime-info 2.4-1
slang 2.3.3-2
snappy 1.1.10-1
sof-firmware 2024.03-1
sord 0.16.16-1
sound-theme-freedesktop 0.8-5
source-highlight 3.1.9-12
speex 1.2.1-1
speexdsp 1.2.1-1
spirv-tools 2024.2-1
sqlite 3.46.0-1
sratom 0.6.16-1
srt 1.5.3-1
startup-notification 0.12-8
steam 1.0.0.79-2
sudo 1.9.15.p5-1
svt-av1 2.1.0-1
sway 1:1.9-4
swaybg 1.2.1-1
systemd 256.1-1
systemd-libs 256.1-1
systemd-resolvconf 256.1-1
systemd-sysvcompat 256.1-1
tar 1.35-2
tdb 1.4.10-3
testdisk 7.2-1
texinfo 7.1-2
thin-provisioning-tools 1.0.12-1
tllist 1.1.0-1
tmux 3.4-8
tpm2-tss 4.0.1-1
tracker3 3.7.3-2
tree 2.1.1-1
tree-sitter 0.22.6-1
tree-sitter-bash 0.21.0-2
tree-sitter-c 0.21.4-1
tree-sitter-lua 0.1.0-2
tree-sitter-markdown 0.2.3-2
tree-sitter-python 0.21.0-2
tree-sitter-query 0.3.0-1
tree-sitter-vimdoc 3.0.0-1
tslib 1.23-1
ttf-font-awesome 6.5.2-1
ttf-liberation 2.1.5-1
ttf-mononoki-nerd 3.2.1-2
tzdata 2024a-2
uchardet 0.0.8-2
unibilium 2.1.1-2
unzip 6.0-21
upower 1.90.4-1
usbmuxd 1.1.1-3
usbutils 017-1
util-linux 2.40.1-1
util-linux-libs 2.40.1-1
v4l-utils 1.26.1-1
v4l2loopback-dkms 0.13.2-1
vapoursynth R68-1
vdpauinfo 1.5-1
vid.stab 1.1.1-1
vmaf 3.0.0-1
vulkan-extra-layers 1.3.250.0-1
vulkan-extra-tools 1.3.250.0-1
vulkan-headers 1:1.3.285-1
vulkan-html-docs 1:1.3.279-1
vulkan-icd-loader 1.3.285-1
vulkan-tools 1.3.269-1
vulkan-utility-libraries 1.3.273-1
vulkan-validation-layers 1.3.275-1
wayland 1.23.0-1
wayland-protocols 1.36-1
wdisplays 1.1.1-1
webrtc-audio-processing-1 1.3-2
wget 1.24.5-3
which 2.21-6
wireguard-go-git 0.0.20230223.r46.g12269c2-1
wireguard-tools 1.0.20210914-2
wireplumber 0.5.5-1
wlr-randr 0.4.1-4
wlroots-nvidia 0.17.4-1
wpa_supplicant 2:2.10-8
x264 3:0.164.r3108.31e19f9-2
x265 3.6-1
xcb-proto 1.17.0-2
xcb-util 0.4.1-1
xcb-util-cursor 0.1.5-1
xcb-util-errors 1.0.1-1
xcb-util-image 0.4.1-2
xcb-util-keysyms 0.4.1-4
xcb-util-renderutil 0.3.10-1
xcb-util-wm 0.4.2-1
xdg-user-dirs 0.18-1
xdg-utils 1.2.1-1
xf86-input-libinput 1.4.0-1
xkeyboard-config 2.42-1
xorg-font-util 1.4.1-1
xorg-fonts-encodings 1.1.0-1
xorg-server 21.1.13-1
xorg-server-common 21.1.13-1
xorg-setxkbmap 1.3.4-1
xorg-xkbcomp 1.4.7-1
xorg-xprop 1.2.7-1
xorg-xrandr 1.5.2-1
xorg-xset 1.2.5-1
xorg-xwayland 24.1.0-1
xorgproto 2024.1-2
xp-pen-tablet 4.0.0-240329
xtrans 1.5.0-1
xvidcore 1.3.7-2
xxhash 0.8.2-1
xz 5.6.2-1
yarn 1.22.22-1
yay-bin 12.3.5-1
yay-bin-debug 12.3.5-1
yt-dlp 2024.07.01-1
yyjson 0.9.0-3
zenity 4.0.1-1
zeromq 4.3.5-2
zig 0.12.1-1
zimg 3.0.5-1
zip 3.0-11
zix 0.4.2-2
zlib 1:1.3.1-2
zsh 5.9-5
zstd 1.5.6-1

cat /etc/environment:

#
# This file is parsed by pam_env module
#
# Syntax: simple "KEY=VAL" pairs on separate lines
#

# https://github.com/crispyricepc/sway-nvidia/blob/main/wlroots-env-nvidia.sh

GBM_BACKEND=nvidia-drm
#__GL_GSYNC_ALLOWED=0
#__GL_VRR_ALLOWED=0
__GLX_VENDOR_LIBRARY_NAME=nvidia
XWAYLAND_NO_GLAMOR=1
EGL_PLATFORM=wayland

WLR_NO_HARDWARE_CURSORS=1

XDG_SESSION_TYPE=wayland
MOZ_ENABLE_WAYLAND=1

# https://wiki.archlinux.org/title/Hardware_video_acceleration#Configuring_VA-API
#LIBVA_DRIVER_NAME=nvidia

DRI_PRIME=pci-0000_01_00_0
__VK_LAYER_NV_optimus=NVIDIA_only

I'm using nvidia-dkms 555.58-2 and wlroots-nvidia 0.17.4 instead of the regular wlroots 0.17.4.

I've set up `MODULES=(nvidia nvidia_modeset nvidia_uvm nvidia_drm)` and removed `kms` from `HOOKS` in my /etc/mkinitcpio.conf. I've added `nvidia_drm.modeset=1 nvidia_drm.fbdev=1` to my `GRUB_CMDLINE_LINUX_DEFAULT` in /etc/default/grub.

Trying to run glxgears reports about 40fps when run on a 240hz monitor. Trying to run eglgears_x11 results in a segfault. Trying to run eglgears_wayland seems smooth, but it puts a `libEGL warning: egl: failed to create dri2 screen` in the console, and I can't see the framerate and suspect that it's lower than it should be. Steam games run with ~20fps seemingly no matter what they are - tested this with Stardew Valley, which has a Linux native version, and Elden Ring, which runs through Proton.

I've done a bunch of research, and the closest issue to mine that I found is here - https://forums.developer.nvidia.com/t/h … een/262167 - and the author of the thread mentioned it was unexpectedly working as of version 545 of the nvidia drivers as the last post in the thread.

I'd appreciate any help I can get; I've been bashing my head against a linux wall for the past week trying to get nvidia to work with sway. Please let me know if I'm missing info.

Last edited by dureu (2024-07-09 12:34:36)

Offline

#2 2024-07-08 14:13:18

seth
Member
Registered: 2012-09-03
Posts: 60,422

Re: Wayland using llvmpipe as OpenGL renderer instead of nvidia graphics

Offline

#3 2024-07-08 15:03:09

dureu
Member
From: MI, USA
Registered: 2024-07-08
Posts: 5

Re: Wayland using llvmpipe as OpenGL renderer instead of nvidia graphics

I've set the VK_DRIVER_FILES environment variable to /usr/share/vulkan/icd.d/nvidia_icd.json and rebooted. This didn't seem to change anything.

I'm not sure if they're Vulkan drivers like the wiki article mentions to check for, but I tried uninstalling vulkan-headers, vulkan-extra-layers, vulkan-utility-libraries, then restarting, but that also didn't seem to change anything except for the Instance Layers section of `vulkaninfo --summary` which now only has 5 items.

`eglinfo -B` still reads the same as before with the Wayland platform's renderer being zink Vulkan 1.3 and the X11 platform's renderer being llvmpipe. `glxinfo -B` is different:

name of display: :0
display: :0  screen: 0
direct rendering: Yes
Memory info (GL_NVX_gpu_memory_info):
    Dedicated video memory: 8192 MB
    Total available memory: 8192 MB
    Currently available dedicated video memory: 7732 MB
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 555.58
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.6.0 NVIDIA 555.58
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)

OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 555.58
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20

but I tested glxgears and Stardew Valley which performed poorly like they had before.

Offline

#4 2024-07-08 21:16:47

seth
Member
Registered: 2012-09-03
Posts: 60,422

Re: Wayland using llvmpipe as OpenGL renderer instead of nvidia graphics

but I tested glxgears and Stardew Valley which performed poorly like they had before.

What does that mean?
The glxinfo output suggest that glxgears will run on the nvida GPU/driver (eglgears might be a different matter) and also you can expect glxgears to run some thousand FPS on your CPU alone.
What if you run "__GL_SYNC_TO_VBLANK=0 glxgears"?
Might be a prime-sync issue…

Offline

#5 2024-07-09 03:50:49

dureu
Member
From: MI, USA
Registered: 2024-07-08
Posts: 5

Re: Wayland using llvmpipe as OpenGL renderer instead of nvidia graphics

What does that mean?

I "tested" them by briefly running them to see if things had changed and got similar framerates to before - glxgears was ~40; Stardew Valley was ~20 when I set it to fullscreen.

Maybe to note - Stardew Valley opens windowed at first, which meant it takes up a third of my screen, and when it's windowed like that it runs at 60 fps which is the maximum framerate the game will run at. I noticed that glxgears works similarly, and doesn't work properly when initially starting: When it opens in a window, the window will be completely black, and it'll give me framerates as though it's not trying to render anything (~760 fps, which is still wildly below what I'd expect). After moving the window around, it'll actually start rendering the gears and drop to ~40 fps. When it's fullscreen, there's some pretty awful tearing, and it drops to ~20 fps. This doesn't happen with eglgears_wayland, though I'm not sure that's pertinent.

I tried running "__GL_SYNC_TO_VBLANK=0 glxgears" and had almost identical results.

Here's the output of "glxinfo -B" again, in case anything's changed that I missed:

GBM platform:
EGL API version: 1.5
EGL vendor string: NVIDIA
EGL version string: 1.5
EGL client APIs: OpenGL_ES OpenGL
OpenGL core profile vendor: NVIDIA Corporation
OpenGL core profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL core profile version: 4.6.0 NVIDIA 555.58
OpenGL core profile shading language version: 4.60 NVIDIA
OpenGL compatibility profile vendor: NVIDIA Corporation
OpenGL compatibility profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL compatibility profile version: 4.6.0 NVIDIA 555.58
OpenGL compatibility profile shading language version: 4.60 NVIDIA
OpenGL ES profile vendor: NVIDIA Corporation
OpenGL ES profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL ES profile version: OpenGL ES 3.2 NVIDIA 555.58
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Wayland platform:
libEGL warning: egl: failed to create dri2 screen
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
OpenGL core profile vendor: Mesa
OpenGL core profile renderer: zink Vulkan 1.3(NVIDIA GeForce RTX 3070 Ti Laptop GPU (NVIDIA_PROPRIETARY))
OpenGL core profile version: 4.6 (Core Profile) Mesa 24.1.2-arch1.1
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: Mesa
OpenGL compatibility profile renderer: zink Vulkan 1.3(NVIDIA GeForce RTX 3070 Ti Laptop GPU (NVIDIA_PROPRIETARY))
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 24.1.2-arch1.1
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: Mesa
OpenGL ES profile renderer: zink Vulkan 1.3(NVIDIA GeForce RTX 3070 Ti Laptop GPU (NVIDIA_PROPRIETARY))
OpenGL ES profile version: OpenGL ES 3.2 Mesa 24.1.2-arch1.1
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

X11 platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
OpenGL core profile vendor: Mesa
OpenGL core profile renderer: llvmpipe (LLVM 17.0.6, 256 bits)
OpenGL core profile version: 4.5 (Core Profile) Mesa 24.1.2-arch1.1
OpenGL core profile shading language version: 4.50
OpenGL compatibility profile vendor: Mesa
OpenGL compatibility profile renderer: llvmpipe (LLVM 17.0.6, 256 bits)
OpenGL compatibility profile version: 4.5 (Compatibility Profile) Mesa 24.1.2-arch1.1
OpenGL compatibility profile shading language version: 4.50
OpenGL ES profile vendor: Mesa
OpenGL ES profile renderer: llvmpipe (LLVM 17.0.6, 256 bits)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 24.1.2-arch1.1
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Surfaceless platform:
EGL API version: 1.5
EGL vendor string: NVIDIA
EGL version string: 1.5
EGL client APIs: OpenGL_ES OpenGL
OpenGL core profile vendor: NVIDIA Corporation
OpenGL core profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL core profile version: 4.6.0 NVIDIA 555.58
OpenGL core profile shading language version: 4.60 NVIDIA
OpenGL compatibility profile vendor: NVIDIA Corporation
OpenGL compatibility profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL compatibility profile version: 4.6.0 NVIDIA 555.58
OpenGL compatibility profile shading language version: 4.60 NVIDIA
OpenGL ES profile vendor: NVIDIA Corporation
OpenGL ES profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL ES profile version: OpenGL ES 3.2 NVIDIA 555.58
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Device platform:
Device #0:

Platform Device platform:
EGL API version: 1.5
EGL vendor string: NVIDIA
EGL version string: 1.5
EGL client APIs: OpenGL_ES OpenGL
OpenGL core profile vendor: NVIDIA Corporation
OpenGL core profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL core profile version: 4.6.0 NVIDIA 555.58
OpenGL core profile shading language version: 4.60 NVIDIA
OpenGL compatibility profile vendor: NVIDIA Corporation
OpenGL compatibility profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL compatibility profile version: 4.6.0 NVIDIA 555.58
OpenGL compatibility profile shading language version: 4.60 NVIDIA
OpenGL ES profile vendor: NVIDIA Corporation
OpenGL ES profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL ES profile version: OpenGL ES 3.2 NVIDIA 555.58
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Device #1:

Platform Device platform:
libEGL warning: egl: failed to create dri2 screen
libEGL warning: egl: failed to create dri2 screen
libEGL warning: egl: failed to create dri2 screen
eglinfo: eglInitialize failed

Device #2:

Platform Device platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
OpenGL core profile vendor: Intel
OpenGL core profile renderer: Mesa Intel(R) Graphics (ADL GT2)
OpenGL core profile version: 4.6 (Core Profile) Mesa 24.1.2-arch1.1
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: Intel
OpenGL compatibility profile renderer: Mesa Intel(R) Graphics (ADL GT2)
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 24.1.2-arch1.1
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: Intel
OpenGL ES profile renderer: Mesa Intel(R) Graphics (ADL GT2)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 24.1.2-arch1.1
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Device #3:

Platform Device platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
OpenGL core profile vendor: Mesa
OpenGL core profile renderer: llvmpipe (LLVM 17.0.6, 256 bits)
OpenGL core profile version: 4.5 (Core Profile) Mesa 24.1.2-arch1.1
OpenGL core profile shading language version: 4.50
OpenGL compatibility profile vendor: Mesa
OpenGL compatibility profile renderer: llvmpipe (LLVM 17.0.6, 256 bits)
OpenGL compatibility profile version: 4.5 (Compatibility Profile) Mesa 24.1.2-arch1.1
OpenGL compatibility profile shading language version: 4.50
OpenGL ES profile vendor: Mesa
OpenGL ES profile renderer: llvmpipe (LLVM 17.0.6, 256 bits)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 24.1.2-arch1.1
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Last edited by dureu (2024-07-09 04:00:59)

Offline

#6 2024-07-09 08:02:59

dureu
Member
From: MI, USA
Registered: 2024-07-08
Posts: 5

Re: Wayland using llvmpipe as OpenGL renderer instead of nvidia graphics

Continuing to try things and writing them down here:

I've tried removing the xorg-server package (and xf86-input-libinput along with it); this didn't change anything.

Adding "glxgears -info" because I didn't realize this was a thing and maybe it's pertinent:

Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
GL_RENDERER   = NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
GL_VERSION    = 4.6.0 NVIDIA 555.58
GL_VENDOR     = NVIDIA Corporation
GL_EXTENSIONS = GL_AMD_multi_draw_indirect GL_AMD_seamless_cubemap_per_texture GL_AMD_vertex_shader_viewport_index GL_AMD_vertex_shader_layer GL_ARB_arrays_of_arrays GL_ARB_base_instance GL_ARB_bindless_texture GL_ARB_blend_func_extended GL_ARB_buffer_storage GL_ARB_clear_buffer_object GL_ARB_clear_texture GL_ARB_clip_control GL_ARB_color_buffer_float GL_ARB_compatibility GL_ARB_compressed_texture_pixel_storage GL_ARB_conservative_depth GL_ARB_compute_shader GL_ARB_compute_variable_group_size GL_ARB_conditional_render_inverted GL_ARB_copy_buffer GL_ARB_copy_image GL_ARB_cull_distance GL_ARB_debug_output GL_ARB_depth_buffer_float GL_ARB_depth_clamp GL_ARB_depth_texture GL_ARB_derivative_control GL_ARB_direct_state_access GL_ARB_draw_buffers GL_ARB_draw_buffers_blend GL_ARB_draw_indirect GL_ARB_draw_elements_base_vertex GL_ARB_draw_instanced GL_ARB_enhanced_layouts GL_ARB_ES2_compatibility GL_ARB_ES3_compatibility GL_ARB_ES3_1_compatibility GL_ARB_ES3_2_compatibility GL_ARB_explicit_attrib_location GL_ARB_explicit_uniform_location GL_ARB_fragment_coord_conventions GL_ARB_fragment_layer_viewport GL_ARB_fragment_program GL_ARB_fragment_program_shadow GL_ARB_fragment_shader GL_ARB_fragment_shader_interlock GL_ARB_framebuffer_no_attachments GL_ARB_framebuffer_object GL_ARB_framebuffer_sRGB GL_ARB_geometry_shader4 GL_ARB_get_program_binary GL_ARB_get_texture_sub_image GL_ARB_gl_spirv GL_ARB_gpu_shader5 GL_ARB_gpu_shader_fp64 GL_ARB_gpu_shader_int64 GL_ARB_half_float_pixel GL_ARB_half_float_vertex GL_ARB_imaging GL_ARB_indirect_parameters GL_ARB_instanced_arrays GL_ARB_internalformat_query GL_ARB_internalformat_query2 GL_ARB_invalidate_subdata GL_ARB_map_buffer_alignment GL_ARB_map_buffer_range GL_ARB_multi_bind GL_ARB_multi_draw_indirect GL_ARB_multisample GL_ARB_multitexture GL_ARB_occlusion_query GL_ARB_occlusion_query2 GL_ARB_parallel_shader_compile GL_ARB_pipeline_statistics_query GL_ARB_pixel_buffer_object GL_ARB_point_parameters GL_ARB_point_sprite GL_ARB_polygon_offset_clamp GL_ARB_post_depth_coverage GL_ARB_program_interface_query GL_ARB_provoking_vertex GL_ARB_query_buffer_object GL_ARB_robust_buffer_access_behavior GL_ARB_robustness GL_ARB_sample_locations GL_ARB_sample_shading GL_ARB_sampler_objects GL_ARB_seamless_cube_map GL_ARB_seamless_cubemap_per_texture GL_ARB_separate_shader_objects GL_ARB_shader_atomic_counter_ops GL_ARB_shader_atomic_counters GL_ARB_shader_ballot GL_ARB_shader_bit_encoding GL_ARB_shader_clock GL_ARB_shader_draw_parameters GL_ARB_shader_group_vote GL_ARB_shader_image_load_store GL_ARB_shader_image_size GL_ARB_shader_objects GL_ARB_shader_precision GL_ARB_shader_storage_buffer_object GL_ARB_shader_subroutine GL_ARB_shader_texture_image_samples GL_ARB_shader_texture_lod GL_ARB_shading_language_100 GL_ARB_shader_viewport_layer_array GL_ARB_shading_language_420pack GL_ARB_shading_language_include GL_ARB_shading_language_packing GL_ARB_shadow GL_ARB_sparse_buffer GL_ARB_sparse_texture GL_ARB_sparse_texture2 GL_ARB_sparse_texture_clamp GL_ARB_spirv_extensions GL_ARB_stencil_texturing GL_ARB_sync GL_ARB_tessellation_shader GL_ARB_texture_barrier GL_ARB_texture_border_clamp GL_ARB_texture_buffer_object GL_ARB_texture_buffer_object_rgb32 GL_ARB_texture_buffer_range GL_ARB_texture_compression GL_ARB_texture_compression_bptc GL_ARB_texture_compression_rgtc GL_ARB_texture_cube_map GL_ARB_texture_cube_map_array GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_crossbar GL_ARB_texture_env_dot3 GL_ARB_texture_filter_anisotropic GL_ARB_texture_filter_minmax GL_ARB_texture_float GL_ARB_texture_gather GL_ARB_texture_mirror_clamp_to_edge GL_ARB_texture_mirrored_repeat GL_ARB_texture_multisample GL_ARB_texture_non_power_of_two GL_ARB_texture_query_levels GL_ARB_texture_query_lod GL_ARB_texture_rectangle GL_ARB_texture_rg GL_ARB_texture_rgb10_a2ui GL_ARB_texture_stencil8 GL_ARB_texture_storage GL_ARB_texture_storage_multisample GL_ARB_texture_swizzle GL_ARB_texture_view GL_ARB_timer_query GL_ARB_transform_feedback2 GL_ARB_transform_feedback3 GL_ARB_transform_feedback_instanced GL_ARB_transform_feedback_overflow_query GL_ARB_transpose_matrix GL_ARB_uniform_buffer_object GL_ARB_vertex_array_bgra GL_ARB_vertex_array_object GL_ARB_vertex_attrib_64bit GL_ARB_vertex_attrib_binding GL_ARB_vertex_buffer_object GL_ARB_vertex_program GL_ARB_vertex_shader GL_ARB_vertex_type_10f_11f_11f_rev GL_ARB_vertex_type_2_10_10_10_rev GL_ARB_viewport_array GL_ARB_window_pos GL_ATI_draw_buffers GL_ATI_texture_float GL_ATI_texture_mirror_once GL_S3_s3tc GL_EXT_texture_env_add GL_EXT_abgr GL_EXT_bgra GL_EXT_bindable_uniform GL_EXT_blend_color GL_EXT_blend_equation_separate GL_EXT_blend_func_separate GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_compiled_vertex_array GL_EXT_Cg_shader GL_EXT_depth_bounds_test GL_EXT_direct_state_access GL_EXT_draw_buffers2 GL_EXT_draw_instanced GL_EXT_draw_range_elements GL_EXT_fog_coord GL_EXT_framebuffer_blit GL_EXT_framebuffer_multisample GL_EXTX_framebuffer_mixed_formats GL_EXT_framebuffer_multisample_blit_scaled GL_EXT_framebuffer_object GL_EXT_framebuffer_sRGB GL_EXT_geometry_shader4 GL_EXT_gpu_program_parameters GL_EXT_gpu_shader4 GL_EXT_multi_draw_arrays GL_EXT_multiview_texture_multisample GL_EXT_multiview_timer_query GL_EXT_packed_depth_stencil GL_EXT_packed_float GL_EXT_packed_pixels GL_EXT_pixel_buffer_object GL_EXT_point_parameters GL_EXT_polygon_offset_clamp GL_EXT_post_depth_coverage GL_EXT_provoking_vertex GL_EXT_raster_multisample GL_EXT_rescale_normal GL_EXT_secondary_color GL_EXT_separate_shader_objects GL_EXT_separate_specular_color GL_EXT_shader_image_load_formatted GL_EXT_shader_image_load_store GL_EXT_shader_integer_mix GL_EXT_shadow_funcs GL_EXT_sparse_texture2 GL_EXT_stencil_two_side GL_EXT_stencil_wrap GL_EXT_texture3D GL_EXT_texture_array GL_EXT_texture_buffer_object GL_EXT_texture_compression_dxt1 GL_EXT_texture_compression_latc GL_EXT_texture_compression_rgtc GL_EXT_texture_compression_s3tc GL_EXT_texture_cube_map GL_EXT_texture_edge_clamp GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_filter_anisotropic GL_EXT_texture_filter_minmax GL_EXT_texture_integer GL_EXT_texture_lod GL_EXT_texture_lod_bias GL_EXT_texture_mirror_clamp GL_EXT_texture_object GL_EXT_texture_shadow_lod GL_EXT_texture_shared_exponent GL_EXT_texture_sRGB GL_EXT_texture_sRGB_R8 GL_EXT_texture_sRGB_decode GL_EXT_texture_storage GL_EXT_texture_swizzle GL_EXT_timer_query GL_EXT_transform_feedback2 GL_EXT_vertex_array GL_EXT_vertex_array_bgra GL_EXT_vertex_attrib_64bit GL_EXT_window_rectangles GL_EXT_x11_sync_object GL_EXT_import_sync_object GL_NV_robustness_video_memory_purge GL_IBM_rasterpos_clip GL_IBM_texture_mirrored_repeat GL_KHR_context_flush_control GL_KHR_debug GL_EXT_memory_object GL_EXT_memory_object_fd GL_NV_memory_object_sparse GL_KHR_parallel_shader_compile GL_KHR_no_error GL_KHR_robust_buffer_access_behavior GL_KHR_robustness GL_EXT_semaphore GL_EXT_semaphore_fd GL_NV_timeline_semaphore GL_KHR_shader_subgroup GL_KTX_buffer_region GL_NV_alpha_to_coverage_dither_control GL_NV_bindless_multi_draw_indirect GL_NV_bindless_multi_draw_indirect_count GL_NV_bindless_texture GL_NV_blend_equation_advanced GL_NV_blend_equation_advanced_coherent GL_NVX_blend_equation_advanced_multi_draw_buffers GL_NV_blend_minmax_factor GL_NV_blend_square GL_NV_clip_space_w_scaling GL_NV_command_list GL_NV_compute_program5 GL_NV_compute_shader_derivatives GL_NV_conditional_render GL_NV_conservative_raster GL_NV_conservative_raster_dilate GL_NV_conservative_raster_pre_snap GL_NV_conservative_raster_pre_snap_triangles GL_NV_conservative_raster_underestimation GL_NV_copy_depth_to_color GL_NV_copy_image GL_NV_depth_buffer_float GL_NV_depth_clamp GL_NV_draw_texture GL_NV_draw_vulkan_image GL_NV_ES1_1_compatibility GL_NV_ES3_1_compatibility GL_NV_explicit_multisample GL_NV_feature_query GL_NV_fence GL_NV_fill_rectangle GL_NV_float_buffer GL_NV_fog_distance GL_NV_fragment_coverage_to_color GL_NV_fragment_program GL_NV_fragment_program_option GL_NV_fragment_program2 GL_NV_fragment_shader_barycentric GL_NV_fragment_shader_interlock GL_NV_framebuffer_mixed_samples GL_NV_framebuffer_multisample_coverage GL_NV_geometry_shader4 GL_NV_geometry_shader_passthrough GL_NV_gpu_program4 GL_NV_internalformat_sample_query GL_NV_gpu_program4_1 GL_NV_gpu_program5 GL_NV_gpu_program5_mem_extended GL_NV_gpu_program_fp64 GL_NV_gpu_program_multiview GL_NV_gpu_shader5 GL_NV_half_float GL_NV_light_max_exponent GL_NV_memory_attachment GL_NV_mesh_shader GL_NV_multisample_coverage GL_NV_multisample_filter_hint GL_NV_occlusion_query GL_NV_packed_depth_stencil GL_NV_parameter_buffer_object GL_NV_parameter_buffer_object2 GL_NV_path_rendering GL_NV_path_rendering_shared_edge GL_NV_pixel_data_range GL_NV_point_sprite GL_NV_primitive_restart GL_NV_primitive_shading_rate GL_NV_query_resource GL_NV_query_resource_tag GL_NV_register_combiners GL_NV_register_combiners2 GL_NV_representative_fragment_test GL_NV_sample_locations GL_NV_sample_mask_override_coverage GL_NV_scissor_exclusive GL_NV_shader_atomic_counters GL_NV_shader_atomic_float GL_NV_shader_atomic_float64 GL_NV_shader_atomic_fp16_vector GL_NV_shader_atomic_int64 GL_NV_shader_buffer_load GL_NV_shader_storage_buffer_object GL_NV_shader_subgroup_partitioned GL_NV_shader_texture_footprint GL_NV_shading_rate_image GL_NV_stereo_view_rendering GL_NV_texgen_reflection GL_NV_texture_barrier GL_NV_texture_compression_vtc GL_NV_texture_dirty_tile_map GL_NV_texture_env_combine4 GL_NV_texture_multisample GL_NV_texture_rectangle GL_NV_texture_rectangle_compressed GL_NV_texture_shader GL_NV_texture_shader2 GL_NV_texture_shader3 GL_NV_transform_feedback GL_NV_transform_feedback2 GL_NV_uniform_buffer_unified_memory GL_NV_uniform_buffer_std430_layout GL_NV_vdpau_interop GL_NV_vdpau_interop2 GL_NV_vertex_array_range GL_NV_vertex_array_range2 GL_NV_vertex_attrib_integer_64bit GL_NV_vertex_buffer_unified_memory GL_NV_vertex_program GL_NV_vertex_program1_1 GL_NV_vertex_program2 GL_NV_vertex_program2_option GL_NV_vertex_program3 GL_NV_viewport_array2 GL_NV_viewport_swizzle GL_NVX_conditional_render GL_NV_gpu_multicast GL_NVX_progress_fence GL_NVX_gpu_memory_info GL_NVX_nvenc_interop GL_NV_shader_thread_group GL_NV_shader_thread_shuffle GL_KHR_blend_equation_advanced GL_KHR_blend_equation_advanced_coherent GL_OVR_multiview GL_OVR_multiview2 GL_SGIS_generate_mipmap GL_SGIS_texture_lod GL_SGIX_depth_texture GL_SGIX_shadow GL_SUN_slice_accum 
VisualID 732, 0x2dc
4416 frames in 5.0 seconds = 883.148 FPS # start - window is mostly blank except for a sliver of the red gear
3769 frames in 5.0 seconds = 753.691 FPS # blank framerate stabilizing
3761 frames in 5.0 seconds = 752.168 FPS # unable to see anything during the "blank" period
3764 frames in 5.0 seconds = 752.711 FPS
3752 frames in 5.0 seconds = 750.358 FPS
3484 frames in 5.0 seconds = 692.564 FPS # fullscreening during these 5 seconds
101 frames in 5.0 seconds = 20.006 FPS # fullscreen framerate stabilizing
101 frames in 5.0 seconds = 20.122 FPS # able to see all gears during the fullscreen period; noticeable screen tearing
100 frames in 5.0 seconds = 19.822 FPS
114 frames in 5.0 seconds = 22.749 FPS # switching off fullscreen during these 5 seconds
206 frames in 5.0 seconds = 41.023 FPS # windowed framerate stabilizing
206 frames in 5.0 seconds = 41.053 FPS # able to see all gears during the windowed period
205 frames in 5.0 seconds = 40.921 FPS
206 frames in 5.0 seconds = 41.161 FPS
205 frames in 5.0 seconds = 40.959 FPS
X connection to :0 broken (explicit kill or server shutdown).

At the bottom of that mess, I allowed glxgears to run for a little bit, starting at the blank state when it's first started, then fullscreening it, then un-fullscreening it. I did this and annotated it (the # and the text following is what I added) to give a bit better of an idea of how it's acting - you can see it goes from ~750 to ~20 to ~40 fps respectively.

It does say it's running with NVIDIA graphics, and nvidia-smi says that glxgears is running on the card, but I don't think I believe either of those.

Offline

#7 2024-07-09 08:45:24

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,616

Re: Wayland using llvmpipe as OpenGL renderer instead of nvidia graphics

Those readings are more than likely correct. The entire multi GPU and framebuffer copying is most likely not fully fleshed out yet on Wayland in general, as well as requiring explicit implementations and support for it by every single compositor. Seeing as you're using sway, which is a project that pretty much declares nvidia an entirely unsupported entity/driver, chances are that it's a combination of these parts.

Generally speaking I'd also strongly suggest you get rid of the unnecessary and potentially breaking global environment exports, like GBM_BACKEND, DRI_PRIME, VK_LAYER_NV_optimus, XWAYLAND_NO_GLAMOR and only set the two that are relevant (DRI_PRIME/VK_LAYER_NV_optimus) on demand for the application you want to (... via prime-run)

Offline

#8 2024-07-09 12:31:06

dureu
Member
From: MI, USA
Registered: 2024-07-08
Posts: 5

Re: Wayland using llvmpipe as OpenGL renderer instead of nvidia graphics

I think I've got it fixed. I'll write down what I did, because I'm not sure exactly which step or combination of steps fixed it.

I ended up uninstalling mesa, which uninstalled everything including nvidia-dkms, then reinstalled nvidia-dkms, wlroots-nvidia, and sway, and of course all of their dependencies. This didn't seem to change much; "eglinfo -B" still had the same output as above with llvmpipe as the renderer for X11 and zink as the renderer for Wayland.

I removed all my environment variables. Don't remember what all this changed because I did it at the same time as other steps.

I removed "nvidia_drm.modeset=1 nvidia_drm.fbdev=1" from my kernel parameters in /etc/default/grub and ran "grub-mkconfig -o /boot/grub/grub.cfg" to pact those changes, then rebooted to see what happened. As expected, "sudo cat /sys/module/nvidia_drm/parameters/modeset" returned "N". "eglinfo -B" told me the renderer for both X11 and Wayland was the Intel driver, and glxgears ran as I'd expect it to run if things were working with the integrated graphics card.

I replaced the above parameters and rebooted. "eglinfo -B" currently shows (to my memory) the same as it did when I booted without the nvidia_drm params, with both X11 and Wayland using Mesa Intel graphics:

GBM platform:
EGL API version: 1.5
EGL vendor string: NVIDIA
EGL version string: 1.5
EGL client APIs: OpenGL_ES OpenGL
OpenGL core profile vendor: NVIDIA Corporation
OpenGL core profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL core profile version: 4.6.0 NVIDIA 555.58
OpenGL core profile shading language version: 4.60 NVIDIA
OpenGL compatibility profile vendor: NVIDIA Corporation
OpenGL compatibility profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL compatibility profile version: 4.6.0 NVIDIA 555.58
OpenGL compatibility profile shading language version: 4.60 NVIDIA
OpenGL ES profile vendor: NVIDIA Corporation
OpenGL ES profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL ES profile version: OpenGL ES 3.2 NVIDIA 555.58
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Wayland platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
OpenGL core profile vendor: Intel
OpenGL core profile renderer: Mesa Intel(R) Graphics (ADL GT2)
OpenGL core profile version: 4.6 (Core Profile) Mesa 24.1.2-arch1.1
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: Intel
OpenGL compatibility profile renderer: Mesa Intel(R) Graphics (ADL GT2)
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 24.1.2-arch1.1
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: Intel
OpenGL ES profile renderer: Mesa Intel(R) Graphics (ADL GT2)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 24.1.2-arch1.1
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

X11 platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
OpenGL core profile vendor: Intel
OpenGL core profile renderer: Mesa Intel(R) Graphics (ADL GT2)
OpenGL core profile version: 4.6 (Core Profile) Mesa 24.1.2-arch1.1
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: Intel
OpenGL compatibility profile renderer: Mesa Intel(R) Graphics (ADL GT2)
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 24.1.2-arch1.1
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: Intel
OpenGL ES profile renderer: Mesa Intel(R) Graphics (ADL GT2)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 24.1.2-arch1.1
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Surfaceless platform:
EGL API version: 1.5
EGL vendor string: NVIDIA
EGL version string: 1.5
EGL client APIs: OpenGL_ES OpenGL
OpenGL core profile vendor: NVIDIA Corporation
OpenGL core profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL core profile version: 4.6.0 NVIDIA 555.58
OpenGL core profile shading language version: 4.60 NVIDIA
OpenGL compatibility profile vendor: NVIDIA Corporation
OpenGL compatibility profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL compatibility profile version: 4.6.0 NVIDIA 555.58
OpenGL compatibility profile shading language version: 4.60 NVIDIA
OpenGL ES profile vendor: NVIDIA Corporation
OpenGL ES profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL ES profile version: OpenGL ES 3.2 NVIDIA 555.58
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Device platform:
Device #0:

Platform Device platform:
EGL API version: 1.5
EGL vendor string: NVIDIA
EGL version string: 1.5
EGL client APIs: OpenGL_ES OpenGL
OpenGL core profile vendor: NVIDIA Corporation
OpenGL core profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL core profile version: 4.6.0 NVIDIA 555.58
OpenGL core profile shading language version: 4.60 NVIDIA
OpenGL compatibility profile vendor: NVIDIA Corporation
OpenGL compatibility profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL compatibility profile version: 4.6.0 NVIDIA 555.58
OpenGL compatibility profile shading language version: 4.60 NVIDIA
OpenGL ES profile vendor: NVIDIA Corporation
OpenGL ES profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL ES profile version: OpenGL ES 3.2 NVIDIA 555.58
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Device #1:

Platform Device platform:
libEGL warning: egl: failed to create dri2 screen
libEGL warning: egl: failed to create dri2 screen
libEGL warning: egl: failed to create dri2 screen
eglinfo: eglInitialize failed

Device #2:

Platform Device platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
OpenGL core profile vendor: Intel
OpenGL core profile renderer: Mesa Intel(R) Graphics (ADL GT2)
OpenGL core profile version: 4.6 (Core Profile) Mesa 24.1.2-arch1.1
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: Intel
OpenGL compatibility profile renderer: Mesa Intel(R) Graphics (ADL GT2)
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 24.1.2-arch1.1
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: Intel
OpenGL ES profile renderer: Mesa Intel(R) Graphics (ADL GT2)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 24.1.2-arch1.1
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Device #3:

Platform Device platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
OpenGL core profile vendor: Mesa
OpenGL core profile renderer: llvmpipe (LLVM 17.0.6, 256 bits)
OpenGL core profile version: 4.5 (Core Profile) Mesa 24.1.2-arch1.1
OpenGL core profile shading language version: 4.50
OpenGL compatibility profile vendor: Mesa
OpenGL compatibility profile renderer: llvmpipe (LLVM 17.0.6, 256 bits)
OpenGL compatibility profile version: 4.5 (Compatibility Profile) Mesa 24.1.2-arch1.1
OpenGL compatibility profile shading language version: 4.50
OpenGL ES profile vendor: Mesa
OpenGL ES profile renderer: llvmpipe (LLVM 17.0.6, 256 bits)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 24.1.2-arch1.1
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Again, this is without any environment variables, so DRI_PRIME was not set. "DRI_PRIME=1 eglinfo -B" gives this:

GBM platform:
EGL API version: 1.5
EGL vendor string: NVIDIA
EGL version string: 1.5
EGL client APIs: OpenGL_ES OpenGL
OpenGL core profile vendor: NVIDIA Corporation
OpenGL core profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL core profile version: 4.6.0 NVIDIA 555.58
OpenGL core profile shading language version: 4.60 NVIDIA
OpenGL compatibility profile vendor: NVIDIA Corporation
OpenGL compatibility profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL compatibility profile version: 4.6.0 NVIDIA 555.58
OpenGL compatibility profile shading language version: 4.60 NVIDIA
OpenGL ES profile vendor: NVIDIA Corporation
OpenGL ES profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL ES profile version: OpenGL ES 3.2 NVIDIA 555.58
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Wayland platform:
libEGL warning: egl: failed to create dri2 screen
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
OpenGL core profile vendor: Mesa
OpenGL core profile renderer: zink Vulkan 1.3(NVIDIA GeForce RTX 3070 Ti Laptop GPU (NVIDIA_PROPRIETARY))
OpenGL core profile version: 4.6 (Core Profile) Mesa 24.1.2-arch1.1
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: Mesa
OpenGL compatibility profile renderer: zink Vulkan 1.3(NVIDIA GeForce RTX 3070 Ti Laptop GPU (NVIDIA_PROPRIETARY))
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 24.1.2-arch1.1
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: Mesa
OpenGL ES profile renderer: zink Vulkan 1.3(NVIDIA GeForce RTX 3070 Ti Laptop GPU (NVIDIA_PROPRIETARY))
OpenGL ES profile version: OpenGL ES 3.2 Mesa 24.1.2-arch1.1
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

X11 platform:
libEGL warning: egl: failed to create dri2 screen
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
OpenGL core profile vendor: Mesa
OpenGL core profile renderer: zink Vulkan 1.3(NVIDIA GeForce RTX 3070 Ti Laptop GPU (NVIDIA_PROPRIETARY))
OpenGL core profile version: 4.6 (Core Profile) Mesa 24.1.2-arch1.1
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: Mesa
OpenGL compatibility profile renderer: zink Vulkan 1.3(NVIDIA GeForce RTX 3070 Ti Laptop GPU (NVIDIA_PROPRIETARY))
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 24.1.2-arch1.1
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: Mesa
OpenGL ES profile renderer: zink Vulkan 1.3(NVIDIA GeForce RTX 3070 Ti Laptop GPU (NVIDIA_PROPRIETARY))
OpenGL ES profile version: OpenGL ES 3.2 Mesa 24.1.2-arch1.1
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Surfaceless platform:
EGL API version: 1.5
EGL vendor string: NVIDIA
EGL version string: 1.5
EGL client APIs: OpenGL_ES OpenGL
OpenGL core profile vendor: NVIDIA Corporation
OpenGL core profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL core profile version: 4.6.0 NVIDIA 555.58
OpenGL core profile shading language version: 4.60 NVIDIA
OpenGL compatibility profile vendor: NVIDIA Corporation
OpenGL compatibility profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL compatibility profile version: 4.6.0 NVIDIA 555.58
OpenGL compatibility profile shading language version: 4.60 NVIDIA
OpenGL ES profile vendor: NVIDIA Corporation
OpenGL ES profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL ES profile version: OpenGL ES 3.2 NVIDIA 555.58
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Device platform:
Device #0:

Platform Device platform:
EGL API version: 1.5
EGL vendor string: NVIDIA
EGL version string: 1.5
EGL client APIs: OpenGL_ES OpenGL
OpenGL core profile vendor: NVIDIA Corporation
OpenGL core profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL core profile version: 4.6.0 NVIDIA 555.58
OpenGL core profile shading language version: 4.60 NVIDIA
OpenGL compatibility profile vendor: NVIDIA Corporation
OpenGL compatibility profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL compatibility profile version: 4.6.0 NVIDIA 555.58
OpenGL compatibility profile shading language version: 4.60 NVIDIA
OpenGL ES profile vendor: NVIDIA Corporation
OpenGL ES profile renderer: NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2
OpenGL ES profile version: OpenGL ES 3.2 NVIDIA 555.58
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Device #1:

Platform Device platform:
libEGL warning: egl: failed to create dri2 screen
libEGL warning: egl: failed to create dri2 screen
libEGL warning: egl: failed to create dri2 screen
eglinfo: eglInitialize failed

Device #2:

Platform Device platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
OpenGL core profile vendor: Intel
OpenGL core profile renderer: Mesa Intel(R) Graphics (ADL GT2)
OpenGL core profile version: 4.6 (Core Profile) Mesa 24.1.2-arch1.1
OpenGL core profile shading language version: 4.60
OpenGL compatibility profile vendor: Intel
OpenGL compatibility profile renderer: Mesa Intel(R) Graphics (ADL GT2)
OpenGL compatibility profile version: 4.6 (Compatibility Profile) Mesa 24.1.2-arch1.1
OpenGL compatibility profile shading language version: 4.60
OpenGL ES profile vendor: Intel
OpenGL ES profile renderer: Mesa Intel(R) Graphics (ADL GT2)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 24.1.2-arch1.1
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

Device #3:

Platform Device platform:
EGL API version: 1.5
EGL vendor string: Mesa Project
EGL version string: 1.5
EGL client APIs: OpenGL OpenGL_ES 
OpenGL core profile vendor: Mesa
OpenGL core profile renderer: llvmpipe (LLVM 17.0.6, 256 bits)
OpenGL core profile version: 4.5 (Core Profile) Mesa 24.1.2-arch1.1
OpenGL core profile shading language version: 4.50
OpenGL compatibility profile vendor: Mesa
OpenGL compatibility profile renderer: llvmpipe (LLVM 17.0.6, 256 bits)
OpenGL compatibility profile version: 4.5 (Compatibility Profile) Mesa 24.1.2-arch1.1
OpenGL compatibility profile shading language version: 4.50
OpenGL ES profile vendor: Mesa
OpenGL ES profile renderer: llvmpipe (LLVM 17.0.6, 256 bits)
OpenGL ES profile version: OpenGL ES 3.2 Mesa 24.1.2-arch1.1
OpenGL ES profile shading language version: OpenGL ES GLSL ES 3.20

My understanding of "zink Vulkan 1.3" was wrong - I had figured it was similar to llvmpipe, which to my vague understanding is a way to render things through software, i.e. slower. zink isn't a software renderer; it's a translation layer that makes OpenGL instructions into Vulkan instructions which are faster (to my understanding) and play nicer with my graphics card. The above output now reads to me that instead of using llvmpipe as the OpenGL renderer for the X11 platform, it's sending things through zink to be used by my nvidia card. I can confirm this (i think) by running glxgears with the same DRI_PRIME value, then running nvidia-smi in another terminal instance to see the glxgears process showing up in the list of processes being handled by the nvidia card.

This also reflects in the games I've tried to run briefly via Proton: Elden Ring runs at its framerate cap, 60 fps, and shows up in nvidia-smi; Helldivers 2 runs smoothly at ~100 or so frames when inside the spaceship that acts as the menu, and shows up in nvidia-smi.

Stardew Valley runs natively on Linux (no Proton) and seems to use the integrated graphics card by default. It ran poorly in the menu at ~40 fps and didn't show up in nvidia-smi (though honestly for the menu in a 2D game i'd kinda expect the internal graphics card to give 60 fps without issue?). I switched the game to start with the command "DRI_PRIME=1 %command%" and it crashed on startup. I switched it to "DRI_PRIME=pci-0000_01_00_0 %command%", and it seems to run now at the expected 60fps and also shows up in nvidia-smi. I'm not sure what caused it to crash with DRI_PRIME=1 - I tried dumping "DRI_PRIME=pci-0000_01_00_0 eglinfo -B" and "DRI_PRIME=1 eglinfo -B" into text files and "diff"ing those files, and diff didn't output anything which I assume means they match exactly. Not going to worry about that too much as long as it works.

Offline

#9 2024-07-09 13:44:36

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,616

Re: Wayland using llvmpipe as OpenGL renderer instead of nvidia graphics

Your other environment variables will have broken things. For the nvidia card to act as a "dumb" renderer without a screen attached, a simple DRI_PRIME/the stuff that's set by prime-run is sufficient for the vast majority of applications. Defining a different GBM device will have forced your integrated card to use llvmpipe to render to the screen while the nvidia card rendered everything (... without a screen).

Right now things should be running as intended, your intel card has it's full acceleration capabilities and the nvidia card gets work on demand.

As for the stardew valley crash, the difference between DRI_PRIME=1 and DRI_PRIME=pcinumber is that for an application that wants to know which render devices exist, DRI_PRIME=1 simply changes the "order" of how devices are presented. If the application in question burns and dies when multiple render devices show up, you can enforce that only a specific card is visible to that process' request for a available render card - by specifying the exact PCI ID.

If this works now and you consider it solved please mark it as [SOLVED] by editing the title in your first post (might have to shorten it a bit to make it fit)

Offline

Board footer

Powered by FluxBB