driconf: set vk_x11_strict_image_count for Metro: Exodus
authorDaniel Schürmann <daniel@schuermann.dev>
Tue, 4 May 2021 13:30:50 +0000 (15:30 +0200)
committerMarge Bot <eric+marge@anholt.net>
Fri, 14 May 2021 07:59:50 +0000 (07:59 +0000)
Otherwise, the game crashes on startup under xwayland.

Closes: #4650
Cc: mesa-stable
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10750>

src/util/00-mesa-defaults.conf

index 7e48cff..70ab923 100644 (file)
@@ -645,6 +645,11 @@ TODO: document the other workarounds.
         <application name="DOOMEternal" executable="DOOMEternalx64vk.exe">
             <option name="vk_x11_ensure_min_image_count" value="true" />
         </application>
+
+        <!-- Metro:Exodus crashes at startup on xwayland without this workaround-->
+        <application name="Metro: Exodus" application_name_match="metroexodus">
+            <option name="vk_x11_strict_image_count" value="true" />
+        </application>
     </device>
     <!-- vmwgfx doesn't like full buffer swaps and can't sync to vertical retraces.-->
     <device driver="vmwgfx">