Heroic-Games-Launcher / HeroicGamesLauncher

A games launcher for GOG, Amazon and Epic Games for Linux, Windows and macOS.
https://heroicgameslauncher.com
GNU General Public License v3.0
7.92k stars 417 forks source link

[Solved] HDR not functioning on Steam Deck OLED #3281

Closed Shanayara closed 7 months ago

Shanayara commented 9 months ago

Describe the bug

A lot of people have recently gotten their shiny new Steam Deck OLEDs and tried out different HDR-capable games on it; certainly, many users of Heroic are Steam Deck users.

When installing and running HDR-capable games through Heroic (for instance, the Battle.net version of Diablo IV or the GOG version of Cyberpunk 2077), the games do correctly pick up that the screen is HDR capable and allow us to enable the specific options in game. But this results in an extremely distorted image (greyed out in the case of HDR PQ, and very oversaturated in the case of HDR scRGB), and the Steam Deck quick settings not even putting the little "HDR" badge next to the Brigthness setting, like it does in Steam games that are HDR capable and work without any problems.

Using a different version of Wine-GE/Proton-GE doesn't change the issue, I tried a bunch of them including latest and experimental. From what other people have mentioned about this issue on the internet (e.g. on Reddit), the problem might be related to Heroic not using the native Steam Deck's Mesa from Valve, but using Flatpak's Mesa instead.

Add logs

(16:25:45) INFO:    [Legendary]:        Legendary location: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary
(16:25:45) INFO:    [Gog]:              GOGDL location: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl
(16:25:45) INFO:    [Connection]:       Connectivity: check-online
(16:25:45) INFO:    [Connection]:       Pinging external endpoints
(16:25:46) INFO:    [Backend]:          DRM module staus {
  "oimompecagnajdejgnnjijobebaeigek": {
    "name": "Widevine Content Decryption Module",
    "status": "new",
    "version": "4.10.2710.0"
  }
}
(16:25:46) INFO:    [Backend]:          Heroic started via Steam-Deck gamemode. Switching to fullscreen
(16:25:46) WARNING: [Backend]:          Failed to register protocol with OS.
(16:25:46) INFO:    [Legendary]:        Running command: LEGENDARY_CONFIG_PATH=/home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/legendaryConfig/legendary /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary --version
(16:25:46) INFO:    [Gog]:              Running command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json --version
(16:25:46) INFO:    [Nile]:             Running command: NILE_CONFIG_PATH=/home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/nile_config /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/nile --version
(16:25:46) INFO:    [Backend]:          
System Information:
CPU: 8x AMD Custom APU 0405
Memory: 15.53 GB (used: 3.7 GB)
GPUs:
  GPU 0:
    Name: Advanced Micro Devices, Inc. [AMD/ATI] undefined
    IDs: D=1435 V=1002 SD=0123 SV=1002
    Driver: amdgpu
OS: SteamOS 3.5.7 holo (linux)

The current system is a Steam Deck (model: OLED)
We are running inside a Flatpak container

Software Versions:
  Heroic: 2.11.0 Kumachi
  Legendary: 0.20.33 Undue Alarm
  gogdl: 0.7.3
  Nile: 1.0.0 Jonathan Joestar

(16:25:46) INFO:    [Connection]:       Connectivity: online
(16:25:46) INFO:    [Gog]:              Checking if login is valid
(16:25:46) INFO:    [Gog]:              Running command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json auth
(16:25:46) INFO:    [Backend]:          Loading Screen Ready
(16:25:46) INFO:    [Frontend]:         Refreshing undefined Library
(16:25:46) WARNING: [Backend]:          refresh not implemented on Sideload Library Manager
(16:25:46) INFO:    [Gog]:              Running command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json auth
(16:25:46) INFO:    [Legendary]:        Refreshing library...
(16:25:46) INFO:    [Legendary]:        Refreshing Epic Games...
(16:25:46) INFO:    [Legendary]:        Game list updated, got 247 games & DLCs
(16:25:46) INFO:    [Backend]:          Frontend Ready
(16:25:46) INFO:    [Gog]:              Getting GOG library
(16:25:46) INFO:    [Gog]:              Running command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json auth
(16:25:47) INFO:    [Backend]:          Checking for current version changelog
(16:25:48) INFO:    [Winetricks]:       Downloading Winetricks
(16:25:49) WARNING: [Winetricks]:       Error Downloading Winetricks Error: timeout of 1000ms exceeded
    at createError (/app/bin/heroic/resources/app.asar/node_modules/axios/lib/core/createError.js:16:15)
    at RedirectableRequest.handleRequestTimeout (/app/bin/heroic/resources/app.asar/node_modules/axios/lib/adapters/http.js:369:16)
    at RedirectableRequest.emit (node:events:514:28)
    at Timeout.<anonymous> (/app/bin/heroic/resources/app.asar/node_modules/follow-redirects/index.js:179:12)
    at listOnTimeout (node:internal/timers:569:17)
    at process.processTimers (node:internal/timers:512:7)
(16:25:49) INFO:    [Backend]:          Launching Cyberpunk 2077 (1423049311)
(16:25:49) INFO:    [Backend]:          Downloading saves for Cyberpunk 2077
(16:25:49) INFO:    [Gog]:              Running command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json auth
(16:25:49) INFO:    [Backend]:          Preventing machine to sleep
(16:25:50) INFO:    [Gog]:              Syncing saves for Cyberpunk 2077
(16:25:50) INFO:    [Gog]:              Syncing saves for Cyberpunk 2077: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json save-sync "/home/deck/Games/Heroic/Prefixes/default/Cyberpunk 2077/pfx/dosdevices/c:/users/steamuser/Saved Games/CD Projekt Red/Cyberpunk 2077" 1423049311 --token <redacted> --os windows --ts 1701355832.371268 --name saves --skip-upload
(16:25:51) INFO:    [WineDownloader]:   Updating wine versions info
(16:25:51) INFO:    [WineDownloader]:   Fetching upstream information...
(16:25:51) INFO:    [Legendary]:        Running command: LEGENDARY_CONFIG_PATH=/home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/legendaryConfig/legendary /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary list --third-party
(16:25:51) INFO:    [Backend]:          Starting the Download Queue
(16:25:52) INFO:    [Gog]:              Saved username to config file
(16:25:53) INFO:    [Backend]:          AreWeAntiCheatYet data downloaded
(16:25:56) INFO:    [Gog]:              Running command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json auth
(16:25:58) INFO:    [Backend]:          Saves for Cyberpunk 2077 downloaded
(16:25:58) INFO:    [Backend]:          Preventing display from sleep
(16:25:58) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-latest
(16:25:59) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-latest
(16:25:59) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-latest
(16:25:59) INFO:    [Backend]:          Checking if wine version exists: Wine - Wine-GE-latest
(16:25:59) DEBUG:   [Backend]:          Running Wine command: wineboot --init
(16:26:05) INFO:    [DXVKInstaller]:    installing dxvk on... /home/deck/Games/Heroic/Prefixes/default/Cyberpunk 2077
(16:26:05) INFO:    [DXVKInstaller]:    dxvk already installed!
(16:26:05) INFO:    [DXVKInstaller]:    installing dxvk-nvapi on... /home/deck/Games/Heroic/Prefixes/default/Cyberpunk 2077
(16:26:05) INFO:    [DXVKInstaller]:    dxvk-nvapi already installed!
(16:26:05) INFO:    [DXVKInstaller]:    installing vkd3d on... /home/deck/Games/Heroic/Prefixes/default/Cyberpunk 2077
(16:26:05) INFO:    [DXVKInstaller]:    vkd3d already installed!
(16:26:05) INFO:    [Gog]:              Launching Cyberpunk 2077: WINEDLLOVERRIDES=winemenubuilder.exe=d LD_LIBRARY_PATH=/home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-latest/lib64:/home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-latest/lib HEROIC_APP_NAME=1423049311 HEROIC_APP_RUNNER=gog HEROIC_APP_SOURCE=gog DOTNET_BUNDLE_EXTRACT_BASE_DIR= DOTNET_ROOT= WINEPREFIX="/home/deck/Games/Heroic/Prefixes/default/Cyberpunk 2077" WINE_FULLSCREEN_FSR=0 WINEESYNC=1 WINEFSYNC=1 DXVK_ENABLE_NVAPI=1 DXVK_NVAPI_ALLOW_OTHER_DRIVERS=1 ORIG_LD_LIBRARY_PATH= GST_PLUGIN_SYSTEM_PATH_1_0=/home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-latest/lib64/gstreamer-1.0:/home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-latest/lib/gstreamer-1.0 WINEDLLPATH=/home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-latest/lib64/wine:/home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-latest/lib/wine /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json launch "/home/deck/Games/Heroic/Cyberpunk 2077" 1423049311 --wine /home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-latest/bin/wine --platform windows
(16:26:06) INFO:    [WineDownloader]:   wine versions updated
(16:28:08) INFO:    [Gog]:              Saved games data
(16:28:08) WARNING: [Backend]:          listUpdateableGames not implemented on Sideload Library Manager
(16:28:10) INFO:    [Gog]:              Found 0 game(s) to update
(16:28:10) INFO:    [Legendary]:        Checking for game updates: LEGENDARY_CONFIG_PATH=/home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/legendaryConfig/legendary /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary list --third-party
(16:28:36) INFO:    [Legendary]:        Found 0 games to update
(16:28:59) INFO:    [Backend]:          Stopping Display Power Saver Blocker
(16:28:59) INFO:    [Gog]:              Running command: /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/gogdl --auth-config-path /home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/gog_store/auth.json auth

Steps to reproduce

  1. Install Heroic through "Discover" on freshly set up Steam Deck OLED
  2. Install and open any HDR-capable game via Heroic on a Steam Deck OLED
  3. Run the game from within Steam Deck mode -> HDR option shows up in the game's settings (in Desktop mode it's not available)
  4. Enable HDR setting in game
  5. Screen displays either washed out (HDR10 PQ) or oversaturated (HDR10 scRGB), and not actually displayed in HDR.

Expected behavior

Enabling HDR should correctly switch the screen mode to HDR, like it works in Steam games. Or HDR should not be allowed to be enabled in the first place (like on Steam Deck LCD).

Screenshots

