Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Nvidia with Nvidia Prime on Wayland specifically on WINE using Gamescope #156

Open
dCo3lh0 opened this issue Nov 18, 2024 · 4 comments

Comments

@dCo3lh0
Copy link

dCo3lh0 commented Nov 18, 2024

Hey guys, i'm having a issue here that i think it must be related to egl-wayland after searching and reading other issues a bit, i have a setup here on my machine for Nvidia Prime and it works flawlessly, i can execute vkcube-wayland and it works perfectly, other graphical tools, works fine, no issues, but when i try to run a game using WINE, set gamescope and configure to use my dGPU that is a RTX 2060, it gives me the error error 7: importing the supplied dmabufs failed, only wine apps crash using Nvidia, if i use my integrated graphics from my Ryzen 5700G, works perfectly fine, its just Wine-GE AND Proton, no difference, so I've tried using both to see if it was an issue with the Wine-GE 8.26 outdated version, no changes, if you want a changelog from Heroic Games Launcher, here it is.

Operating System: Tuxedo OS 4 (Based on Ubuntu 24.04 and KDE Neon)
KDE Plasma Version: 6.2.3
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.11.0-105009-tuxedo (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700G with Radeon Graphics
Memory: 58,7 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7B79
System Version: 3.0

Changelog:

o315yDunsnmBe1MiaT2HQg-lastPlay.log

@amshafer
Copy link
Collaborator

How are you launching gamescope? Please provide instructions to reproduce.

@dCo3lh0
Copy link
Author

dCo3lh0 commented Nov 19, 2024

I'm gonna use as example the Lutris command, since its happening with every launcher out there, since i don't see the command done by heroic.

gamescope --prefer-vk-device 10de:1f08 -w 1920 -h 1080 -W 1920 -H 1080 -r 60 -f --mangoapp -- env __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia __VK_LAYER_NV_optimus=NVIDIA_only DRI_PRIME=1 gamemoderun /home/dco3lh0/.local/share/lutris/runners/wine/wine-ge-8-26-x86_64/bin/wine /mnt/Arquivos/Games/Lutris/gog/star-wars-episode-i-racer/drive_c/GOG Games/STAR WARS Racer/SWEP1RCR.EXE

@dCo3lh0
Copy link
Author

dCo3lh0 commented Nov 19, 2024

by the way i removed the environment variable "__EGL_VENDOR_LIBRARY_FILENAMES=/usr/share/glvnd/egl_vendor.d/50_mesa.json"

@dCo3lh0
Copy link
Author

dCo3lh0 commented Nov 19, 2024

dont know if its related, since i saw similar issues happening here and on the web, and is on the log as well, i've executed LIBGL_DEBUG=verbose glxinfo | grep renderer, and it gave me:

libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/dco3lh0/.drirc: No such file or directory.
using driver amdgpu for 4
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/dco3lh0/.drirc: No such file or directory.
pci id for fd 4: 1002:1638, driver radeonsi
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/dco3lh0/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/dco3lh0/.drirc: No such file or directory.
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/dco3lh0/.drirc: No such file or directory.
/usr/share/libdrm/amdgpu.ids version: 1.0.0
Using DRI3 for screen 0
    GLX_MESA_copy_sub_buffer, GLX_MESA_gl_interop, GLX_MESA_query_renderer, 
    GLX_MESA_gl_interop, GLX_MESA_query_renderer, GLX_MESA_swap_control, 
Extended renderer info (GLX_MESA_query_renderer):
OpenGL renderer string: AMD Radeon Graphics (radeonsi, renoir, LLVM 17.0.6, DRM 3.58, 6.11.0-105009-tuxedo)

But if i run with dgpu-run which is the prime-run command from tuxedo prime custom config i get this:

OpenGL renderer string: NVIDIA GeForce RTX 2060/PCIe/SSE2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants