Module: Mesa
Branch: main
Commit: 8483a59dde318c88dfb3b6c79d52f6cccee51139
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=8483a59dde318c88dfb3b6c79d52f6cccee51139

Author: José Roberto de Souza <[email protected]>
Date:   Fri Aug  4 12:00:28 2023 -0700

anv: Override vendorID for Hogwarts Legacy

This is another game that makes use of XeSS but works when we fake
the vendorID.

With this temporary hack it works on i915 and Xe KMDs.

Signed-off-by: José Roberto de Souza <[email protected]>
Reviewed-by: Lionel Landwerlin <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24506>

---

 src/util/00-mesa-defaults.conf | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/util/00-mesa-defaults.conf b/src/util/00-mesa-defaults.conf
index f7353fb7a00..e4096a53db7 100644
--- a/src/util/00-mesa-defaults.conf
+++ b/src/util/00-mesa-defaults.conf
@@ -1090,6 +1090,10 @@ TODO: document the other workarounds.
         <application name="Marvel's Spider-Man Remastered" 
executable="Spider-Man.exe">
             <option name="force_vk_vendor" value="-1" />
         </application>
+        <application name="Hogwarts Legacy" executable="HogwartsLegacy.exe">
+            <!-- Needed to avoid XeSS code paths. -->
+            <option name="force_vk_vendor" value="-1" />
+        </application>
         <!--
         Disable 16-bit feature on zink and angle so that GLES mediump doesn't
         lower to our inefficent 16-bit shader support.  No need to do so for

Reply via email to