i965/vec4: Combine all the math emitters.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 11 Nov 2014 22:40:08 +0000 (14:40 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 14 Nov 2014 04:55:41 +0000 (20:55 -0800)
commitbd20fad3168e9c89d7892397466f7d98a002aeb2
treeeafc6fb5fbce1ebb0acc69c74a907b92bd60074a
parentdba683cf1624a9a30489df7b88ada1b1a86c991d
i965/vec4: Combine all the math emitters.

17 insertions(+), 102 deletions(-).  Works just as well.

v2: Make emit_math take const references (suggested by Matt),
    drop redundant WRITEMASK_XYZW setting (Matt and Curro).

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp