i965/fs: Add helper functions for generating ALU ops, like in the VS.
authorEric Anholt <eric@anholt.net>
Fri, 9 Nov 2012 20:01:05 +0000 (12:01 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 20 Nov 2012 20:55:08 +0000 (12:55 -0800)
commit32d6809bb50a08d9b80ed8b3d13cc6b76580a3a9
tree00c6fe78cabd84f936f0605a901bc284bf5a572f
parent1665af3066f3d58c42e9d5b13098f13615a7672c
i965/fs: Add helper functions for generating ALU ops, like in the VS.

This gives us checking of our arguments (no more passing 1 operand to
BRW_OPCODE_MUL!), at the cost of a couple of extra parens.

v2: Rebase on gen6-if fix.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (v1)
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_fp.cpp
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp