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@itsqueeze.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10278>
(cherry picked from commit 0477fbc655)
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2021-04-16 09:42:46 +02:00 committed by Dylan Baker
parent 5440acb8fc
commit d0fa20ba17
2 changed files with 6 additions and 1 deletions

View file

@ -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
},

View file

@ -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. -->