r600/dri-tweak: Disable ARB_shader_image_load_store for "Tomb Raider 2013"
authorGert Wollny <gert.wollny@collabora.com>
Sun, 24 Jul 2022 10:45:15 +0000 (12:45 +0200)
committerMarge Bot <emma+marge@anholt.net>
Sun, 24 Jul 2022 19:32:10 +0000 (19:32 +0000)
When "Depth of Field" is set to Ultra, a compute shader is emitted that
results in Hardware hangs when OpenGL > 4.3 is available.

If the option is enabled, the game will hang at the menu screen so that
it is no longer possible to simply change the option back. To avoid this
disable the extension for this game until the shader emission can be fixed.

Related: https://gitlab.freedesktop.org/mesa/mesa/-/issues/6857

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

src/util/00-mesa-defaults.conf

index 04047b3..8fd2b36 100644 (file)
@@ -933,6 +933,12 @@ TODO: document the other workarounds.
         </application>
     </device>
 
+    <device driver="r600">
+        <application name="Tomb Raider 2013" executable="TombRaider">
+            <option name="mesa_extension_override" value="-GL_ARB_shader_image_load_store" />
+        </application>
+    </device>
+
     <device driver="virtio_gpu">
         <application name="Counter-Strike Global Offensive" executable="csgo_linux64">
             <option name="format_l8_srgb_enable_readback" value="true" />