i965/fs: Add pass to combine immediates.
authorMatt Turner <mattst88@gmail.com>
Wed, 12 Feb 2014 19:00:46 +0000 (11:00 -0800)
committerMatt Turner <mattst88@gmail.com>
Wed, 18 Feb 2015 04:44:09 +0000 (20:44 -0800)
commit2dad1e3abdb1ad153289455f3e273101e5bac1a8
treec4196d33c09d6c041f99fb2eeb90a56703a7b8c1
parent0d8f27eab7b7e8b7a16e76aabd3f6a0ab4880497
i965/fs: Add pass to combine immediates.

total instructions in shared programs: 5885407 -> 5940958 (0.94%)
instructions in affected programs:     3617311 -> 3672862 (1.54%)
helped:                                3
HURT:                                  23556
GAINED:                                31
LOST:                                  165

... but will allow us to always emit MAD instructions.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/Makefile.sources
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_combine_constants.cpp [new file with mode: 0644]