tgsi/lowering: improved lowering for LRP
authorRussell King <rmk@arm.linux.org.uk>
Wed, 13 Apr 2016 22:42:42 +0000 (18:42 -0400)
committerRob Clark <robclark@freedesktop.org>
Tue, 19 Apr 2016 20:04:44 +0000 (16:04 -0400)
commitfadfaa82c61a32c74531e1e1aaecfd2b3c5ac6d8
tree4824181b05add0f4c970247318e886fcf9862435
parent67da7dd98a6253143b80a058d7077666408a688e
tgsi/lowering: improved lowering for LRP

Provide an improved lowering for LRP, which can be implemented in two
MAD instructions with a bit of rearranging of the equation, rather
than the literal implementation of two multiplies, an add and a
subtract.

Signed-off-by: Russell King <rmk@arm.linux.org.uk>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/auxiliary/tgsi/tgsi_lowering.c