diff options
author | Eric Anholt <eric@anholt.net> | 2018-02-10 11:19:00 +0000 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2018-02-20 20:23:57 -0800 |
commit | afa7b2f19975f45234637f47859fdd768551a080 (patch) | |
tree | aad831af7eab7efaf544182c68be49bb5a33c960 /src/intel | |
parent | 4636ce362d4defc70a2b40cab1f52d1c890f5673 (diff) |
i965: Fix compiler warning about write being undefined.
This looks like it should be protected by the assume() about
nr_color_regions, but my compiler warns anyway.
Reviewed-by: Matt Turner <mattst88@gmail.com>
Diffstat (limited to 'src/intel')
-rw-r--r-- | src/intel/compiler/brw_fs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index 6fb46e7374c..bed632d21b9 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; |