i965/vec4: Change vec4_visitor::emit_lrp to use MAC for gen<6
authorJuha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Fri, 28 Mar 2014 13:28:31 +0000 (15:28 +0200)
committerMatt Turner <mattst88@gmail.com>
Thu, 17 Apr 2014 05:46:45 +0000 (22:46 -0700)
commit2dfbbeca50b95ccdd714d9baa4411c779f6a20d9
tree3e6808e76e24c799fcef726e127787e4cf4a5a3b
parent09747066714a341b85907c474f18a0d05bbc7071
i965/vec4: Change vec4_visitor::emit_lrp to use MAC for gen<6

This allows us to emit ADD/MUL/MAC instead of MUL/ADD/MUL/ADD,
saving one instruction and two temporary registers.

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_vec4_visitor.cpp