Mesa (staging/21.1): driconf: add workaround for Golf With Friends

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri Apr 30 03:41:02 UTC 2021


Module: Mesa
Branch: staging/21.1
Commit: d0fa20ba176f8c2344dc7e6da63902f5f46b9cb3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d0fa20ba176f8c2344dc7e6da63902f5f46b9cb3

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>
(cherry picked from commit 0477fbc6558444d9f33de50a0656dbe997b6b928)

---

 .pick_status.json              | 2 +-
 src/util/00-mesa-defaults.conf | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/.pick_status.json b/.pick_status.json
index 9e738ce0a81..d7e6673fb3f 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -85,7 +85,7 @@
         "description": "driconf: add workaround for Golf With Friends",
         "nominated": true,
         "nomination_type": 0,
-        "resolution": 0,
+        "resolution": 1,
         "master_sha": null,
         "because_sha": null
     },
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