Mesa (master): driconf: add workaround for Enter The Gungeon
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Dec 16 10:09:25 UTC 2020
Module: Mesa
Branch: master
Commit: 1a4c4cd110380c99c51e57c59c868beac01234d2
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1a4c4cd110380c99c51e57c59c868beac01234d2
Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date: Wed Dec 9 15:41:59 2020 +0100
driconf: add workaround for Enter The Gungeon
Quoting a comment on the bug report:
I suspect the shader is incorrect.
When a (conditional) discard is executed then control flow
becomes non-uniform, meaning that subsequent implicit
derivatives required for the texture operation are not
computed correctly.
Using glsl_correct_derivatives_after_discard fixes it. Note
that for radeonsi this requires LLVM master to work properly.
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/1386
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8005>
---
src/util/00-mesa-defaults.conf | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/util/00-mesa-defaults.conf b/src/util/00-mesa-defaults.conf
index 6a38e9ab6eb..16e54150c6c 100644
--- a/src/util/00-mesa-defaults.conf
+++ b/src/util/00-mesa-defaults.conf
@@ -593,6 +593,14 @@ TODO: document the other workarounds.
<option name="allow_higher_compat_version" value="true" />
</application>
+ <application name="Enter The Gungeon (32 bits)" executable="EtG.x86">
+ <option name="glsl_correct_derivatives_after_discard" value="true" />
+ </application>
+
+ <application name="Enter The Gungeon (64 bits)" executable="EtG.x86_64">
+ <option name="glsl_correct_derivatives_after_discard" value="true" />
+ </application>
+
<!-- Gallium Nine workarounds: -->
<application name="Rayman Legends" executable="Rayman Legends.exe">
<option name="dynamic_texture_workaround" value="true" />
More information about the mesa-commit
mailing list