i965/fs: do SEL optimization only when src type for MOV matches
authorTapani Pälli <tapani.palli@intel.com>
Tue, 7 Jan 2014 08:25:40 +0000 (10:25 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Wed, 8 Jan 2014 05:06:45 +0000 (07:06 +0200)
commit0978a6966abb886539158934d11ae7f170786be2
tree07da32062b301c441ad0794f88276dc7f260d8a3
parent847bc36a38d42967ad6bf0492fe90a4892d9d799
i965/fs: do SEL optimization only when src type for MOV matches

Fixes a bug where then branch operates with ivec4 while else uses vec4.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=72379

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_sel_peephole.cpp