From: Francisco Jerez <[email protected]> This prevents a crash in some arb_enhanced_layouts tests that would be caused by the next commit.
Reviewed-by: Jason Ekstrand <[email protected]> --- src/intel/compiler/brw_fs_visitor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/intel/compiler/brw_fs_visitor.cpp b/src/intel/compiler/brw_fs_visitor.cpp index d3d6913..746cbb7 100644 --- a/src/intel/compiler/brw_fs_visitor.cpp +++ b/src/intel/compiler/brw_fs_visitor.cpp @@ -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) { -- 2.5.0.400.gff86faf _______________________________________________ mesa-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-dev
