i965/fs: Replace fs_reg(imm) constructors with brw_imm_*().
authorMatt Turner <mattst88@gmail.com>
Mon, 2 Nov 2015 19:26:16 +0000 (11:26 -0800)
committerMatt Turner <mattst88@gmail.com>
Thu, 19 Nov 2015 19:12:24 +0000 (11:12 -0800)
commit3ccc41ecfc5e9345a1c291748d8840984f7413ae
tree5c9bcb8a010e1741053b079e7b0a8314874107d4
parentc15a407eb49d3b26bdbf039816636adb184c276a
i965/fs: Replace fs_reg(imm) constructors with brw_imm_*().

Cuts 10k of .text, of which only 776 bytes are the fs_reg constructor
implementations themselves.

   text     data      bss      dec      hex  filename
5204535   214112    27784  5446431   531b1f  i965_dri.so before
5193977   214112    27784  5435873   52f1e1  i965_dri.so after

Reviewed-by: Emil Velikov <emil.velikov@collabora.co.uk>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_blorp_blit_eu.cpp
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs_builder.h
src/mesa/drivers/dri/i965/brw_fs_combine_constants.cpp
src/mesa/drivers/dri/i965/brw_fs_nir.cpp
src/mesa/drivers/dri/i965/brw_fs_surface_builder.cpp
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
src/mesa/drivers/dri/i965/brw_ir_fs.h
src/mesa/drivers/dri/i965/test_fs_cmod_propagation.cpp