intel/fs: Fix fs_inst::flags_written() for Gen4-5 FB writes.
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 13 Jan 2017 22:17:20 +0000 (14:17 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 28 Jun 2018 20:19:38 +0000 (13:19 -0700)
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/intel/compiler/brw_fs.cpp

index 9b7a6b281dfad2672669c43adbec1a4273455032..05cf7688aa4900026c396f09d670c7112d2b83e2 100644 (file)
@@ -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);