i965/fs: Add support for the MAC instruction.
authorJuha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Fri, 28 Mar 2014 13:28:32 +0000 (15:28 +0200)
committerMatt Turner <mattst88@gmail.com>
Thu, 17 Apr 2014 05:46:45 +0000 (22:46 -0700)
commitda0c3b02e71c7552ba9324a01a73602094105fcc
tree2c824fff74dfc48f1a6a058eacfd797e770865d3
parent2dfbbeca50b95ccdd714d9baa4411c779f6a20d9
i965/fs: Add support for the MAC instruction.

This allows us to generate the MAC (multiply-accumulate) instruction,
which can be used to implement some expressions in fewer instructions
than doing a series of MUL and ADDs.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs_generator.cpp