Diablio IV login screen with HDR enabled, colors are washed out: washedout_diabloIV Cyberpunk 2077 HDR calibration menu with HDR PQ enabled, colors are washed out: washedout_hdrPQ_cyberpunk2077 Cyberpunk 2077 intro move with HDR scRGB enabled, colors are extremely oversatured: oversaturated_hdr_scRGB_cyberpunk2077

Heroic Version

Latest Stable (Flatpak)

System Information

Additional information

No response

arielj commented 9 months ago

Are you sure this is heroic's issue? I don't think we control the HDR support (that's probably on the game, wine, and dxvk or one of those to control). It would be interesting if you can run the same game using Lutris for example.

helifax commented 9 months ago

I can report the same thing. One thing i can add though is that the native game (CP2077) runs perfectly fine in HDR PQ10 native (I am using a Samsung Odyssey OLED G9). Regarding the SteamDeck Oled, I just got it today.. so I cannot comment in which runtime the issue is.

Shanayara commented 9 months ago

@arielj I can't really tell, I am not super knowledgable about how everything is put together there and I don't personally use Lutris. But someone mentioned that it's an issue that might exist in Lutris as well, for similar reasons of using an internal Mesa version from Flatpak instead of Valve's Mesa. Which is from my understanding something you might control because the way your flatpak is put together decides whether you use Flatpak's Mesa or a system-installed one?

flavioislima commented 9 months ago

@arielj I can't really tell, I am not super knowledgable about how everything is put together there and I don't personally use Lutris. But someone mentioned that it's an issue that might exist in Lutris as well, for similar reasons of using an internal Mesa version from Flatpak instead of Valve's Mesa. Which is from my understanding something you might control because the way your flatpak is put together decides whether you use Flatpak's Mesa or a system-installed one?

This is not a Heroic issue. The Steam OS is the one that decides which Mesa version will be used.

You can try to maybe enable the steam runtime and see if it fixes or follow some online tutorial on how to use Mesa-GIT with flatpak and then pass the environment variables on the game settings on Heroic. I would follow these steps to see if it fixes, but other than that we can close this since it is not a Heroic issue.

helifax commented 9 months ago

Ok.. I was able to get HDR to work correctly both in Cyberpunk 2077 and Witcher 3 from GoG:

So it seems that when launched through Steam Game Mode it works correctly but not from Heroic and not in Desktop Mode.

Shanayara commented 9 months ago

I can confirm that the method @helifax proposes works fine. The downside of course being that this disables all of Heroic's features, i.e. there is no seperate wine prefix used and savegame cloud sync no longer works.

Does that not show that it's a Heroic issue, @flavioislima? I mean, SteamOS can apparently run the game fine with HDR when just launched directly. But Heroic is there to build stuff around that to make it more convenient to use, and clearly something there is what breaks the HDR.

I tried your suggestion to launch it with Steam Runtime but inside gamescope ("game mode" UI) this fails, with the Heroic logs saying that no running instance of Steam was detected. Is that supposed to be that way? In Desktop mode I can run games with Steam Runtime enabled, but that's pointless because Desktop mode has no HDR support.

flavioislima commented 9 months ago

I can confirm that the method @helifax proposes works fine. The downside of course being that this disables all of Heroic's features, i.e. there is no seperate wine prefix used and savegame cloud sync no longer works.

Does that not show that it's a Heroic issue, @flavioislima? I mean, SteamOS can apparently run the game fine with HDR when just launched directly. But Heroic is there to build stuff around that to make it more convenient to use, and clearly something there is what breaks the HDR.

I tried your suggestion to launch it with Steam Runtime but inside gamescope ("game mode" UI) this fails, with the Heroic logs saying that no running instance of Steam was detected. Is that supposed to be that way? In Desktop mode I can run games with Steam Runtime enabled, but that's pointless because Desktop mode has no HDR support.

Yeah, Steam itself has their own way of implementing the HDR.

We are trying to build gamescope with HDR support for the flatpak, this might solve the issue, but let's see.

rakonkido commented 9 months ago

Fwiw, the Chiaki4Deck folks figured out a way to get HDR working through Flatpak: https://github.com/streetpea/chiaki4deck/issues/93

jptrzy commented 9 months ago

I have the same issue on my sd oled

yoyossef commented 9 months ago

FYI: Chiaki4Deck released HDR support (with flatpak) now https://github.com/streetpea/chiaki4deck/releases/tag/v1.5.0

Freewheelin123 commented 9 months ago

Ok.. I was able to get HDR to work correctly both in Cyberpunk 2077 and Witcher 3 from GoG:

  • Downloaded using Heroic.
  • In steam desktop mode, I added the games as non-steam games
  • Under compatibility tab (properties) I hit override and used Proton 8
  • Restarted the SteamDeck so it boots in game mode. (HDR is disabled in-game if launched from Desktop mode).
  • Started the games and HDR was available. Both HDR PQ 10 and Srgb are working fine and you can calibrate them.

So it seems that when launched through Steam Game Mode it works correctly but not from Heroic and not in Desktop Mode.

I tried these instructions yesterday with Cyberpunk 2077 (downloaded from Epic through Heroic) and it works absolutely fine.

mashinboo commented 9 months ago
QaAndreii commented 8 months ago

The method indicated here works, but, unfortunately, games from EGS often require additional “torment” in the form of installing an EGS client (when you run the added .exe in Steam, it complains about the lack of an EGS client). Is there any timeline for trying to implement hdr for flatpak or maybe just re-open this issue for easier tracking by users (you can also change it from a bug to a feature request if it doesn’t fit the bug criteria)?

flavioislima commented 8 months ago

We are working on this.

flavioislima commented 8 months ago

This is the Flatpak PR that should fix this issue, I will merge it soon and then Heroic Flatpak will ask for an update on Discover or any other store and then you guys can test. I don't have a Steam Deck oled to test yet.

https://github.com/flathub/com.heroicgameslauncher.hgl/pull/115

flavioislima commented 8 months ago

The PR was merged and the update was published so keep an eye on discover for updates and let us know if it worked.

QaAndreii commented 8 months ago

The PR was merged and the update was published so keep an eye on discover for updates and let us know if it worked.

I now had refresh 2.12.0 available in discover, is this it? Also, will it be necessary to reinstall the game or delete it and add it to Steam again? So far I tried it after updating to refresh, without changing anything, it does not work the same, that is, everything becomes faded (the game Guardian's of the Galaxy from EGS) UPDATE - tried simple re-add game to Steam - no success (maybe it wasn't needed update or this game damned).

flavioislima commented 8 months ago

The PR was merged and the update was published so keep an eye on discover for updates and let us know if it worked.

I now had refresh 2.12.0 available in discover, is this it? Also, will it be necessary to reinstall the game or delete it and add it to Steam again? So far I tried it after updating to refresh, without changing anything, it does not work the same, that is, everything becomes faded (the game Guardian's of the Galaxy from EGS).

Just update to the refreshed version. Nothing else needed I believe.

I know some games needs to have DXVK_HDR=1 as an env variable for HDR to work though, and on latest proton experimental as well.

flavioislima commented 8 months ago

The PR was merged and the update was published so keep an eye on discover for updates and let us know if it worked.

So far I tried it after updating to refresh, without changing anything, it does not work the same, that is, everything becomes faded (the game Guardian's of the Galaxy from EGS).

I don't really know why it would be 'faded' like you said. Have you enabled HDR on the Game settings that appear when the game is launched?

QaAndreii commented 8 months ago

The PR was merged and the update was published so keep an eye on discover for updates and let us know if it worked.

I now had refresh 2.12.0 available in discover, is this it? Also, will it be necessary to reinstall the game or delete it and add it to Steam again? So far I tried it after updating to refresh, without changing anything, it does not work the same, that is, everything becomes faded (the game Guardian's of the Galaxy from EGS).

Just update to the refreshed version. Nothing else needed I believe.

I know some games needs to have DXVK_HDR=1 as an env variable for HDR to work though, and on latest proton experimental as well.

Here are the changes that I tried (some of the advice is from here, some from the hdr reddit thread on steam deck oled): 1) at first I just used proton ge 8.25 2) then I added env variables (as mentioned for this game on reddit) DXVK_HDR=1 PROTON_ENABLE_AMD_AGS=1 - unsuccessful 3) Next updated heroic launcher, re-launch on ge 8.25 and the specified env variables - unsuccessful. 4) Removed env variables - unsuccessful. 5) Changed proton to experimental - unsuccessful. 6) Added env variables (both DXVK_HDR=1 PROTON_ENABLE_AMD_AGS=1) - unsuccessful 7) Then left only DXVK_HDR=1 - also unsuccessful

QaAndreii commented 8 months ago

The PR was merged and the update was published so keep an eye on discover for updates and let us know if it worked.

