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

Improve XPD lowering to consume less instructions by using the
MAD instruction to perform the multiply and subtraction together.

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