mesa: Add abs input modifier to base for POW in ffvertex_prog
authorDaniel Scharrer <daniel@constexpr.org>
Thu, 1 Oct 2015 12:36:31 +0000 (14:36 +0200)
committerIlia Mirkin <imirkin@alum.mit.edu>
Thu, 1 Oct 2015 20:37:55 +0000 (16:37 -0400)
commitb3f9c5cc0fab6d770d220efd87ba3746c6673875
tree40ab21f4b37634d8a7a3e9774f7d093f1ae784e8
parent604ce8253ae796ecf9763f1612e2fff25591cb07
mesa: Add abs input modifier to base for POW in ffvertex_prog

The result of POW for a negative base is undefined. Even when the result
is multiplied by zero (which is the case here whenever the base is
negative), the Inf and NaNs can propagate past that.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91342
Signed-off-by: Daniel Scharrer <daniel@constexpr.org>
Cc: "10.6 11.0" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/mesa/main/ffvertex_prog.c