ValveSoftware / gamescope

SteamOS session compositing window manager
Other
3.01k stars 197 forks source link

Some games have failures (white screen/black screen on launch) with WSI enabled #1182

Open alasky17 opened 6 months ago

alasky17 commented 6 months ago

I'm writing this as a meta-issue for WSI failures. All games mentioned fail only with ENABLE_GAMESCOPE_WSI=1 and are fixed by forcing ENABLE_GAMESCOPE_WSI=0.

Tested with both SteamOS Stable 3.5.17 and SteamOS Main 3.6 (OS Build 202040304.1000, Kernel 6.1.52-valve19-1-neptune-61) Tested on Steam Deck only with Proton 9.0-beta14

YUT YUT (1103340) is launching to a white screen with ENABLE_GAMESCOPE_WSI=1.

Tom Clancy's Rainbow Six Extraction (2379390) is booting to a black screen with ENABLE_GAMESCOPE_WSI=1. Originally reported here: https://github.com/ValveSoftware/SteamOS/issues/1407

Formonitryl commented 6 months ago

For Tom Clancy's Rainbow Six Extraction, I should mention that HDR is no longer an available option on my OLED SD after 3.5.17. Even after forcing ENABLE_GAMESCOPE_WSI=0. Other games can still use HDR just fine.

Not sure if this has anything to do with gamescope.

alasky17 commented 6 months ago

@Joshua-Ashton Jason found 2 more games that have failures only with WSI enabled: Death Trick: Double Blind (2254710) Gambit Shifter (2331060)

Both games crash after switching to fullscreen mode, only with ENABLE_GAMESCOPE_WSI=1.

alasky17 commented 6 months ago

@Joshua-Ashton Jason found another title with a WSI failure: Dinosaur Fossil Hunter (864700) color and brightness rendering are broken with ENABLE_GAMESCOPE_WSI=1 only.
ENABLE_GAMESCOPE_WSI=0: ENABLE_GAMESCOPE_WSI=0 ENABLE_GAMESCOPE_WSI=1: ENABLE_GAMESCOPE_WSI=1

misyltoad commented 6 months ago

@alasky17 The issue with Dinosaur Fossil Hunter is the same as with that one My Little Pony game.

An old version of Unity that unconditionally tries to enable HDR without the game actually having support. It's fixed by DXVK_HDR=0 and is actually totally unrelated to the WSI layer aside from the fact that it allows HDR to work.

asukaminato0721 commented 5 months ago

I put the problem and log here to help search

I meet this on a unity game, gamescope 3.14.3 , Arch linux + kde.

the console said:

[Gamescope WSI] Forcing on VK_EXT_swapchain_maintenance1.
err:   D3D11InternalCreateDevice: Failed to create D3D11 device
wlserver: [types/wlr_compositor.c:771] New wlr_surface 0x5797987a3c30 (res 0x579798627f90)
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
xdg_backend: Changed refresh to: 59.997hz

image

without gamescope, it works well.