diff options
author | Francisco Jerez <[email protected]> | 2017-01-13 14:18:22 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-06-28 13:19:38 -0700 |
commit | dda31a7bbcd1a889e3a4098b0bdd8464e0c9d97b (patch) | |
tree | 6f5c8d55e2101d6a29649716f18329946cb073e3 | |
parent | 90643689aae96714becc5fbbd83f0a263632b404 (diff) |
intel/fs: Fix implied_mrf_writes() for headerless FB writes.
Reviewed-by: Jason Ekstrand <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
-rw-r--r-- | src/intel/compiler/brw_fs.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler/brw_fs.cpp index 05cf7688aa4..fdf2f9d7ac1 100644 --- a/src/intel/compiler/brw_fs.cpp +++ b/src/intel/compiler/brw_fs.cpp @@ -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; |