i965/fs: Get rid of fs_visitor::do_dual_src.
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 21 Jul 2016 19:46:04 +0000 (12:46 -0700)
committerFrancisco Jerez <currojerez@riseup.net>
Fri, 26 Aug 2016 01:36:00 +0000 (18:36 -0700)
commit4a87e4ade778e56d43333c65a58752b15a00ce69
tree3202c1deb3e304353bf56f1b875e192e6c22f617
parentaee3d8f0d940a87dba7eae86c9462a3cb3a7d702
i965/fs: Get rid of fs_visitor::do_dual_src.

This boolean flag was being used for two different things:

 - To set the brw_wm_prog_data::dual_src_blend flag.  Instead we can
   just set it based on whether the dual_src_output register is valid,
   which will be the case if the shader writes the secondary blending
   color.

 - To decide whether to call emit_single_fb_write() once, or in a loop
   that would iterate only once, which seems pretty useless.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs.h
src/mesa/drivers/dri/i965/brw_fs_nir.cpp
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp