drirc: enable `vk_wsi_force_swapchain_to_current_extent` for "Serious Sam Fusion"
authorantonino <antonino.maniscalco@collabora.com>
Mon, 21 Aug 2023 21:34:12 +0000 (23:34 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 6 Sep 2023 00:10:41 +0000 (00:10 +0000)
This game handles swapchain size incorrecly and can crash because of
it.

Enable this driconf as a workaround.

Fixes: 6139493ae38 ("vulkan/wsi: return VK_SUBOPTIMAL_KHR for sw/x11 on window resize")
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24818>

src/util/00-mesa-defaults.conf

index 47dfe90..15abbb0 100644 (file)
@@ -603,6 +603,13 @@ TODO: document the other workarounds.
             <option name="vk_wsi_force_swapchain_to_current_extent" value="true"/>
         </application>
 
+        <application name="Serious Sam Fusion" executable="Sam2017">
+            <option name="vk_wsi_force_swapchain_to_current_extent" value="true"/>
+        </application>
+        <application name="Serious Sam Fusion (Unrestricted)" executable="Sam2017_Unrestricted">
+            <option name="vk_wsi_force_swapchain_to_current_extent" value="true"/>
+        </application>
+
         <!-- roughly 30% increase in fps -->
         <application name="7 Days To Die (64-bit)" executable="7DaysToDie.x86_64">
             <option name="mesa_glthread_app_profile" value="1"/>