intel/fs: Don't enable dual source blend if no outputs are written

This prevents a crash in some arb_enhanced_layouts tests that would be
caused by the next commit.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
Francisco Jerez 2017-01-06 14:41:27 -08:00 committed by Jason Ekstrand
parent 48241c780a
commit 8b788069fb

View file

@ -440,7 +440,8 @@ fs_visitor::emit_fb_writes()
inst->target = target;
}
prog_data->dual_src_blend = (this->dual_src_output.file != BAD_FILE);
prog_data->dual_src_blend = (this->dual_src_output.file != BAD_FILE &&
this->outputs[0].file != BAD_FILE);
assert(!prog_data->dual_src_blend || key->nr_color_regions == 1);
if (inst == NULL) {