st/nine: Handle RSQ special cases
authorAxel Davy <axel.davy@ens.fr>
Wed, 3 Dec 2014 14:28:42 +0000 (15:28 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 22 Jan 2015 22:16:20 +0000 (22:16 +0000)
commit2487f7357449ee520a59f6d81506d297aca752f2
treeeed44da57057c619f4b6f0b420d13789f644dc43
parentc12f8c208882a7e9aac0c488c08ee1771ead5a0d
st/nine: Handle RSQ special cases

We should use the absolute value of the input as input to ureg_RSQ.

Moreover, an input of 0.0 should return FLT_MAX.

Reviewed-by: David Heidelberg <david@ixit.cz>
Signed-off-by: Axel Davy <axel.davy@ens.fr>
Cc: "10.4" <mesa-stable@lists.freedesktop.org>
src/gallium/state_trackers/nine/nine_shader.c