From 42dba8ebc555bc7ba2e7a86d19eabf4c6d7a3f7f Mon Sep 17 00:00:00 2001 From: Sviatoslav Peleshko Date: Fri, 17 Feb 2023 23:08:36 +0200 Subject: [PATCH] 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 Reviewed-by: Lionel Landwerlin Reviewed-by: Kenneth Graunke Part-of: --- src/util/00-mesa-defaults.conf | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/util/00-mesa-defaults.conf b/src/util/00-mesa-defaults.conf index 5154d4f7571..4dcad37fcdc 100644 --- a/src/util/00-mesa-defaults.conf +++ b/src/util/00-mesa-defaults.conf @@ -999,6 +999,12 @@ TODO: document the other workarounds. + + + +