Module: Mesa
Branch: staging/23.3
Commit: 109f64de6c76927eafac5f68e40c8b61d590bc5a
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=109f64de6c76927eafac5f68e40c8b61d590bc5a

Author: Yiwei Zhang <[email protected]>
Date:   Sat Dec  9 06:02:10 2023 +0000

driconfig: add a workaround for Hades (Vulkan backend)

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 <[email protected]>
Reviewed-by: Renato Pereyra <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26607>
(cherry picked from commit 88c5affacf947ce64361fbe4155d2d9600f6a981)

---

 .pick_status.json              | 2 +-
 src/util/00-mesa-defaults.conf | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/.pick_status.json b/.pick_status.json
index 872876fd6c2..fcfd455824c 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -274,7 +274,7 @@
         "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
diff --git a/src/util/00-mesa-defaults.conf b/src/util/00-mesa-defaults.conf
index e0a9137c0a0..f5123e77dab 100644
--- a/src/util/00-mesa-defaults.conf
+++ b/src/util/00-mesa-defaults.conf
@@ -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" />

Reply via email to