i965/fs: Set execution controls explicitly in opt_peephole_sel().
authorFrancisco Jerez <currojerez@riseup.net>
Mon, 27 Jul 2015 16:27:30 +0000 (19:27 +0300)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 29 Jul 2015 11:14:49 +0000 (14:14 +0300)
commite1f4724097d1074ec9afdc9ce9ad024add125923
tree79ad708db48feaef81ec157c9d3956cd758c7625
parentff463af436bcf07430807512c9f0bf0f627288ce
i965/fs: Set execution controls explicitly in opt_peephole_sel().

Emit the SELs and MOVs with the same execution controls as the
original MOVs, and the CMP with the same execution controls as the IF.
Also explicitly check that the execution controls of any pair of MOVs
being folded into a SEL are compatible (which is almost always going
to be the case), since otherwise it would seem wrong to initialize the
builder object below from the then_mov instruction only.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/mesa/drivers/dri/i965/brw_fs_sel_peephole.cpp