i965: Extract can_change_source_types() functions.
authorMatt Turner <mattst88@gmail.com>
Wed, 14 Oct 2015 09:12:09 +0000 (02:12 -0700)
committerMatt Turner <mattst88@gmail.com>
Mon, 19 Oct 2015 17:19:32 +0000 (10:19 -0700)
commit9e17c36b8ba79e688011a5fd293ad5f42da21b66
tree087a0c6e89b1f5ae0f506160fae5386ee39f7950
parent41c474df53d9dcd5fd8e24eba5b7acc2b3c32795
i965: Extract can_change_source_types() functions.

Make them members of fs_inst/vec4_instruction for use elsewhere.

Also fix the fs version to check that dst.type == src[1].type and for
!saturate.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs_copy_propagation.cpp
src/mesa/drivers/dri/i965/brw_ir_fs.h
src/mesa/drivers/dri/i965/brw_ir_vec4.h
src/mesa/drivers/dri/i965/brw_vec4.cpp
src/mesa/drivers/dri/i965/brw_vec4_copy_propagation.cpp