i965/fs: Allow immediates in MAD and LRP instructions.
authorMatt Turner <mattst88@gmail.com>
Mon, 27 Oct 2014 05:07:06 +0000 (22:07 -0700)
committerMatt Turner <mattst88@gmail.com>
Wed, 18 Feb 2015 04:44:09 +0000 (20:44 -0800)
commit36bc5f06dd22cde0ba572c00ae7548fe8cb7c731
treeb9662cceb428e6b392d0de41f3ae4de278e54df0
parent2dad1e3abdb1ad153289455f3e273101e5bac1a8
i965/fs: Allow immediates in MAD and LRP instructions.

And then the opt_combine_constants() pass will pull them out into
registers. This will allow us to do some algebraic optimizations on MAD
and LRP.

total instructions in shared programs: 5946656 -> 5931320 (-0.26%)
instructions in affected programs:     778247 -> 762911 (-1.97%)
helped:                                3780
HURT:                                  6
GAINED:                                12
LOST:                                  12

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs_combine_constants.cpp
src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp