mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 00:40:09 +01:00
driconf/anv: Apply limit_trig_input_range WA to Rise of the Tomb Raider
During its Ambient Occlusion calculations the game ends up calculating
sin/cos of some pretty big values, for which HW produces completely bogus
results (e.g. cos(3929491.25) ~= -0.011, while correct would be ~0.923).
Limit the arguments to the reasonable (-2*Pi; 2*Pi) range with the
limit_trig_input_range WA.
Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/8292
Signed-off-by: Sviatoslav Peleshko <sviatoslav.peleshko@globallogic.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21396>
(cherry picked from commit 42dba8ebc5)
This commit is contained in:
parent
925f9f19dd
commit
89e9c44042
2 changed files with 7 additions and 1 deletions
|
|
@ -238,7 +238,7 @@
|
|||
"description": "driconf/anv: Apply limit_trig_input_range WA to Rise of the Tomb Raider",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -999,6 +999,12 @@ TODO: document the other workarounds.
|
|||
<application name="Batman™: Arkham Knight" executable="BatmanAK.exe">
|
||||
<option name="anv_sample_mask_out_opengl_behaviour" value="true"/>
|
||||
</application>
|
||||
<application name="Rise of the Tomb Raider" executable="RiseOfTheTombRaider">
|
||||
<option name="limit_trig_input_range" value="true" />
|
||||
</application>
|
||||
<application name="Rise of the Tomb Raider" executable="ROTTR.exe">
|
||||
<option name="limit_trig_input_range" value="true" />
|
||||
</application>
|
||||
</device>
|
||||
|
||||
<device driver="r600">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue