From e11049f2c367192dfb1540855f6571a5e29b77ec Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Fri, 17 Mar 2017 01:06:57 +0100 Subject: drirc: add force_glsl_abs_sqrt() for "Spec Ops: The Line" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Game ported from D3D9 which expects sqrt() to compute the absolute value as explained in the spec. This gets rid of the NaN values as well as the black squares with RadeonSI. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97338 Signed-off-by: Samuel Pitoiset Reviewed-by: Marek Olšák --- src/mesa/drivers/dri/common/drirc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/mesa/drivers/dri') diff --git a/src/mesa/drivers/dri/common/drirc b/src/mesa/drivers/dri/common/drirc index 494e9e15090..23d09fabb16 100644 --- a/src/mesa/drivers/dri/common/drirc +++ b/src/mesa/drivers/dri/common/drirc @@ -120,5 +120,13 @@ TODO: document the other workarounds. + + + + + + -- cgit v1.2.3