util/driconf: pin minImageCount to three for "Path of Exile"
authorGert Wollny <gert.wollny@collabora.com>
Mon, 27 Feb 2023 08:56:41 +0000 (09:56 +0100)
committerMarge Bot <emma+marge@anholt.net>
Thu, 8 Jun 2023 07:41:53 +0000 (07:41 +0000)
"Path of Exile" will fail with an error "unsupported backbuffer image count"
when vkGetPhysicalDeviceSurfaceCapabilitiesKHR reports more than 3 as
minImageCount.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21547>

src/util/00-mesa-defaults.conf

index 554115c..843beae 100644 (file)
@@ -891,6 +891,16 @@ TODO: document the other workarounds.
             <!-- https://gitlab.freedesktop.org/mesa/mesa/-/issues/5437 -->
             <option name="vk_dont_care_as_load" value="true" />
         </application>
+
+       <!-- Path of Exile stops with "unsupported backbuffer count" when more than
+            3 swapchain image are reported. -->
+       <application name="Path of Exile" executable="PathOfExile_x64Steam.exe">
+         <option name="vk_x11_override_min_image_count" value="3" />
+        </application>
+        <application name="Path of Exile" executable="PathOfExileSteam.exe">
+            <option name="vk_x11_override_min_image_count" value="3" />
+        </application>
+
     </device>
     <!-- vmwgfx doesn't like full buffer swaps and can't sync to vertical retraces.-->
     <device driver="vmwgfx">