driconf: make glthread=true default for source games
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 10 Jan 2023 14:39:30 +0000 (09:39 -0500)
committerMarge Bot <emma+marge@anholt.net>
Sat, 25 Mar 2023 01:44:27 +0000 (01:44 +0000)
this yields a sizable gain for source-based games, so it shouldn't be
limited to radeonsi

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20611>

src/util/00-mesa-defaults.conf

index 8245b86..b08b70e 100644 (file)
@@ -136,6 +136,15 @@ TODO: document the other workarounds.
         <application name="Topogun (64-bit)" executable="topogun64">
             <option name="always_have_depth_buffer" value="true" />
         </application>
+        <application name="Half Life 2" executable="hl2_linux">
+            <option name="mesa_glthread" value="true" />
+        </application>
+        <application name="Black Mesa" executable="bms_linux">
+            <option name="mesa_glthread" value="true" />
+        </application>
+        <application name="Counter-Strike Global Offensive" executable="csgo_linux64">
+            <option name="mesa_glthread" value="true" />
+        </application>
 
         <application name="Dead Island (incl. Definitive Edition)" executable="DeadIslandGame">
             <option name="allow_glsl_extension_directive_midshader" value="true" />
@@ -870,12 +879,6 @@ TODO: document the other workarounds.
         </application>
     </device>
     <device driver="radeonsi">
-        <application name="Half Life 2" executable="hl2_linux">
-            <option name="mesa_glthread" value="true" />
-        </application>
-        <application name="Black Mesa" executable="bms_linux">
-            <option name="mesa_glthread" value="true" />
-        </application>
         <application name="Alien Isolation" executable="AlienIsolation">
             <option name="force_gl_vendor" value="X.Org" />
         </application>
@@ -883,7 +886,6 @@ TODO: document the other workarounds.
             <option name="radeonsi_zerovram" value="true" />
         </application>
         <application name="Counter-Strike Global Offensive" executable="csgo_linux64">
-            <option name="mesa_glthread" value="true" />
             <option name="radeonsi_zerovram" value="true" />
             <option name="radeonsi_clamp_div_by_zero" value="true" />
         </application>