flathub / org.DolphinEmu.dolphin-emu

https://flathub.org/apps/details/org.DolphinEmu.dolphin-emu
15 stars 20 forks source link

[STEAM DECK] Can't use Vulkan #201

Open ghost opened 1 month ago

ghost commented 1 month ago

When I try to launch a game using Vulkan, it doesn't start. This only happens when I use Dolphin in gaming mode.

LOGS: 43:25:258 VideoBackends/Vulkan/VulkanLoader.cpp:247 E[Video]: (CreateVulkanSurface) vkCreateXlibSurfaceKHR failed: (-1000000000: VK_ERROR_SURFACE_LOST_KHR) 43:25:258 VideoBackends/Vulkan/VKMain.cpp:160 E[MASTER]: Warning: Failed to create Vulkan surface. 43:25:259 Core/Core.cpp:580 E[MASTER]: Warning: Failed to initialize Video backend!

soccerboys2008 commented 1 month ago

does the same thing happen when you compile dolphin from source (since there is no official build of dolphin for linux)

(when building follow the global build instructions but omit sudo make install, this is so you don't have to figure out how to remove it from your system when your done testing it)

after building you'll find the binary in $HOME/dolphin/build/binaries/ (assuming that the terminal's cwd is the $HOME directory) and can be run when opening a terminal, navigating to that directory and typing ./dolphin-emu

instructions here: https://github.com/dolphin-emu/dolphin/wiki/Building-for-Linux

if it happens in the source build as well then an issue will need to be filed with the dolphin team, but the first thing is to figure out if its a dolphin issue or a flatpak issue

cpba commented 1 month ago

When I try to launch a game using Vulkan, it doesn't start. This only happens when I use Dolphin in gaming mode.

LOGS: 43:25:258 VideoBackends/Vulkan/VulkanLoader.cpp:247 E[Video]: (CreateVulkanSurface) vkCreateXlibSurfaceKHR failed: (-1000000000: VK_ERROR_SURFACE_LOST_KHR) 43:25:258 VideoBackends/Vulkan/VKMain.cpp:160 E[MASTER]: Warning: Failed to create Vulkan surface. 43:25:259 Core/Core.cpp:580 E[MASTER]: Warning: Failed to initialize Video backend!

I don't know much about the steam deck, what is gaming mode?

Do you need to do anything specific to install this flatpak in gaming mode?

@epiccatt is it in any way possible that you have installed two different dolphins?

ColinKinloch commented 1 month ago

The steam deck has a desktop mode which is KDE and a game mode which launches on gamescope via a big picture style UI.

I just tested it on mine from a fresh dolphins flatpak install, it works for me.

ghost commented 2 weeks ago

does the same thing happen when you compile dolphin from source (since there is no official build of dolphin for linux)

(when building follow the global build instructions but omit sudo make install, this is so you don't have to figure out how to remove it from your system when your done testing it)

after building you'll find the binary in $HOME/dolphin/build/binaries/ (assuming that the terminal's cwd is the $HOME directory) and can be run when opening a terminal, navigating to that directory and typing ./dolphin-emu

instructions here: https://github.com/dolphin-emu/dolphin/wiki/Building-for-Linux

if it happens in the source build as well then an issue will need to be filed with the dolphin team, but the first thing is to figure out if its a dolphin issue or a flatpak issue

I can't build dolphin from source because steam OS is too locked down.

ghost commented 2 weeks ago

When I try to launch a game using Vulkan, it doesn't start. This only happens when I use Dolphin in gaming mode. LOGS: 43:25:258 VideoBackends/Vulkan/VulkanLoader.cpp:247 E[Video]: (CreateVulkanSurface) vkCreateXlibSurfaceKHR failed: (-1000000000: VK_ERROR_SURFACE_LOST_KHR) 43:25:258 VideoBackends/Vulkan/VKMain.cpp:160 E[MASTER]: Warning: Failed to create Vulkan surface. 43:25:259 Core/Core.cpp:580 E[MASTER]: Warning: Failed to initialize Video backend!

I don't know much about the steam deck, what is gaming mode?

Do you need to do anything specific to install this flatpak in gaming mode?

@epiccatt is it in any way possible that you have installed two different dolphins?

no i only have 1 dolphin installed.

ColinKinloch commented 2 weeks ago

Could you post the output of

flatpak info org.DolphinEmu.dolphin-emu --show-permissions
ghost commented 2 weeks ago

Could you post the output of

flatpak info org.DolphinEmu.dolphin-emu --show-permissions

[Context] shared=network;ipc; sockets=x11;pulseaudio; devices=all; features=bluetooth; filesystems=xdg-run/app/com.discordapp.Discord:create;home;xdg-config/kdeglobals:ro;host:ro;xdg-run/gamescope-0:ro;

[Session Bus Policy] com.canonical.AppMenu.Registrar=talk org.kde.kconfig.notify=talk org.kde.KGlobalSettings=talk org.freedesktop.ScreenSaver=talk

[Environment] QT_QPA_PLATFORM=xcb

ColinKinloch commented 2 weeks ago

Could you tell me what the "launch options" field for dolphin is set to in the steam menu?

ColinKinloch commented 2 weeks ago

And which version of SteamOS you're on?

ghost commented 2 weeks ago

Could you tell me what the "launch options" field for dolphin is set to in the steam menu?

They're empty and my Steam OS version is 3.5.19

ColinKinloch commented 2 weeks ago

You're on the same SteamOS version as me. Your launch options should look something like this if it's running dolphin through flatpak: downloadfile

ghost commented 2 weeks ago

You're on the same SteamOS version as me. Your launch options should look something like this if it's running dolphin through flatpak: downloadfile

I am using Emudeck and it launches dolphin differently.

ColinKinloch commented 2 weeks ago

You should probably mention things when opening an issue report.