Bug 501139

Summary: multigpu offloading doesn't work when nvidia is the primary display aka reverse prime
Product: [Plasma] kwin Reporter: Luan Vitor Simião Oliveira <luanv.oliveira>
Component: wayland-genericAssignee: Zamundaaa <xaver.hugl>
Status: ASSIGNED ---    
Severity: normal CC: postix, xaver.hugl
Priority: NOR    
Version First Reported In: 6.3.2   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: backtrace vkcube xcb

Description Luan Vitor Simião Oliveira 2025-03-06 10:58:19 UTC
Created attachment 179175 [details]
backtrace vkcube xcb

SUMMARY
when the display is connected to a nvidia gpu on a desktop, running vkcube --wsi wayland --gpu_number 1 should run in the igpu, but instead i get an error message:
 [destroyed object]: error 7: importing the supplied dmabufs failed
STEPS TO REPRODUCE
1. connect the display to an nvidia gpu with proprietary drivers 
2. run vkcube --wsi wayland --gpu_number 1 or vkcube --wsi xcb --gpu_number 1

OBSERVED RESULT
error (wayland) or crash (xcb)

EXPECTED RESULT
vkcube runs on the igpu with no issues ie reverse_prime works

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 41
KDE Plasma Version: 6.3.2
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.13.5-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 9800X3D 8-Core Processor
Memory: 30.5 GiB of RAM
Graphics Processor 1: NVIDIA GeForce RTX 4070 Ti SUPER
Graphics Processor 2: AMD Radeon Graphics

ADDITIONAL INFORMATION
nvidia-570.124.04-1.fc41.x86_64
vulkan-tools-1.4.304.0-1.fc41.x86_64
mesa-dri-drivers-25.0.0-2.fc41.x86_64
desktop 4070 ti super
1 display connected to nvidia gpu