drirc: enable `vk_wsi_force_swapchain_to_current_extent` for "The Talos Principle"
authorantonino <antonino.maniscalco@collabora.com>
Mon, 21 Aug 2023 20:52:50 +0000 (22:52 +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 cec99fc..47dfe90 100644 (file)
@@ -596,9 +596,11 @@ TODO: document the other workarounds.
 
         <application name="Talos Principle" executable="Talos">
             <option name="mesa_glthread_app_profile" value="1"/>
+            <option name="vk_wsi_force_swapchain_to_current_extent" value="true"/>
         </application>
         <application name="Talos Principle (Unrestricted)" executable="Talos_Unrestricted">
             <option name="mesa_glthread_app_profile" value="1"/>
+            <option name="vk_wsi_force_swapchain_to_current_extent" value="true"/>
         </application>
 
         <!-- roughly 30% increase in fps -->