drirc: Set limit_trig_input_range option for Nier games

Resolves ambient occlusion rendering in Replicant
Resolves grass and ocean animations in Automata, and maybe more.

Both of these games have shaders that expect trig values to work across
large ranges with good precision.

Closes #7656

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: mesa-stable
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22894>
(cherry picked from commit 7accfbffd8)
This commit is contained in:
Kurt Kartaltepe 2023-05-07 12:55:48 -07:00 committed by Eric Engestrom
parent 34936765d4
commit aa234e276e
2 changed files with 7 additions and 1 deletions

View file

@ -13,7 +13,7 @@
"description": "drirc: Set limit_trig_input_range option for Nier games",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -1030,6 +1030,12 @@ TODO: document the other workarounds.
<application name="Rise of the Tomb Raider" executable="ROTTR.exe">
<option name="limit_trig_input_range" value="true" />
</application>
<application name="NieR Replicant ver.1.22474487139" executable="NieR Replicant ver.1.22474487139.exe">
<option name="limit_trig_input_range" value="true" />
</application>
<application name="NieR:Automata" executable="NieRAutomata.exe">
<option name="limit_trig_input_range" value="true" />
</application>
<!--
Disable 16-bit feature on zink and angle so that GLES mediump doesn't
lower to our inefficent 16-bit shader support. No need to do so for