st/nine: Correct LOG on negative values
authorAxel Davy <axel.davy@ens.fr>
Wed, 3 Dec 2014 14:50:53 +0000 (15:50 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 22 Jan 2015 22:16:20 +0000 (22:16 +0000)
commitc9aa9a0addee01201d28a7bed10f7e320af591a1
tree0372d94d33ed7b913418f7f725dcc3c72e8d862f
parentf5e8e3fb806ef8516a7bd5fabdce4cc24e4c9636
st/nine: Correct LOG on negative values

We should take the absolute value of the input.

Also return -FLT_MAX instead of -Inf for an input of 0.

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
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