driconfig: add a workaround for Hades (Vulkan backend)
authorYiwei Zhang <zzyiwei@chromium.org>
Sat, 9 Dec 2023 06:02:10 +0000 (06:02 +0000)
committerEric Engestrom <eric@engestrom.ch>
Tue, 12 Dec 2023 10:00:30 +0000 (10:00 +0000)
Vulkan backend of Hades can only handle at most 3 swapchain images.

It affects all drivers after below commit:
04d654a5d0b7bb4a072f515f6fbe2a686fc7f7f8

and then only affects specific driver backend which enables
extra_xwayland_image in wsi device options after below commit:
c1a62476acefcc94de9fd8e7f74d6bd9576796a7

Cc: mesa-stable
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Reviewed-by: Renato Pereyra <renatopereyra@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26607>
(cherry picked from commit 88c5affacf947ce64361fbe4155d2d9600f6a981)

.pick_status.json
src/util/00-mesa-defaults.conf

index 872876f..fcfd455 100644 (file)
         "description": "driconfig: add a workaround for Hades (Vulkan backend)",
         "nominated": true,
         "nomination_type": 0,
-        "resolution": 0,
+        "resolution": 1,
         "main_sha": null,
         "because_sha": null,
         "notes": null
index e0a9137..f5123e7 100644 (file)
@@ -837,6 +837,13 @@ TODO: document the other workarounds.
             <option name="vk_x11_strict_image_count" value="true" />
         </application>
 
+        <!-- Workaround for Hades: Vulkan backend of the game is not starting
+             if the implementation returns more than 3 swapchain images. -->
+        <application name="Hades" executable="Hades.exe">
+            <option name="vk_x11_override_min_image_count" value="3" />
+            <option name="vk_x11_strict_image_count" value="true" />
+        </application>
+
         <application name="Brink" executable="brink.exe">
             <option name="glx_extension_override" value="-GLX_OML_swap_method" />
             <option name="allow_higher_compat_version" value="true" />