File 0302-driconf-enable-glthread-for-Minecraft.patch of Package mesa
From 5a970dbac344c7303c62375d688e0653014c372f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= <marek.olsak@amd.com>
Date: Wed, 24 Nov 2021 12:58:48 -0500
Subject: [PATCH] driconf: enable glthread for Minecraft
+30% performance
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13947>
---
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 04ba3fd554e..634e915d643 100644
--- a/src/util/00-mesa-defaults.conf
+++ b/src/util/00-mesa-defaults.conf
@@ -358,6 +358,10 @@ TODO: document the other workarounds.
<!-- The GL thread allowlist is below, workarounds are above.
Keep it that way. -->
+ <application name="Minecraft" executable="minecraft-launcher">
+ <option name="mesa_glthread" value="true"/>
+ </application>
+
<application name="Alien Isolation" executable="AlienIsolation">
<option name="mesa_glthread" value="true"/>
</application>
--
2.34.1