radeonsi: enable workarounds for YoYo engine based games
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Fri, 13 Mar 2020 13:24:51 +0000 (14:24 +0100)
committerPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Tue, 24 Mar 2020 07:33:29 +0000 (08:33 +0100)
Without the radeonsi_sync_compile option the games crashes at
startup.
The engine seems to be using a custom global new operator and
it doesn't plays well with multithreading it seems.

Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1310
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1271
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1272
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/1288
Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2611
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4181>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4181>

src/util/00-mesa-defaults.conf

index d078b938021db5e377f61bb3436124e08db40dda..11efbff7ba04ab4391702ba673d7e2fadbecf721 100644 (file)
@@ -567,6 +567,23 @@ TODO: document the other workarounds.
             <!-- Helps offscreen tests -->
             <option name="mesa_glthread" value="true"/>
         </application>
+        <!-- YoYo game engine workarounds -->
+        <application name="Monolith demo5" executable="runner" sha1="0c40d509a74e357f0280cb1bd882e9cd94b91bdf">
+            <option name="radeonsi_sync_compile" value="true" />
+            <option name="radeonsi_zerovram" value="true" />
+        </application>
+        <application name="Memoranda" executable="runner" sha1="aa13dec6af63c88f308ebb487693896434a4db56">
+            <option name="radeonsi_sync_compile" value="true" />
+        </application>
+        <application name="Undertale" executable="runner" sha1="dfa302e7ec78641d0696dbbc1a06fc29f34ff1ff">
+            <option name="radeonsi_sync_compile" value="true" />
+        </application>
+        <application name="Turmoil" executable="runner" sha1="cbbf757aaab289859f8dae191a7d63afc30643d9">
+            <option name="radeonsi_sync_compile" value="true" />
+        </application>
+        <application name="Peace, Death!" executable="runner" sha1="5b909f3d21799773370adf084f649848f098234e">
+            <option name="radeonsi_sync_compile" value="true" />
+        </application>
     </device>
     <device driver="virtio_gpu">
         <!-- Some Valve games do a final blit to a BRGA_sRGB surface. On a GLES