So far I tried it after updating to refresh, without changing anything, it does not work the same, that is, everything becomes faded (the game Guardian's of the Galaxy from EGS).

I don't really know why it would be 'faded' like you said. Have you enabled HDR on the Game settings that appear when the game is launched?

Yes, I switch, the colors immediately become “faded”. The color becomes different from the standard SDR picture (just like it was before the heroic launcher update). At the same time, the hdr mode itself does not turn on the Steam deck oled (when it works there is information in the overlay and the brightness changes to hdr brightness in the settings side panel)

QaAndreii commented 8 months ago

PXL_20240110_193928322 PXL_20240110_193913600

This is what I mean by “faded” colors (where there are more “saturated” colors - hdr is turned off in the game settings). And in the second image - this is how hdr content is usually displayed when hdr mode is not enabled on the device. Sorry for the level of my English (working with a translator).

flavioislima commented 8 months ago

No need to sorry the english is fine.

Yeah, I also tried here on my monitor, not OLED but has HDR, and I see no difference with this new build. So we will keep investigating to try to figure it out.

I wonder if even on Steam Deck we need to enable Gamescope with the HDR options or not, because I believe that every game launched on gamemode will use gamescope by default.

flavioislima commented 8 months ago

@QaAndreii can you try one more thing? Can you install Lutris and Bottles and see if HDR works with them? so then we can maybe have a hint on what we are missing.

QaAndreii commented 8 months ago

@QaAndreii can you try one more thing? Can you install Lutris and Bottles and see if HDR works with them? so then we can maybe have a hint on what we are missing.

I haven't used them, but I'll try. Went to look and read some manual.

QaAndreii commented 8 months ago

@QaAndreii can you try one more thing? Can you install Lutris and Bottles and see if HDR works with them? so then we can maybe have a hint on what we are missing.

I haven't used lutris before, but I still managed to hate it in just a few hours... In Guardian of the Galaxy, HDR doesn't work either. I haven’t tried Bottles (I’m afraid I’ll encounter the same interesting “quest”... either crashes or an incomprehensible error 256...).

rakonkido commented 8 months ago

Can you install Lutris and Bottles and see if HDR works with them

HDR through Lutris on Steam Deck does not work as they have not implemented Gamescope HDR support in the Flatpak. Should be the same for Bottles.

Also, I can confirm all of @QaAndreii's reports, but I found the problem. Skip to the end of this post for the solution.

Testing process: I updated Heroic Games Launcher and also tested Guardians of the Galaxy, a reference point since I've tested the Steam version and know it works perfectly with HDR. To get the EGS version working better you might want -nolauncher in the game's additional arguments in Heroic. I think PROTON_ENABLE_AMD_AGS=1 (and thus Proton itself) is only needed when there's a launcher.

When launching in Game Mode, it displays the following error:

CreateSwapchainKHR: Creating swapchain for non-Gamescope swapchain. Hooking has failed somewhere! You may have a bad Vulkan layer interfering. Press OK to try to power through this error, or Cancel to stop.

If I press OK, I get an almost identical error but instead saying QueuePresentKHR: Attempting to present to a non-hooked swapchain. If I press OK on that, I see the loading screen and the game proceeds as normal. This error only appears in Game Mode.

(I can get rid of these errors by reverting to an earlier version of Gamescope Flatpak -- e.g. flatpak update --commit=0b3543a920d07271426945f9ebde207de89232475d6f6ba8bf98ff7cb3f2590e runtime/org.freedesktop.Platform.VulkanLayer.gamescope/x86_64/23.08 -- but I'd prefer to still run the latest version for the purposes of this test.)

If I go to Settings and enable HDR, I see washed-out colors. Much like my experience trying to run Diablo IV through Lutris, this probably indicates that the game is able to detect the display's HDR capability and tries to display it in HDR, but the HDR colors aren't getting passed through properly, resulting in a washed-out appearance. (Usually, a game that detects your display doesn't support HDR won't even allow you to enable it.) I can also see through the Quick Access Menu's brightness slider that it's not displaying in HDR mode.

I tested under the following conditions:

As a next step, I went to the logs generated by Heroic and saw:

[Gamescope WSI] Failed to connect to gamescope socket: gamescope-0. Bypass layer will be unavailable

The Chiaki4deck thread referenced earlier also referenced this error. The solution is:

Next I retried Guardians of the Galaxy using the last configuration I had tested earlier (Proton Experimental with the two env variables). Now HDR is working (colors aren't washed out, and QAM shows HDR is truly enabled), plus I'm no longer seeing the CreateSwapchainKHR error on launch.

rakonkido commented 8 months ago

Did some further testing and confirmed that you don't need Proton (which should ideally only be used for Steam games) or any environment variables to get EGS version of Guardians of the Galaxy HDR working in the current version of Heroic.

Here's a TL;DR:

Can anyone else confirm this works?

flavioislima commented 8 months ago

@rakonkido on my screen I get the same results by following your guide.

the weird part is that I also tested now CP2077 on both Heroic and as a non-steam game and launched it through the gamescope-session following the HDR guide from Arch Wiki to setup and I get the same results.

Then I decided to see how it works on Windows and it is completely different, no blooming effects with weird brightness or washed out colors so I am not sure what is happening exactly. We will try to talk with people that work with HDR on linux to see what is missing.

QaAndreii commented 8 months ago
  • In desktop mode, go to Settings > Flatpak Permissions Settings
  • Under Filesystem, add xdg-run/gamescope-0. You can keep it as read-only.

Strange, it didn’t lead to your result. Do I understand correctly that this needs to be added for the heroic launcher in the settings "Add xdg-run/gamescope-0 (read-only) to Filesystem under Flatpak Permissions Settings inside the System Settings app"? I added -nolauncher (I didn’t have any errors when starting), two env variables and checked with proton experimental and with proton ge 8-25, the results are the same, I checked the heroic log there as follows.

heroic log
`Launching "Marvel's Guardians of the Galaxy" (legendary)
Native? No
Installed in: /home/deck/Games/Heroic/MarvelGOTG

System Info:
CPU: 8x AMD Custom APU 0405
Memory: 12.36 GB (used: 2.34 GB)
GPUs:
  GPU 0:
    Name: Advanced Micro Devices, Inc. [AMD/ATI] undefined
    IDs: D=1435 V=1002 SD=0123 SV=1002
    Driver: amdgpu
OS: SteamOS 3.5.7 holo (linux)

The current system is a Steam Deck (model: OLED) in game mode
We are running inside a Flatpak container

Software Versions:
  Heroic: 2.12.0 Vegapunk
  Legendary: 0.20.34 Direct Intervention
  gogdl: 0.7.3
  Nile: 1.0.0 Jonathan Joestar

Game Settings: {
    "autoInstallDxvk": true,
    "autoInstallVkd3d": true,
    "preferSystemLibs": false,
    "enableEsync": true,
    "enableFsync": true,
    "launcherArgs": "-nolauncher",
    "nvidiaPrime": false,
    "offlineMode": false,
    "enviromentOptions": [
        {
            "key": "DXVK_HDR",
            "value": "1"
        },
        {
            "key": "PROTON_ENABLE_AMD_AGS",
            "value": "1"
        }
    ],
    "wrapperOptions": [],
    "savesPath": "/home/deck/Games/Heroic/Prefixes/default/Marvels Guardians of the Galaxy/pfx/drive_c/users/steamuser/AppData/Roaming/Epic/Eidos Montreal/Marvel's Guardians of the Galaxy",
    "showFps": false,
    "targetExe": "",
    "useGameMode": true,
    "useSteamRuntime": false,
    "language": "",
    "wineVersion": {
        "bin": "/home/deck/.local/share/Steam/compatibilitytools.d/GE-Proton8-25/proton",
        "name": "Proton - GE-Proton8-25",
        "type": "proton"
    },
    "winePrefix": "/home/deck/Games/Heroic/Prefixes/default/Marvels Guardians of the Galaxy",
    "wineCrossoverBottle": "",
    "ignoreGameUpdates": true
}

Game launched at: Thu Jan 11 2024 13:24:14 GMT+0200 (Eastern European Standard Time)

Launch Command: SteamGameId=heroic-MarvelGOTG HEROIC_APP_NAME=63a665088eb1480298f1e57943b225d8 HEROIC_APP_RUNNER=legendary HEROIC_APP_SOURCE=epic PROTON_ENABLE_AMD_AGS=1 DOTNET_BUNDLE_EXTRACT_BASE_DIR= DOTNET_ROOT= STEAM_COMPAT_CLIENT_INSTALL_PATH=/home/deck/.var/app/com.heroicgameslauncher.hgl/.steam/steam STEAM_COMPAT_DATA_PATH="/home/deck/Games/Heroic/Prefixes/default/Marvels Guardians of the Galaxy" STEAM_COMPAT_INSTALL_PATH=/home/deck/Games/Heroic/MarvelGOTG WINE_FULLSCREEN_FSR=0 STEAM_COMPAT_APP_ID=0 PROTON_LOG_DIR=/home/deck/.var/app/com.heroicgameslauncher.hgl /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary launch 63a665088eb1480298f1e57943b225d8 -nolauncher --no-wine --wrapper "/app/bin/gamemoderun '/home/deck/.local/share/Steam/compatibilitytools.d/GE-Proton8-25/proton' run" --language ru --skip-version-check

Game Log:
[cli] INFO: Logging in...
[Core] INFO: Trying to re-use existing login session...
[Core] INFO: Getting authentication token...
[Core] INFO: Getting ownership token.
[cli] INFO: Launching 63a665088eb1480298f1e57943b225d8...
gamemodeauto: 
gamemodeauto: 
fsync: up and running.
wine: RLIMIT_NICE is <= 20, unable to use setpriority safely
ATTENTION: default value of option vk_xwayland_wait_ready 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.
ATTENTION: default value of option vk_xwayland_wait_ready 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.
ATTENTION: default value of option vk_xwayland_wait_ready 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.
ATTENTION: default value of option vk_xwayland_wait_ready 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.
ATTENTION: default value of option vk_xwayland_wait_ready 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.
[S_API] SteamAPI_Init(): SteamAPI_IsSteamRunning() did not locate a running instance of Steam.
[S_API FAIL] SteamAPI_Init() failed
ATTENTION: default value of option vk_xwayland_wait_ready 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.
ATTENTION: default value of option vk_xwayland_wait_ready 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.
ATTENTION: default value of option vk_xwayland_wait_ready 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.
ATTENTION: default value of option vk_xwayland_wait_ready 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.
ATTENTION: default value of option vk_xwayland_wait_ready 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.
ATTENTION: default value of option vk_xwayland_wait_ready 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.
radv: Can't open file: '/tmp/radv_vrs.DaIa0fW6'.
radv: Failed to initialize the notifier for RADV_FORCE_VRS_CONFIG_FILE!
ATTENTION: default value of option vk_xwayland_wait_ready 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.
radv: Can't open file: '/tmp/radv_vrs.DaIa0fW6'.
radv: Failed to initialize the notifier for RADV_FORCE_VRS_CONFIG_FILE!
ATTENTION: default value of option vk_xwayland_wait_ready 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.
radv: Can't open file: '/tmp/radv_vrs.DaIa0fW6'.
radv: Failed to initialize the notifier for RADV_FORCE_VRS_CONFIG_FILE!
ATTENTION: default value of option vk_xwayland_wait_ready 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.
radv: Can't open file: '/tmp/radv_vrs.DaIa0fW6'.
radv: Failed to initialize the notifier for RADV_FORCE_VRS_CONFIG_FILE!
Cant find the RootSig
X connection to :1 broken (explicit kill or server shutdown).
X connection to :1 broken (explicit kill or server shutdown).
X connection to :1 broken (explicit kill or server shutdown).
X connection to :1 broken (explicit kill or server shutdown).
X connection to :1 broken (explicit kill or server shutdown).
    

UPDATE Tried with latest Wine-GE - still the same result.

flavioislima commented 8 months ago

@QaAndreii I just released a new Heroic refresh update that adds this permission so you don't need to anymore. Just update from the Discover store. Although I don't think it will fix the issue. But worth to try.

QaAndreii commented 8 months ago

@QaAndreii I just released a new Heroic refresh update that adds this permission so you don't need to anymore. Just update from the Discover store. Although I don't think it will fix the issue. But worth to try.

I think I’ve already updated, you reassured me (I wanted to roll back this option since it didn’t help, but it’s already without the ability to turn off the checkbox, and this is just the result of a refresh).

rakonkido commented 8 months ago

Let's make sure we're on the same environment:

(deck@steamdeck ~)$ flatpak info com.heroicgameslauncher.hgl

Heroic Games Launcher - An Open Source Epic Games, GOG and Amazon Prime Games
Launcher.

          ID: com.heroicgameslauncher.hgl
         Ref: app/com.heroicgameslauncher.hgl/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: v2.12.0
     License: GPL-3.0
      Origin: flathub
  Collection: org.flathub.Stable
Installation: system
   Installed: 403.1 MB
     Runtime: org.freedesktop.Platform/x86_64/23.08
         Sdk: org.freedesktop.Sdk/x86_64/23.08

      Commit: 0d96d16cf7e3bdb5c49e3ecc98e1f27f66e6b28de4d5c1c46dc101d3478f2a4b
      Parent: 5b989b35d10c0b0ede9ecfc3ce67a2aa464aa1750f326f9c2ed3ba513e9629d7
     Subject: Add support for gamescope-0 in filesystem (58360562)
        Date: 2024-01-11 09:11:42 +0000
(deck@steamdeck ~)$ flatpak info org.freedesktop.Platform.VulkanLayer.gamescope/x86_64/23.08

gamescope - The micro-compositor formerly known as steamcompmgr

          ID: org.freedesktop.Platform.VulkanLayer.gamescope
         Ref: runtime/org.freedesktop.Platform.VulkanLayer.gamescope/x86_64/23.08
        Arch: x86_64
      Branch: 23.08
     Version: 3.13.19
     License: BSD-2-Clause
      Origin: flathub
  Collection: org.flathub.Stable
Installation: system
   Installed: 15.8 MB

      Commit: b587d0631367633247ab646b48faa76d7d44d9a6bdede23b34e2409f26e9e075
      Parent: ee3b7a03fc18e49e5ce967293a91adfb2d174336939851eba5e0dbf94ac10961
     Subject: Rely on gamescope repos submodules for keeping dependencies up to date (#91) (ab6294a1)
        Date: 2023-12-20 18:11:53 +0000
rakonkido commented 8 months ago

the weird part is that I also tested now CP2077 on both Heroic and as a non-steam game and launched it through the gamescope-session following the HDR guide from Arch Wiki to setup and I get the same results.

@flavioislima Is this on SteamOS? It should work on Steam Deck LCD on an external HDR display (with HDR manually toggled on), but I'm not sure if the approach is generalizable yet outside the SteamOS environment

flavioislima commented 8 months ago

I have not tried on SteamDeck yet because I don't have these games installed there. I was testing on EndeavourOS on Plasma 6 beta with HDR enabled and gamescope-session git with Steam started as: STEAM_MULTIPLE_XWAYLANDS=1 gamescope -e -W 3840 -H 2160 -r 96 --xwayland-count 2 --hdr-enabled -- steam -gamepadui -steamdeck -steamos

This is my env and it looks similar:


Heroic Games Launcher - An Open Source Epic Games, GOG and Amazon Prime Games
Launcher.

        ID: com.heroicgameslauncher.hgl
       Ref: app/com.heroicgameslauncher.hgl/x86_64/stable
      Arq.: x86_64
      Ramo: stable
    Versão: v2.12.0
   Licença: GPL-3.0
    Origem: flathub
   Coleção: org.flathub.Stable
Instalação: user
 Instalado: 403,1 MB
   Runtime: org.freedesktop.Platform/x86_64/23.08
       Sdk: org.freedesktop.Sdk/x86_64/23.08

    Commit: 0d96d16cf7e3bdb5c49e3ecc98e1f27f66e6b28de4d5c1c46dc101d3478f2a4b
       Pai: 5b989b35d10c0b0ede9ecfc3ce67a2aa464aa1750f326f9c2ed3ba513e9629d7
   Assunto: Add support for gamescope-0 in filesystem (58360562)
      Data: 2024-01-11 09:11:42 +0000

gamescope - The micro-compositor formerly known as steamcompmgr

        ID: org.freedesktop.Platform.VulkanLayer.gamescope
       Ref: runtime/org.freedesktop.Platform.VulkanLayer.gamescope/x86_64/23.08
      Arq.: x86_64
      Ramo: 23.08
    Versão: 3.13.19
   Licença: BSD-2-Clause
    Origem: flathub
   Coleção: org.flathub.Stable
Instalação: system
 Instalado: 15,8 MB

    Commit: b587d0631367633247ab646b48faa76d7d44d9a6bdede23b34e2409f26e9e075
       Pai: ee3b7a03fc18e49e5ce967293a91adfb2d174336939851eba5e0dbf94ac10961
   Assunto: Rely on gamescope repos submodules for keeping dependencies up to date (#91) (ab6294a1)
      Data: 2023-12-20 18:11:53 +0000
rakonkido commented 8 months ago

From the PR that adds the LD library path - where did /usr/lib/extensions/vulkan/gamescope/lib come from? I don't actually know where this folder is

rakonkido commented 8 months ago

Here is my Heroic log from confirmed working HDR:

63a665088eb1480298f1e57943b225d8-lastPlay.log

@QaAndreii can you post your log from your Wine-GE run? Looks like Wine-GE gives a lot more verbose output

QaAndreii commented 8 months ago

@QaAndreii can you post your log from your Wine-GE run? Looks like Wine-GE gives a lot more verbose output

heroic wine-ge log
Launching "Marvel's Guardians of the Galaxy" (legendary)
Native? No
Installed in: /home/deck/Games/Heroic/MarvelGOTG

System Info:
CPU: 8x AMD Custom APU 0405
Memory: 12.36 GB (used: 3.09 GB)
GPUs:
  GPU 0:
    Name: Advanced Micro Devices, Inc. [AMD/ATI] undefined
    IDs: D=1435 V=1002 SD=0123 SV=1002
    Driver: amdgpu
OS: SteamOS 3.5.7 holo (linux)

The current system is a Steam Deck (model: OLED) in game mode
We are running inside a Flatpak container

Software Versions:
  Heroic: 2.12.0 Vegapunk
  Legendary: 0.20.34 Direct Intervention
  gogdl: 0.7.3
  Nile: 1.0.0 Jonathan Joestar

Game Settings: {
    "autoInstallDxvk": true,
    "autoInstallVkd3d": true,
    "preferSystemLibs": false,
    "enableEsync": true,
    "enableFsync": true,
    "launcherArgs": "-nolauncher",
    "nvidiaPrime": false,
    "offlineMode": false,
    "enviromentOptions": [
        {
            "key": "DXVK_HDR",
            "value": "1"
        },
        {
            "key": "PROTON_ENABLE_AMD_AGS",
            "value": "1"
        }
    ],
    "wrapperOptions": [],
    "savesPath": "/home/deck/Games/Heroic/Prefixes/default/Marvels Guardians of the Galaxy/pfx/drive_c/users/steamuser/AppData/Roaming/Epic/Eidos Montreal/Marvel's Guardians of the Galaxy",
    "showFps": false,
    "targetExe": "",
    "useGameMode": true,
    "useSteamRuntime": false,
    "language": "",
    "wineVersion": {
        "bin": "/home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-latest/bin/wine",
        "name": "Wine - Wine-GE-latest",
        "type": "wine",
        "lib": "/home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-latest/lib64",
        "lib32": "/home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-latest/lib",
        "wineserver": "/home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-latest/bin/wineserver"
    },
    "winePrefix": "/home/deck/Games/Heroic/Prefixes/default/Marvels Guardians of the Galaxy",
    "wineCrossoverBottle": "",
    "ignoreGameUpdates": false,
    "battlEyeRuntime": true,
    "eacRuntime": true
}

Game launched at: Thu Jan 11 2024 19:07:25 GMT+0200 (Eastern European Standard Time)

Launch Command: WINEDLLOVERRIDES=winemenubuilder.exe=d LD_LIBRARY_PATH=/home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-latest/lib64:/home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-latest/lib:/usr/lib/extensions/vulkan/gamescope/lib HEROIC_APP_NAME=63a665088eb1480298f1e57943b225d8 HEROIC_APP_RUNNER=legendary HEROIC_APP_SOURCE=epic PROTON_ENABLE_AMD_AGS=1 DOTNET_BUNDLE_EXTRACT_BASE_DIR= DOTNET_ROOT= WINEPREFIX="/home/deck/Games/Heroic/Prefixes/default/Marvels Guardians of the Galaxy" WINE_FULLSCREEN_FSR=0 WINEESYNC=1 WINEFSYNC=1 PROTON_EAC_RUNTIME=/home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/runtimes/eac_runtime PROTON_BATTLEYE_RUNTIME=/home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/runtimes/battleye_runtime ORIG_LD_LIBRARY_PATH=/usr/lib/extensions/vulkan/gamescope/lib GST_PLUGIN_SYSTEM_PATH_1_0=/home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-latest/lib64/gstreamer-1.0:/home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-latest/lib/gstreamer-1.0 WINEDLLPATH=/home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-latest/lib64/wine:/home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-latest/lib/wine /app/bin/heroic/resources/app.asar.unpacked/build/bin/linux/legendary launch 63a665088eb1480298f1e57943b225d8 -nolauncher --wine /home/deck/.var/app/com.heroicgameslauncher.hgl/config/heroic/tools/wine/Wine-GE-latest/bin/wine --wrapper /app/bin/gamemoderun --language ru --skip-version-check

Game Log:
[cli] INFO: Logging in...
[Core] INFO: Trying to re-use existing login session...
[Core] INFO: Getting authentication token...
[Core] INFO: Getting ownership token.
[cli] INFO: Launching 63a665088eb1480298f1e57943b225d8...
gamemodeauto: 
wine: using kernel write watches (experimental).
fsync: up and running.
wine: RLIMIT_NICE is <= 20, unable to use setpriority safely
wine: overriding CPU configuration, 8 logical CPUs, host CPUs 0,1,2,3,4,5,6,7.
wine: using kernel write watches (experimental).
wine: overriding CPU configuration, 8 logical CPUs, host CPUs 0,1,2,3,4,5,6,7.
002c:fixme:winediag:LdrInitializeThunk wine-staging 8.0 is a testing version containing experimental patches.
002c:fixme:winediag:LdrInitializeThunk Please mention your exact version when filing bug reports on winehq.org.
wine: using kernel write watches (experimental).
wine: overriding CPU configuration, 8 logical CPUs, host CPUs 0,1,2,3,4,5,6,7.
wine: using kernel write watches (experimental).
wine: overriding CPU configuration, 8 logical CPUs, host CPUs 0,1,2,3,4,5,6,7.
wine: using kernel write watches (experimental).
wine: overriding CPU configuration, 8 logical CPUs, host CPUs 0,1,2,3,4,5,6,7.
006c:err:wineusb:DriverEntry Failed to initialize Unix library, status 0xc0000135.
006c:err:ntoskrnl:ZwLoadDriver failed to create driver L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\wineusb": c0000135
0034:fixme:service:scmdatabase_autostart_services Auto-start service L"wineusb" failed to start: 126
wine: using kernel write watches (experimental).
wine: overriding CPU configuration, 8 logical CPUs, host CPUs 0,1,2,3,4,5,6,7.
0088:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0088:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0088:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
0088:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
009c:err:hid:udev_bus_init UDEV monitor creation failed
00a4:fixme:hid:handle_IRP_MN_QUERY_ID Unhandled type 00000005
00a4:fixme:xinput:pdo_pnp IRP_MN_QUERY_ID type 5, not implemented!
00a4:fixme:xinput:pdo_pnp IRP_MN_QUERY_ID type 5, not implemented!
00a4:fixme:xinput:pdo_pnp IRP_MN_QUERY_ID type 5, not implemented!
00a4:fixme:xinput:pdo_pnp IRP_MN_QUERY_ID type 5, not implemented!
wine: using kernel write watches (experimental).
wine: overriding CPU configuration, 8 logical CPUs, host CPUs 0,1,2,3,4,5,6,7.
wine: using kernel write watches (experimental).
wine: overriding CPU configuration, 8 logical CPUs, host CPUs 0,1,2,3,4,5,6,7.
wine: using kernel write watches (experimental).
wine: overriding CPU configuration, 8 logical CPUs, host CPUs 0,1,2,3,4,5,6,7.
wine: using kernel write watches (experimental).
wine: overriding CPU configuration, 8 logical CPUs, host CPUs 0,1,2,3,4,5,6,7.
ATTENTION: default value of option vk_xwayland_wait_ready 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.
ATTENTION: default value of option vk_xwayland_wait_ready 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.
ATTENTION: default value of option vk_xwayland_wait_ready 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.
wine: using kernel write watches (experimental).
wine: overriding CPU configuration, 8 logical CPUs, host CPUs 0,1,2,3,4,5,6,7.
wine: using kernel write watches (experimental).
wine: overriding CPU configuration, 8 logical CPUs, host CPUs 0,1,2,3,4,5,6,7.
ATTENTION: default value of option vk_xwayland_wait_ready 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.
ATTENTION: default value of option vk_xwayland_wait_ready 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.
012c:fixme:oleacc:find_class_data unhandled window class: L"#32769"
012c:fixme:uiautomation:uia_get_providers_for_hwnd Override provider callback currently unimplemented.
012c:fixme:uiautomation:msaa_provider_GetPropertyValue Unimplemented propertyId 30024
00ec:err:kerberos:kerberos_LsaApInitializePackage no Kerberos support, expect problems
012c:fixme:uiautomation:msaa_fragment_get_FragmentRoot 0000000000738638, 000000000062FAC0: stub!
00ec:err:ntlm:ntlm_LsaApInitializePackage no NTLM support, expect problems
00ec:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0140:fixme:kernelbase:AppPolicyGetThreadInitializationType FFFFFFFFFFFFFFFA, 0000000002B1FF50
013c:fixme:kernelbase:AppPolicyGetThreadInitializationType FFFFFFFFFFFFFFFA, 000000000291FF50
ATTENTION: default value of option vk_xwayland_wait_ready 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.
0138:fixme:uiautomation:uia_get_providers_for_hwnd Override provider callback currently unimplemented.
0138:fixme:uiautomation:msaa_provider_GetPropertyValue Unimplemented propertyId 30024
0138:fixme:uiautomation:msaa_fragment_get_FragmentRoot 000000000079A6B8, 0000000001D9FAB0: stub!
00ec:fixme:nls:get_dummy_preferred_ui_language (0x8 0x409 0000000000118EF8 0000000000000000 0000000000118EF0) returning a dummy value (current locale)
00ec:fixme:nls:get_dummy_preferred_ui_language (0x8 0x409 0000000000118EF8 00000000002EEA90 0000000000118EF0) returning a dummy value (current locale)
00ec:fixme:ver:GetFileVersionInfoSizeExW flags 0x2 ignored
00ec:fixme:ver:GetFileVersionInfoExW flags 0x2 ignored
info:  Game: gotg.exe
info:  DXVK: v2.3
info:  Vulkan: Found vkGetInstanceProcAddr in winevulkan.dll @ 0x65dc3ff0
info:  Built-in extension providers:
info:    Win32 WSI
info:    OpenVR
info:    OpenXR
info:  OpenVR: could not open registry key, status 2
info:  OpenVR: Failed to locate module
info:  Enabled instance extensions:
info:    VK_EXT_surface_maintenance1
info:    VK_KHR_get_surface_capabilities2
info:    VK_KHR_surface
info:    VK_KHR_win32_surface
ATTENTION: default value of option vk_xwayland_wait_ready 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.
warn:  Skipping CPU adapter: llvmpipe (LLVM 17.0.6, 256 bits)
info:  AMD Radeon Graphics (RADV VANGOGH):
info:    Driver : radv 23.3.2
info:    Memory Heap[0]: 
info:      Size: 4074 MiB
info:      Flags: 0x0
info:      Memory Type[2]: Property Flags = 0x6
info:      Memory Type[5]: Property Flags = 0xe
info:      Memory Type[6]: Property Flags = 0xe
info:      Memory Type[8]: Property Flags = 0xc6
info:      Memory Type[10]: Property Flags = 0xce
info:    Memory Heap[1]: 
info:      Size: 8149 MiB
info:      Flags: 0x1
info:      Memory Type[0]: Property Flags = 0x1
info:      Memory Type[1]: Property Flags = 0x1
info:      Memory Type[3]: Property Flags = 0x7
info:      Memory Type[4]: Property Flags = 0x7
info:      Memory Type[7]: Property Flags = 0xc1
info:      Memory Type[9]: Property Flags = 0xc7
ATTENTION: default value of option vk_xwayland_wait_ready 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.
00ec:fixme:atiadlxx:ADL_Main_Control_Create cb 000000014223BF80, arg 1 stub!
info:  AMD Radeon Graphics (RADV VANGOGH):
info:    Driver : radv 23.3.2
info:    Memory Heap[0]: 
info:      Size: 4074 MiB
info:      Flags: 0x0
info:      Memory Type[2]: Property Flags = 0x6
info:      Memory Type[5]: Property Flags = 0xe
info:      Memory Type[6]: Property Flags = 0xe
info:      Memory Type[8]: Property Flags = 0xc6
info:      Memory Type[10]: Property Flags = 0xce
info:    Memory Heap[1]: 
info:      Size: 8149 MiB
info:      Flags: 0x1
info:      Memory Type[0]: Property Flags = 0x1
info:      Memory Type[1]: Property Flags = 0x1
info:      Memory Type[3]: Property Flags = 0x7
info:      Memory Type[4]: Property Flags = 0x7
info:      Memory Type[7]: Property Flags = 0xc1
info:      Memory Type[9]: Property Flags = 0xc7
00ec:fixme:atiadlxx:ADL2_Main_Control_Create cb 000000014223BF80, arg 1, ptr 0000000006DAD108 stub!
00ec:fixme:atiadlxx:ADL2_Adapter_NumberOfAdapters_Get ptr 0000000000000000, count 0000000006DAD520 stub!
00ec:fixme:atiadlxx:ADL2_Graphics_VersionsX2_Get ptr 0000000000000000, ver 000000000011E9D0 stub!
4496.564:00e8:00ec:info:vkd3d-proton:vkd3d_instance_apply_application_workarounds: Program name: "gotg.exe" (hash: 2df8f18b2b195322)
4496.564:00e8:00ec:info:vkd3d-proton:vkd3d_instance_deduce_config_flags_from_environment: shader_cache is used, global_pipeline_cache is enforced.
4496.564:00e8:00ec:info:vkd3d-proton:vkd3d_config_flags_init_once: VKD3D_CONFIG=''.
4496.564:00e8:00ec:info:vkd3d-proton:vkd3d_get_vk_version: vkd3d-proton - applicationVersion: 2.11.1.
4496.564:00e8:00ec:info:vkd3d-proton:vkd3d_instance_init: vkd3d-proton - build: 105b5b77c9a34fd.
ATTENTION: default value of option vk_xwayland_wait_ready 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.
radv: Can't open file: '/tmp/radv_vrs.7t5YhRzr'.
radv: Failed to initialize the notifier for RADV_FORCE_VRS_CONFIG_FILE!
4496.664:00e8:00ec:info:vkd3d-proton:vkd3d_memory_info_upload_hvv_memory_properties: Topology: No more than 1 device local heap, assuming ReBAR-style access. Using DEVICE_LOCAL | HOST_COHERENT for UPLOAD.
4496.664:00e8:00ec:info:vkd3d-proton:vkd3d_memory_info_init_budgets: Applying resizable BAR budget to memory types: 0x218.
4496.664:00e8:00ec:info:vkd3d-proton:vkd3d_bindless_state_get_bindless_flags: Enabling fast paths for advanced ExecuteIndirect() graphics and compute.
4496.664:00e8:00ec:info:vkd3d-proton:vkd3d_bindless_state_get_bindless_flags: Device supports VK_EXT_mutable_descriptor_type.
4496.664:00e8:00ec:info:vkd3d-proton:vkd3d_bindless_state_get_bindless_flags: Device supports ultra-fast path for descriptor copies.
4496.664:00e8:00ec:info:vkd3d-proton:vkd3d_bindless_state_get_bindless_flags: Device supports packed metadata path for descriptor copies.
4496.664:00e8:00ec:info:vkd3d-proton:vkd3d_bindless_state_add_binding: Device supports VK_EXT_descriptor_buffer!
4496.664:00e8:00ec:info:vkd3d-proton:vkd3d_bindless_state_add_binding: Device supports VK_EXT_descriptor_buffer!
4496.664:00e8:00ec:info:vkd3d-proton:vkd3d_bindless_state_add_binding: Device supports VK_EXT_descriptor_buffer!
4496.664:00e8:00ec:info:vkd3d-proton:d3d12_device_caps_init_shader_model: Enabling support for SM 6.6.
4496.664:00e8:00ec:fixme:vkd3d-proton:d3d12_device_caps_init_feature_options1: TotalLaneCount = 512, may be inaccurate.
4496.664:00e8:00ec:info:vkd3d-proton:d3d12_device_determine_ray_tracing_tier: DXR support enabled.
4496.664:00e8:00ec:info:vkd3d-proton:d3d12_device_determine_ray_tracing_tier: DXR 1.1 support enabled.
4496.664:00e8:00ec:info:vkd3d-proton:d3d12_device_caps_init_feature_level: DX Ultimate supported!
4496.664:00e8:00ec:info:vkd3d-proton:vkd3d_pipeline_library_init_disk_cache: Remapping VKD3D_SHADER_CACHE to: vkd3d-proton.cache.
4496.664:00e8:00ec:info:vkd3d-proton:vkd3d_pipeline_library_init_disk_cache: Attempting to load disk cache from: vkd3d-proton.cache.
4496.672:00e8:017c:info:vkd3d-proton:vkd3d_pipeline_library_disk_thread_main: Performing async setup of stream archive ...
4496.673:00e8:017c:info:vkd3d-proton:vkd3d_pipeline_library_disk_cache_merge: Merging disk caches.
4496.673:00e8:017c:info:vkd3d-proton:vkd3d_pipeline_library_disk_cache_merge: Device teardown request received, stopping parse early.
4496.673:00e8:017c:info:vkd3d-proton:vkd3d_pipeline_library_disk_cache_initial_setup: Merging pipeline libraries took 0.932 ms.
4496.674:00e8:017c:info:vkd3d-proton:vkd3d_pipeline_library_disk_cache_initial_setup: Mapping read-only cache took 0.132 ms.
4496.674:00e8:017c:info:vkd3d-proton:d3d12_pipeline_library_read_blob_stream_format: Device teardown request received, stopping parse early.
4496.674:00e8:017c:info:vkd3d-proton:vkd3d_pipeline_library_disk_cache_initial_setup: Parsing stream archive took 0.011 ms.
4496.674:00e8:017c:info:vkd3d-proton:vkd3d_pipeline_library_disk_thread_main: Done performing async setup of stream archive.
4496.674:00e8:00ec:info:vkd3d-proton:vkd3d_get_vk_version: vkd3d-proton - applicationVersion: 2.11.1.
4496.674:00e8:00ec:info:vkd3d-proton:vkd3d_instance_init: vkd3d-proton - build: 105b5b77c9a34fd.
ATTENTION: default value of option vk_xwayland_wait_ready 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.
radv: Can't open file: '/tmp/radv_vrs.7t5YhRzr'.
radv: Failed to initialize the notifier for RADV_FORCE_VRS_CONFIG_FILE!
4496.773:00e8:00ec:info:vkd3d-proton:vkd3d_memory_info_upload_hvv_memory_properties: Topology: No more than 1 device local heap, assuming ReBAR-style access. Using DEVICE_LOCAL | HOST_COHERENT for UPLOAD.
4496.773:00e8:00ec:info:vkd3d-proton:vkd3d_memory_info_init_budgets: Applying resizable BAR budget to memory types: 0x218.
4496.773:00e8:00ec:info:vkd3d-proton:vkd3d_bindless_state_get_bindless_flags: Enabling fast paths for advanced ExecuteIndirect() graphics and compute.
4496.773:00e8:00ec:info:vkd3d-proton:vkd3d_bindless_state_get_bindless_flags: Device supports VK_EXT_mutable_descriptor_type.
4496.773:00e8:00ec:info:vkd3d-proton:vkd3d_bindless_state_get_bindless_flags: Device supports ultra-fast path for descriptor copies.
4496.773:00e8:00ec:info:vkd3d-proton:vkd3d_bindless_state_get_bindless_flags: Device supports packed metadata path for descriptor copies.
4496.773:00e8:00ec:info:vkd3d-proton:vkd3d_bindless_state_add_binding: Device supports VK_EXT_descriptor_buffer!
4496.773:00e8:00ec:info:vkd3d-proton:vkd3d_bindless_state_add_binding: Device supports VK_EXT_descriptor_buffer!
4496.773:00e8:00ec:info:vkd3d-proton:vkd3d_bindless_state_add_binding: Device supports VK_EXT_descriptor_buffer!
4496.773:00e8:00ec:info:vkd3d-proton:d3d12_device_caps_init_shader_model: Enabling support for SM 6.6.
4496.773:00e8:00ec:fixme:vkd3d-proton:d3d12_device_caps_init_feature_options1: TotalLaneCount = 512, may be inaccurate.
4496.773:00e8:00ec:info:vkd3d-proton:d3d12_device_determine_ray_tracing_tier: DXR support enabled.
4496.773:00e8:00ec:info:vkd3d-proton:d3d12_device_determine_ray_tracing_tier: DXR 1.1 support enabled.
4496.773:00e8:00ec:info:vkd3d-proton:d3d12_device_caps_init_feature_level: DX Ultimate supported!
4496.773:00e8:00ec:info:vkd3d-proton:vkd3d_pipeline_library_init_disk_cache: Remapping VKD3D_SHADER_CACHE to: vkd3d-proton.cache.
4496.773:00e8:00ec:info:vkd3d-proton:vkd3d_pipeline_library_init_disk_cache: Attempting to load disk cache from: vkd3d-proton.cache.
4496.777:00e8:0184:info:vkd3d-proton:vkd3d_pipeline_library_disk_thread_main: Performing async setup of stream archive ...
4496.777:00e8:0184:info:vkd3d-proton:vkd3d_pipeline_library_disk_cache_merge: Merging disk caches.
4496.777:00e8:0184:info:vkd3d-proton:vkd3d_pipeline_library_disk_cache_merge: Device teardown request received, stopping parse early.
4496.777:00e8:0184:info:vkd3d-proton:vkd3d_pipeline_library_disk_cache_initial_setup: Merging pipeline libraries took 0.676 ms.
4496.778:00e8:0184:info:vkd3d-proton:vkd3d_pipeline_library_disk_cache_initial_setup: Mapping read-only cache took 0.181 ms.
4496.778:00e8:0184:info:vkd3d-proton:d3d12_pipeline_library_read_blob_stream_format: Device teardown request received, stopping parse early.
4496.778:00e8:0184:info:vkd3d-proton:vkd3d_pipeline_library_disk_cache_initial_setup: Parsing stream archive took 0.010 ms.
4496.778:00e8:0184:info:vkd3d-proton:vkd3d_pipeline_library_disk_thread_main: Done performing async setup of stream archive.
00ec:fixme:atiadlxx:ADL_Main_Control_Destroy stub!
00ec:fixme:win:NtUserGetKeyboardLayout couldn't return keyboard layout for thread 00f4
00ec:fixme:atiadlxx:ADL2_Main_Control_Create cb 000000014223BF80, arg 1, ptr 0000000007711A38 stub!
00ec:fixme:atiadlxx:ADL2_Adapter_NumberOfAdapters_Get ptr 0000000000000000, count 0000000007711E50 stub!
00ec:fixme:atiadlxx:ADL2_Graphics_VersionsX2_Get ptr 0000000000000000, ver 000000000011ED00 stub!
info:  AMD Radeon Graphics (RADV VANGOGH):
info:    Driver : radv 23.3.2
info:    Memory Heap[0]: 
info:      Size: 4074 MiB
info:      Flags: 0x0
info:      Memory Type[2]: Property Flags = 0x6
info:      Memory Type[5]: Property Flags = 0xe
info:      Memory Type[6]: Property Flags = 0xe
info:      Memory Type[8]: Property Flags = 0xc6
info:      Memory Type[10]: Property Flags = 0xce
info:    Memory Heap[1]: 
info:      Size: 8149 MiB
info:      Flags: 0x1
info:      Memory Type[0]: Property Flags = 0x1
info:      Memory Type[1]: Property Flags = 0x1
info:      Memory Type[3]: Property Flags = 0x7
info:      Memory Type[4]: Property Flags = 0x7
info:      Memory Type[7]: Property Flags = 0xc1
info:      Memory Type[9]: Property Flags = 0xc7
4497.143:00e8:00ec:info:vkd3d-proton:vkd3d_get_vk_version: vkd3d-proton - applicationVersion: 2.11.1.
4497.143:00e8:00ec:info:vkd3d-proton:vkd3d_instance_init: vkd3d-proton - build: 105b5b77c9a34fd.
ATTENTION: default value of option vk_xwayland_wait_ready 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.
radv: Can't open file: '/tmp/radv_vrs.7t5YhRzr'.
radv: Failed to initialize the notifier for RADV_FORCE_VRS_CONFIG_FILE!
4497.229:00e8:00ec:info:vkd3d-proton:vkd3d_memory_info_upload_hvv_memory_properties: Topology: No more than 1 device local heap, assuming ReBAR-style access. Using DEVICE_LOCAL | HOST_COHERENT for UPLOAD.
4497.229:00e8:00ec:info:vkd3d-proton:vkd3d_memory_info_init_budgets: Applying resizable BAR budget to memory types: 0x218.
4497.229:00e8:00ec:info:vkd3d-proton:vkd3d_bindless_state_get_bindless_flags: Enabling fast paths for advanced ExecuteIndirect() graphics and compute.
4497.229:00e8:00ec:info:vkd3d-proton:vkd3d_bindless_state_get_bindless_flags: Device supports VK_EXT_mutable_descriptor_type.
4497.229:00e8:00ec:info:vkd3d-proton:vkd3d_bindless_state_get_bindless_flags: Device supports ultra-fast path for descriptor copies.
4497.229:00e8:00ec:info:vkd3d-proton:vkd3d_bindless_state_get_bindless_flags: Device supports packed metadata path for descriptor copies.
4497.229:00e8:00ec:info:vkd3d-proton:vkd3d_bindless_state_add_binding: Device supports VK_EXT_descriptor_buffer!
4497.229:00e8:00ec:info:vkd3d-proton:vkd3d_bindless_state_add_binding: Device supports VK_EXT_descriptor_buffer!
4497.229:00e8:00ec:info:vkd3d-proton:vkd3d_bindless_state_add_binding: Device supports VK_EXT_descriptor_buffer!
4497.229:00e8:00ec:info:vkd3d-proton:d3d12_device_caps_init_shader_model: Enabling support for SM 6.6.
4497.229:00e8:00ec:fixme:vkd3d-proton:d3d12_device_caps_init_feature_options1: TotalLaneCount = 512, may be inaccurate.
4497.229:00e8:00ec:info:vkd3d-proton:d3d12_device_determine_ray_tracing_tier: DXR support enabled.
4497.229:00e8:00ec:info:vkd3d-proton:d3d12_device_determine_ray_tracing_tier: DXR 1.1 support enabled.
4497.229:00e8:00ec:info:vkd3d-proton:d3d12_device_caps_init_feature_level: DX Ultimate supported!
4497.229:00e8:00ec:info:vkd3d-proton:vkd3d_pipeline_library_init_disk_cache: Remapping VKD3D_SHADER_CACHE to: vkd3d-proton.cache.
4497.229:00e8:00ec:info:vkd3d-proton:vkd3d_pipeline_library_init_disk_cache: Attempting to load disk cache from: vkd3d-proton.cache.
4497.233:00e8:0198:info:vkd3d-proton:vkd3d_pipeline_library_disk_thread_main: Performing async setup of stream archive ...
4497.233:00e8:0198:info:vkd3d-proton:vkd3d_pipeline_library_disk_cache_merge: Merging disk caches.
4497.233:00e8:0198:info:vkd3d-proton:vkd3d_pipeline_library_disk_cache_merge: Device teardown request received, stopping parse early.
4497.233:00e8:0198:info:vkd3d-proton:vkd3d_pipeline_library_disk_cache_initial_setup: Merging pipeline libraries took 0.788 ms.
4497.234:00e8:0198:info:vkd3d-proton:vkd3d_pipeline_library_disk_cache_initial_setup: Mapping read-only cache took 0.175 ms.
4497.234:00e8:0198:info:vkd3d-proton:d3d12_pipeline_library_read_blob_stream_format: Device teardown request received, stopping parse early.
4497.234:00e8:0198:info:vkd3d-proton:vkd3d_pipeline_library_disk_cache_initial_setup: Parsing stream archive took 0.014 ms.
4497.234:00e8:0198:info:vkd3d-proton:vkd3d_pipeline_library_disk_thread_main: Done performing async setup of stream archive.
warn:  CreateDXGIFactory2: Ignoring flags
info:  AMD Radeon Graphics (RADV VANGOGH):
info:    Driver : radv 23.3.2
info:    Memory Heap[0]: 
info:      Size: 4074 MiB
info:      Flags: 0x0
info:      Memory Type[2]: Property Flags = 0x6
info:      Memory Type[5]: Property Flags = 0xe
info:      Memory Type[6]: Property Flags = 0xe
info:      Memory Type[8]: Property Flags = 0xc6
info:      Memory Type[10]: Property Flags = 0xce
info:    Memory Heap[1]: 
info:      Size: 8149 MiB
info:      Flags: 0x1
info:      Memory Type[0]: Property Flags = 0x1
info:      Memory Type[1]: Property Flags = 0x1
info:      Memory Type[3]: Property Flags = 0x7
info:      Memory Type[4]: Property Flags = 0x7
info:      Memory Type[7]: Property Flags = 0xc1
info:      Memory Type[9]: Property Flags = 0xc7
4497.237:00e8:00ec:info:vkd3d-proton:vkd3d_get_vk_version: vkd3d-proton - applicationVersion: 2.11.1.
4497.237:00e8:00ec:info:vkd3d-proton:vkd3d_instance_init: vkd3d-proton - build: 105b5b77c9a34fd.
ATTENTION: default value of option vk_xwayland_wait_ready 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.
radv: Can't open file: '/tmp/radv_vrs.7t5YhRzr'.
radv: Failed to initialize the notifier for RADV_FORCE_VRS_CONFIG_FILE!
4497.321:00e8:00ec:info:vkd3d-proton:vkd3d_memory_info_upload_hvv_memory_properties: Topology: No more than 1 device local heap, assuming ReBAR-style access. Using DEVICE_LOCAL | HOST_COHERENT for UPLOAD.
4497.321:00e8:00ec:info:vkd3d-proton:vkd3d_memory_info_init_budgets: Applying resizable BAR budget to memory types: 0x218.
4497.326:00e8:00ec:info:vkd3d-proton:vkd3d_bindless_state_get_bindless_flags: Enabling fast paths for advanced ExecuteIndirect() graphics and compute.
4497.326:00e8:00ec:info:vkd3d-proton:vkd3d_bindless_state_get_bindless_flags: Device supports VK_EXT_mutable_descriptor_type.
4497.326:00e8:00ec:info:vkd3d-proton:vkd3d_bindless_state_get_bindless_flags: Device supports ultra-fast path for descriptor copies.
4497.326:00e8:00ec:info:vkd3d-proton:vkd3d_bindless_state_get_bindless_flags: Device supports packed metadata path for descriptor copies.
4497.326:00e8:00ec:info:vkd3d-proton:vkd3d_bindless_state_add_binding: Device supports VK_EXT_descriptor_buffer!
4497.326:00e8:00ec:info:vkd3d-proton:vkd3d_bindless_state_add_binding: Device supports VK_EXT_descriptor_buffer!
4497.326:00e8:00ec:info:vkd3d-proton:vkd3d_bindless_state_add_binding: Device supports VK_EXT_descriptor_buffer!
4497.326:00e8:00ec:info:vkd3d-proton:d3d12_device_caps_init_shader_model: Enabling support for SM 6.6.
4497.326:00e8:00ec:fixme:vkd3d-proton:d3d12_device_caps_init_feature_options1: TotalLaneCount = 512, may be inaccurate.
4497.326:00e8:00ec:info:vkd3d-proton:d3d12_device_determine_ray_tracing_tier: DXR support enabled.
4497.326:00e8:00ec:info:vkd3d-proton:d3d12_device_determine_ray_tracing_tier: DXR 1.1 support enabled.
4497.326:00e8:00ec:info:vkd3d-proton:d3d12_device_caps_init_feature_level: DX Ultimate supported!
4497.326:00e8:00ec:info:vkd3d-proton:vkd3d_pipeline_library_init_disk_cache: Remapping VKD3D_SHADER_CACHE to: vkd3d-proton.cache.
4497.326:00e8:00ec:info:vkd3d-proton:vkd3d_pipeline_library_init_disk_cache: Attempting to load disk cache from: vkd3d-proton.cache.
4497.328:00e8:01a0:info:vkd3d-proton:vkd3d_pipeline_library_disk_thread_main: Performing async setup of stream archive ...
4497.329:00e8:01a0:info:vkd3d-proton:vkd3d_pipeline_library_disk_cache_merge: Merging disk caches.
4497.331:00e8:01a0:info:vkd3d-proton:vkd3d_pipeline_library_disk_cache_merge: Done merging shader caches, existing entries: 782, new entries: 1.
4497.332:00e8:01a0:info:vkd3d-proton:vkd3d_pipeline_library_disk_cache_merge: Successfully replaced shader cache with merged cache.
4497.332:00e8:01a0:info:vkd3d-proton:vkd3d_pipeline_library_disk_cache_initial_setup: Merging pipeline libraries took 4.340 ms.
4497.332:00e8:01a0:info:vkd3d-proton:vkd3d_pipeline_library_disk_cache_initial_setup: Mapping read-only cache took 0.208 ms.
4497.332:00e8:01a0:info:vkd3d-proton:vkd3d_pipeline_library_disk_cache_initial_setup: Parsing stream archive took 0.391 ms.
4497.332:00e8:01a0:info:vkd3d-proton:vkd3d_pipeline_library_disk_thread_main: Done performing async setup of stream archive.
00ec:fixme:gdi:D3DKMTEnumAdapters2 param 000000000011ECD0 stub.
00ec:fixme:mmdevapi:SAC_GetMaxDynamicObjectCount (00000000064A2AB0)->(000000000011F3C0)
01f4:fixme:wbemprox:client_security_SetBlanket 000000006E7A0E40, 00000000077320F0, 10, 0, (null), 3, 3, 0000000000000000, 0
01f4:fixme:wbemprox:client_security_Release 000000006E7A0E40
01f4:fixme:wbemprox:enum_class_object_Next timeout not supported
0138:fixme:uiautomation:uia_get_providers_for_hwnd Override provider callback currently unimplemented.
0138:fixme:uiautomation:msaa_provider_GetPropertyValue Unimplemented propertyId 30024
0138:fixme:uiautomation:msaa_fragment_get_FragmentRoot 000000000079A738, 0000000001D9FAB0: stub!
00ec:fixme:system:NtUserSystemParametersInfo Unimplemented action: 59 (SPI_SETSTICKYKEYS)
00f4:fixme:imm:ImeSetActiveContext himc 0000000000010026, flag 0 stub!
020c:fixme:imm:ImeSetActiveContext himc 0000000000010074, flag 0x1 stub!
0138:fixme:uiautomation:uia_get_providers_for_hwnd Override provider callback currently unimplemented.
0138:fixme:uiautomation:msaa_provider_GetPropertyValue Unimplemented propertyId 30024
0138:fixme:uiautomation:msaa_fragment_get_FragmentRoot 000000000079A7B8, 0000000001D9FAB0: stub!
0138:fixme:uiautomation:uia_get_providers_for_hwnd Override provider callback currently unimplemented.
0138:fixme:uiautomation:msaa_provider_GetPropertyValue Unimplemented propertyId 30024
0138:fixme:uiautomation:msaa_fragment_get_FragmentRoot 00000000007984C8, 0000000001D9FAB0: stub!
0138:fixme:uiautomation:uia_get_providers_for_hwnd Override provider callback currently unimplemented.
0138:fixme:uiautomation:msaa_provider_GetPropertyValue Unimplemented propertyId 30024
0138:fixme:uiautomation:msaa_fragment_get_FragmentRoot 00000000007A3C38, 0000000001D9FAB0: stub!
4502.370:00e8:00ec:info:vkd3d-proton:dxgi_vk_swap_chain_init: Creating swapchain (1280 x 720), BufferCount = 2.
4502.370:00e8:00ec:info:vkd3d-proton:dxgi_vk_swap_chain_init_sync_objects: Ensure maximum latency of 2 frames with KHR_present_wait.
4502.372:00e8:00ec:info:vkd3d-proton:dxgi_vk_swap_chain_init_waiter_thread: Enabling present wait path for frame latency.
warn:  DXGI: MakeWindowAssociation: Ignoring flags
00ec:fixme:win:NtUserGetKeyboardLayout couldn't return keyboard layout for thread 020c
00ec:fixme:wbemprox:client_security_SetBlanket 000000006E7A0E40, 0000000006DAE910, 10, 0, (null), 3, 3, 0000000000000000, 0
00ec:fixme:wbemprox:client_security_Release 000000006E7A0E40
0138:fixme:uiautomation:uia_get_providers_for_hwnd Override provider callback currently unimplemented.
0138:fixme:uiautomation:msaa_provider_GetPropertyValue Unimplemented propertyId 30024
0138:fixme:uiautomation:msaa_fragment_get_FragmentRoot 00000000007A3CB8, 0000000001D9FAB0: stub!
00ec:fixme:powrprof:PowerRegisterSuspendResumeNotification (0x00000002,000000000011ECA0,000000000011ECC0) stub!
0050:fixme:nsi:ipv6_forward_enumerate_all not implemented
0050:fixme:nsi:ipv6_forward_enumerate_all not implemented
0234:fixme:netprofm:connection_point_Advise 00000000078262D8, 000000001012B9F0, 000000001012BA14 - semi-stub
4503.770:00e8:0208:info:vkd3d-proton:dxgi_vk_swap_chain_ChangeProperties: Reallocating swapchain (1280 x 720), BufferCount = 2.
4503.772:00e8:01b0:info:vkd3d-proton:dxgi_vk_swap_chain_recreate_swapchain_in_present_task: Got 3 swapchain images.
4503.800:00e8:01b0:info:vkd3d-proton:dxgi_vk_swap_chain_recreate_swapchain_in_present_task: Got 3 swapchain images.
4529.871:00e8:01b0:info:vkd3d-proton:dxgi_vk_swap_chain_recreate_swapchain_in_present_task: Got 3 swapchain images.
gamemodeauto: 
    
m3e-g commented 8 months ago

From the PR that adds the LD library path - where did /usr/lib/extensions/vulkan/gamescope/lib come from? I don't actually know where this folder is

This path is used by the flatpak gamescope But for the record, it didn't work for me either, and on my earlier attempts (~3 weeks ago) I've been greeted by the "CreateSwapchainKHR: ..." error and I had to remove the flatpak gamescope altogether.

Today I've tried your tips (https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/issues/3281#issuecomment-1886197178) but it still didn't help me in the GotG nor in the Horizon. Nice difference is that I no longer have the error from above even after installation of the flatpak gamescope. (Apparently gamescope installation from the Discovery did not work and after installation from the shell I still have the same errors)

m3e-g commented 8 months ago

Here is log from my attempts to run MarvelGotG

63a665088eb1480298f1e57943b225d8-lastPlay.log

Things I've noticed on comparison:

System info below:

(deck@m3e-deck ~)$  flatpak info com.heroicgameslauncher.hgl

Heroic Games Launcher - An Open Source Epic Games, GOG and Amazon Prime Games
Launcher.

          ID: com.heroicgameslauncher.hgl
         Ref: app/com.heroicgameslauncher.hgl/x86_64/stable
        Arch: x86_64
      Branch: stable
     Version: v2.12.0
     License: GPL-3.0
      Origin: flathub
  Collection: org.flathub.Stable
Installation: system
   Installed: 403.1 MB
     Runtime: org.freedesktop.Platform/x86_64/23.08
         Sdk: org.freedesktop.Sdk/x86_64/23.08

      Commit: 0d96d16cf7e3bdb5c49e3ecc98e1f27f66e6b28de4d5c1c46dc101d3478f2a4b
      Parent: 5b989b35d10c0b0ede9ecfc3ce67a2aa464aa1750f326f9c2ed3ba513e9629d7
     Subject: Add support for gamescope-0 in filesystem (58360562)
        Date: 2024-01-11 09:11:42 +0000
(deck@m3e-deck ~)$ flatpak info org.freedesktop.Platform.VulkanLayer.gamescope/x86_64/23.08

gamescope - The micro-compositor formerly known as steamcompmgr

          ID: org.freedesktop.Platform.VulkanLayer.gamescope
         Ref: runtime/org.freedesktop.Platform.VulkanLayer.gamescope/x86_64/23.08
        Arch: x86_64
      Branch: 23.08
     Version: 3.13.19
     License: BSD-2-Clause
      Origin: flathub
  Collection: org.flathub.Stable
Installation: system
   Installed: 15.8 MB

      Commit: b587d0631367633247ab646b48faa76d7d44d9a6bdede23b34e2409f26e9e075
      Parent: ee3b7a03fc18e49e5ce967293a91adfb2d174336939851eba5e0dbf94ac10961
     Subject: Rely on gamescope repos submodules for keeping dependencies up to date (#91) (ab6294a1)
        Date: 2023-12-20 18:11:53 +0000
m3e-g commented 8 months ago

OK. I've made it work. I had to reset HGL settings inside the flatseal, and after that I've been able to start MarvelGotG in the HDR mode with Wine-GE and no env variables set.

Same setup works for the Horizon Zero Dawn from the GOG. Thanks!

QaAndreii commented 8 months ago

Here is log from my attempts to run MarvelGotG

Hmm, I didn’t install a gamescope from flatpak, is this necessary? I wanted to upload my version and I see that it is not installed (at least from flatpak).

Add my info below

Heroic Games Launcher - An Open Source Epic Games, GOG and Amazon Prime Games Launcher.

          ID: com.heroicgameslauncher.hgl
      Ссылка: app/com.heroicgameslauncher.hgl/x86_64/stable
 Архитектура: x86_64
       Ветвь: stable
      Версия: v2.12.0
    Лицензия: GPL-3.0
    Источник: flathub
   Коллекция: org.flathub.Stable
   Установка: system
 Установлено: 403,1 МБ

Среда исполнения: org.freedesktop.Platform/x86_64/23.08 Sdk: org.freedesktop.Sdk/x86_64/23.08

      Коммит: 0d96d16cf7e3bdb5c49e3ecc98e1f27f66e6b28de4d5c1c46dc101d3478f2a4b
    Родитель: 5b989b35d10c0b0ede9ecfc3ce67a2aa464aa1750f326f9c2ed3ba513e9629d7
   Заголовок: Add support for gamescope-0 in filesystem (58360562)
        Дата: 2024-01-11 09:11:42 +0000
rakonkido commented 8 months ago

@QaAndreii Yes you need it installed, run this:

flatpak install flathub org.freedesktop.Platform.VulkanLayer.gamescope

@flavioislima is there a way to make this a dependency of Heroic?

QaAndreii commented 8 months ago

@QaAndreii Yes you need it installed, run this:

flatpak install flathub org.freedesktop.Platform.VulkanLayer.gamescope

@flavioislima is there a way to make this a dependency of Heroic?

After installation HDR works🙃 I need to read about gamescope, I don’t quite understand why it is required. Valve seems to have their own, the system one is not from flatpak, or simply flatpak applications cannot use it?

flavioislima commented 8 months ago

@flavioislima is there a way to make this a dependency of Heroic?

Good question. I honestly thought we never needed it since SD comes with Gamescope and Steam uses it on gaming mode, but I guess I was wrong. I checked now on my Deck and Heroic cannot find gamescope, and I believe we are adding a gamescope path on the flatpak manifest. So either the path has changes or it wont work like this.

I will try to see if it is possible to add it as a dependency.

but it is good to see that you guys made it work, so we are close to a full resolution now :)

flavioislima commented 8 months ago

I need to read about gamescope, I don’t quite understand why it is required. Valve seems to have their own, the system one is not from flatpak, or simply flatpak applications cannot use it?

It is required because X11 and Wayland doesn't have native support for HDR yes, I mean when using Desktop mode with plasma on the Deck for instance.

Gamescope has it is way to handle HDR so we need it to make it work for now. I believe that this year all major Linux DEs will have it so it will work without it, but for now it is required.

rakonkido commented 8 months ago

Previously I had to add /usr/bin to the filesystem overrides to allow Heroic Flatpak to access the system-level Gamescope, but this is not ideal since Flatpak is meant to isolate the program from the system. Adding Gamescope Flatpak resolves this issue; I was able to remove the /usr/bin override without any loss of functionality.

flavioislima commented 8 months ago

Previously I had to add /usr/bin to the filesystem overrides to allow Heroic Flatpak to access the system-level Gamescope, but this is not ideal since Flatpak is meant to isolate the program from the system. Adding Gamescope Flatpak resolves this issue; I was able to remove the /usr/bin override without any loss of functionality.

I am not sure if it works, even if you add those with Flatseal Flatpak still does not uses it afaik, those are 'forbidden' paths.

Btw, after installing Gamescope, did you need to enable it on the games settings in Heroic?

m3e-g commented 8 months ago

I didn't need to enable anything inside HGL to make it work

rakonkido commented 8 months ago

Same, I also didn't need to change anything in the game's HGL settings (besides -nolauncher for GotG, but not sure if that's actually needed). This should be shown in the Heroic log I posted earlier.