i965/fs: Split generate_math into gen4/gen6 and 1/2 operand variants.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 18 Aug 2011 18:55:42 +0000 (11:55 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 26 Sep 2011 23:30:07 +0000 (16:30 -0700)
commit74e927bcafad0a994be5f88fbda4058bef08bc51
tree7337601dd15add0c25455940ed16de5d20a9b37e
parentc5943d6c1cc4eedbea088bc1f611abc153e90524
i965/fs: Split generate_math into gen4/gen6 and 1/2 operand variants.

This mirrors the structure Eric used in the new VS backend, and seems
simpler.  In particular, the math1/math2 split will avoid having to
figure out how many operands there are, as this is already known by the
caller.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_emit.cpp