drirc: add force_glsl_abs_sqrt() for "Spec Ops: The Line"
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 17 Mar 2017 00:06:57 +0000 (01:06 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 22 Mar 2017 21:02:20 +0000 (22:02 +0100)
commite11049f2c367192dfb1540855f6571a5e29b77ec
treeef5d2b3edeb92d64806308102049ee27692d67a8
parent7a0ecbfffd5b0c815dc1c55fdfcbdae3f59b6127
drirc: add force_glsl_abs_sqrt() for "Spec Ops: The Line"

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 <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/drivers/dri/common/drirc