This looks like it should be protected by the assume() about nr_color_regions, but my compiler warns anyway.
Cc: Matt Turner <matts...@gmail.com> --- src/intel/compiler/brw_fs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index 6fb46e7374c0..bed632d21b91 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -3070,7 +3070,7 @@ fs_visitor::emit_repclear_shader() .MOV(vec4(brw_message_reg(color_mrf)), fs_reg(reg)); } - fs_inst *write; + fs_inst *write = NULL; if (key->nr_color_regions == 1) { write = bld.emit(FS_OPCODE_REP_FB_WRITE); write->saturate = key->clamp_fragment_color; -- 2.15.0 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev