From: Francisco Jerez Date: Fri, 13 Jan 2017 22:17:20 +0000 (-0800) Subject: intel/fs: Fix fs_inst::flags_written() for Gen4-5 FB writes. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=90643689aae96714becc5fbbd83f0a263632b404;p=mesa.git intel/fs: Fix fs_inst::flags_written() for Gen4-5 FB writes. Reviewed-by: Jason Ekstrand Reviewed-by: Matt Turner --- diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index 9b7a6b281df..05cf7688aa4 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -957,7 +957,8 @@ fs_inst::flags_written() const opcode != BRW_OPCODE_IF && opcode != BRW_OPCODE_WHILE)) || opcode == FS_OPCODE_MOV_DISPATCH_TO_FLAGS || - opcode == SHADER_OPCODE_FIND_LIVE_CHANNEL) { + opcode == SHADER_OPCODE_FIND_LIVE_CHANNEL || + opcode == FS_OPCODE_FB_WRITE) { return flag_mask(this); } else { return flag_mask(dst, size_written);