Project

General

Profile

Actions

Emulator Issues #13704

open

Dolphin Flatpak unable to use dGPU unless dGPU previously initialized

Added by dreamsyntax 3 days ago. Updated 2 days ago.

Status:
New
Priority:
Normal
Assignee:
-
% Done:

0%

Operating system:
N/A
Issue type:
Bug
Milestone:
Regression:
No
Relates to usability:
No
Relates to performance:
No
Easy:
No
Relates to maintainability:
No
Regression start:
Fixed in:

Description

This bug is exclusive to the Dolphin Flatpak. Native builds do not have this issue.
I've been encountering this issue on/off even while using unofficial flatpaks (the issue is not recent).
I could never figure out why the behavior was inconsistent, until today.

Until a different program accesses the dGPU the Dolphin Flatpak can't properly use the dGPU.

System Info:
CachyOS (Arch based Linux)
Intel iGPU & NVIDIA dGPU 4080 Mobile on Driver 565.77 in the officially recommended default 'hybrid' nvidia configuration.
Note I've reproduced this on various distros including Linux Mint, and with various nvidia driver versions. I don't think this behavior is unique to any particular configuration.

Reproduce Steps:

  1. Reboot the system - this way nothing is directly accessing the dGPU.
  2. Immediately launch Dolphin flatpak, let initialization etc finish
  3. Open Graphics Window, Choose Vulkan, and pick the dGPU (NVIDIA in this case)
  4. Close the Graphics Window
  5. Launch a game.
  6. "Failed to create Vulkan swap chain." and "Failed to initialize video backend!" will appear, then the emulation will stop.
  7. Repeat 5-6, Close Dolphin, Re-open etc. Always reproducible.

Mitigation Steps:
Launch a process that can use the dGPU (I launched Steam, then launched a game. Waited 10 seconds, then quit. Repeated steps 2-5. Now the flatpak can use the dGPU.
I confirmed this happens for both the flathub flatpak and the dolphin repo flatpaks.
Alternatively, you can even use native Dolphin while set to use the dGPU.

Video showing this bug and using native Dolphin to demonstrate the mitigation:
https://youtu.be/elIi0IoyzKs

Actions

Also available in: Atom PDF