intel/fs: Fix implied_mrf_writes() for headerless FB writes.
authorFrancisco Jerez <currojerez@riseup.net>
Fri, 13 Jan 2017 22:18:22 +0000 (14:18 -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 05cf7688aa4900026c396f09d670c7112d2b83e2..fdf2f9d7ac1aacac91640247c6c6d4d6b2d5c4b8 100644 (file)
@@ -1007,7 +1007,8 @@ fs_visitor::implied_mrf_writes(fs_inst *inst) const
    case SHADER_OPCODE_SAMPLEINFO:
       return 1;
    case FS_OPCODE_FB_WRITE:
-      return 2;
+   case FS_OPCODE_REP_FB_WRITE:
+      return inst->src[0].file == BAD_FILE ? 0 : 2;
    case FS_OPCODE_UNIFORM_PULL_CONSTANT_LOAD:
    case SHADER_OPCODE_GEN4_SCRATCH_READ:
       return 1;