I have a couple of issues with War Thunder, Lutris and Gamescope that seem to have something to do with my AMD drivers. If these are separate issue feel free to point it out. I am using the RX 7700S.
First, War Thunder. When I launch the game under RADV it freezes as soon as I fullscreen it. I found a lot of results for this but nothing useful, except a their support pointing out this is caused by outdated drivers. The game works perfectly fine under AMDVLK. Gamescope crashes under AMDVLK so I can’t just use that (Relevant issue). This wasn’t a problem because I could just install both drivers and select one for each game in Lutris. Guess what happened, that broke in a recent update. Now Lutris displays a blank entry in the GPU select field and launches with this error:
ERROR: [Loader Message] Code 0 : vkCreateInstance: Found no drivers!
Cannot create Vulkan instance.
This problem is often caused by a faulty installation of the Vulkan driver or attempting to use a GPU that does not support Vulkan.
ERROR at /build/source/vulkaninfo/./vulkaninfo.h:458:vkCreateInstance failed with ERROR_INCOMPATIBLE_DRIVER
2024-07-15 22:50:35,486: ['vulkaninfo', '--summary'] command failed: Command '['vulkaninfo', '--summary']' returned non-zero exit status 1.
2024-07-15 22:50:35,486: (1002:7480 f111:0007 amdgpu) Driver 24.1.2
ERROR: [Loader Message] Code 0 : vkCreateInstance: Found no drivers!
Cannot create Vulkan instance.
This problem is often caused by a faulty installation of the Vulkan driver or attempting to use a GPU that does not support Vulkan.
ERROR at /build/source/vulkaninfo/./vulkaninfo.h:458:vkCreateInstance failed with ERROR_INCOMPATIBLE_DRIVER
2024-07-15 22:50:35,534: ['vulkaninfo', '--summary'] command failed: Command '['vulkaninfo', '--summary']' returned non-zero exit status 1.
2024-07-15 22:50:35,535: (1002:15bf f111:0005 amdgpu) Driver 24.1.2
Minecraft is now also stuck on the loading screen when launched in Gamescope.
Output of vulkaninfo: https://pastebin.com/upkXgTQX
Output of glxinfo: https://pastebin.com/Je1QQMAq
Edit: When trying to run War Thunder using Gamescope it crashes with this log:
lutris-wrapper: War Thunder
Started initial process 16461 from gamescope -w 2560 -h 1600 -W 2560 -H 1600 -f -- ./launcher
Start monitoring process.
[gamescope] [e[0;34mInfoe[0m] e[0;37mconsole:e[0m gamescope version undefined
No CAP_SYS_NICE, falling back to regular-priority compute and threads.
Performance will be affected.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
[gamescope] [e[0;34mInfoe[0m] e[0;37mvulkan:e[0m selecting physical device 'AMD Radeon 780M (RADV GFX1103_R1)': queue family 1 (general queue family 0)
[gamescope] [e[0;34mInfoe[0m] e[0;37mvulkan:e[0m physical device supports DRM format modifiers
[gamescope] [e[0;34mInfoe[0m] e[0;37mwlserver:e[0m [backend/headless/backend.c:67] Creating headless backend
[gamescope] [e[0;34mInfoe[0m] e[0;37mxdg_backend:e[0m Seat name: Hyprland
[gamescope] [e[0;34mInfoe[0m] e[0;37mvulkan:e[0m supported DRM formats for sampling usage:
[gamescope] [e[0;34mInfoe[0m] e[0;37mvulkan:e[0m AR24 (0x34325241)
[gamescope] [e[0;34mInfoe[0m] e[0;37mvulkan:e[0m XR24 (0x34325258)
[gamescope] [e[0;34mInfoe[0m] e[0;37mvulkan:e[0m AB24 (0x34324241)
[gamescope] [e[0;34mInfoe[0m] e[0;37mvulkan:e[0m XB24 (0x34324258)
[gamescope] [e[0;34mInfoe[0m] e[0;37mvulkan:e[0m RG16 (0x36314752)
[gamescope] [e[0;34mInfoe[0m] e[0;37mvulkan:e[0m AB4H (0x48344241)
[gamescope] [e[0;34mInfoe[0m] e[0;37mvulkan:e[0m XB4H (0x48344258)
[gamescope] [e[0;34mInfoe[0m] e[0;37mvulkan:e[0m AB48 (0x38344241)
[gamescope] [e[0;34mInfoe[0m] e[0;37mvulkan:e[0m XB48 (0x38344258)
[gamescope] [e[0;34mInfoe[0m] e[0;37mvulkan:e[0m AB30 (0x30334241)
[gamescope] [e[0;34mInfoe[0m] e[0;37mvulkan:e[0m XB30 (0x30334258)
[gamescope] [e[0;34mInfoe[0m] e[0;37mvulkan:e[0m AR30 (0x30335241)
[gamescope] [e[0;34mInfoe[0m] e[0;37mvulkan:e[0m XR30 (0x30335258)
[gamescope] [e[0;34mInfoe[0m] e[0;37mwlserver:e[0m Running compositor on wayland display 'gamescope-0'
[gamescope] [e[0;34mInfoe[0m] e[0;37mwlserver:e[0m [backend/headless/backend.c:17] Starting headless backend
[gamescope] [e[0;34mInfoe[0m] e[0;37mwlserver:e[0m Successfully initialized libei for input emulation!
[gamescope] [e[0;34mInfoe[0m] e[0;37mwlserver:e[0m [xwayland/server.c:107] Starting Xwayland on :1
[gamescope] [e[0;35mDebuge[0m] e[0;37mwlserver:e[0m [types/wlr_compositor.c:771] New wlr_surface 0x2572ea0 (res 0x2575030)
[gamescope] [e[0;35mDebuge[0m] e[0;37mwlserver:e[0m [xwayland/server.c:272] Xserver is ready
[gamescope] [e[0;34mInfoe[0m] e[0;37mpipewire:e[0m stream state changed: connecting
[gamescope] [e[0;34mInfoe[0m] e[0;37mpipewire:e[0m stream state changed: paused
[gamescope] [e[0;34mInfoe[0m] e[0;37mpipewire:e[0m stream available on node ID: 76
[gamescope] [e[0;34mInfoe[0m] e[0;37mxwm:e[0m Embedded, no cursor set. Using left_ptr by default.
[gamescope] [e[0;34mInfoe[0m] e[0;37mvblank:e[0m Using timerfd.
[gamescope] [e[0;34mInfoe[0m] e[0;37mjosh edid:e[0m Patching res 800x1280 -> 2560x1600
[gamescope] [e[0;35mDebuge[0m] e[0;37mxwm:e[0m Unhandled NET_WM_STATE property change: _NET_WM_STATE_HIDDEN
[gamescope] [e[0;35mDebuge[0m] e[0;37mwlserver:e[0m [types/wlr_compositor.c:771] New wlr_surface 0x25eaa60 (res 0x257d950)
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning: Unsupported maximum keycode 708, clipping.
> X11 cannot support keycodes above 255.
> Warning: Could not resolve keysym XF86KbdInputAssistPrevgrou
> Warning: Could not resolve keysym XF86KbdInputAssistNextgrou
Errors from xkbcomp are not fatal to the X server
[gamescope] [e[0;35mDebuge[0m] e[0;37mpipewire:e[0m renegotiating stream params (size: 4096x2560)
[gamescope] [e[0;34mInfoe[0m] e[0;37mxdg_backend:e[0m Changed refresh to: 165.000hz
[gamescope] [e[0;35mDebuge[0m] e[0;37mpipewire:e[0m renegotiating stream params (size: 2560x1600)
[gamescope] [e[0;35mDebuge[0m] e[0;37mxwm:e[0m Unhandled NET_WM_STATE property change: _NET_WM_STATE_HIDDEN
[gamescope] [e[0;35mDebuge[0m] e[0;37mwlserver:e[0m [types/wlr_compositor.c:771] New wlr_surface 0x24cd2f0 (res 0x258f0a0)
[S_API] SteamAPI_Init(): Loaded '/home/roman/.local/share/Steam/linux64/steamclient.so' OK.
[S_API FAIL] SteamAPI_Init() failed; no appID found.
Either launch the game from Steam, or put the file steam_appid.txt containing the correct appID in your game folder.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment.
ATTENTION: default value of option vk_khr_present_wait overridden by environment.
ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment.
ATTENTION: default value of option vk_xwayland_wait_ready overridden by environment.
[gamescope] [e[0;35mDebuge[0m] e[0;37mwlserver:e[0m [types/wlr_compositor.c:771] New wlr_surface 0x25ef880 (res 0x2591c80)
[gamescope] [e[0;35mDebuge[0m] e[0;37mxwm:e[0m Unhandled initial NET_WM_STATE property: _NET_WM_STATE_FOCUSED
[gamescope] [e[0;31mErrore[0m] e[0;37mxdg_backend:e[0m Compositor released us but we were not acquired. Oh no.
[gamescope] [e[0;35mDebuge[0m] e[0;37mpipewire:e[0m renegotiating stream params (size: 4096x2560)
[gamescope] [e[0;35mDebuge[0m] e[0;37mpipewire:e[0m renegotiating stream params (size: 2560x1600)
[gamescope] [e[0;34mInfoe[0m] e[0;37mlaunch:e[0m Primary child shut down!
(EE) failed to read Wayland events: Broken pipe
Monitored process exited.
Initial process has exited (return code: 0)
All processes have quit
Exit with return code 0