Skip to content

driconf/anv: Apply limit_trig_input_range WA to Rise of the Tomb Raider

Sviatoslav Peleshko requested to merge GL/mesa:rotr_wa into main

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 (-2Pi; 2Pi) range with the limit_trig_input_range WA.

Cc: mesa-stable Closes: #8292 (closed) Signed-off-by: Sviatoslav Peleshko sviatoslav.peleshko@globallogic.com

Merge request reports