Mesa (master): driconf: add workaround for Golf With Friends

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Apr 29 12:31:49 UTC 2021


Module: Mesa
Branch: master
Commit: 0477fbc6558444d9f33de50a0656dbe997b6b928
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=0477fbc6558444d9f33de50a0656dbe997b6b928

Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date:   Fri Apr 16 09:42:46 2021 +0200

driconf: add workaround for Golf With Friends

The game has a shader that uses texture functions that rely on implicit
derivatives after a discard.

Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4547

Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10278>

---

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

diff --git a/src/util/00-mesa-defaults.conf b/src/util/00-mesa-defaults.conf
index ec86d60079f..2b6511f0ffb 100644
--- a/src/util/00-mesa-defaults.conf
+++ b/src/util/00-mesa-defaults.conf
@@ -312,6 +312,11 @@ TODO: document the other workarounds.
             <option name="allow_glsl_extension_directive_midshader" value="true" />
         </application>
 
+        <application name="Golf With Your Friends" executable="Golf With Your Friends.x86_64">
+            <!-- https://gitlab.freedesktop.org/mesa/mesa/-/issues/4547 -->
+            <option name="glsl_correct_derivatives_after_discard" value="true" />
+        </application>
+
         <!-- The GL thread allowlist is below, workarounds are above.
              Keep it that way. -->
 



More information about the mesa-commit mailing list