aboutsummaryrefslogtreecommitdiffstats
path: root/src/intel/compiler/brw_fs_visitor.cpp
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2017-01-13 14:01:45 -0800
committerJason Ekstrand <[email protected]>2018-05-29 15:44:50 -0700
commit4bd2047deea31e877ae023a3845f925aab69cdc7 (patch)
tree2712d1885b93f5220a5cf6b54c6f766fd8b558ad /src/intel/compiler/brw_fs_visitor.cpp
parentd3cd6b7215c11054b587fb0fd621c53c6d62c64b (diff)
intel/fs: Add explicit last_rt flag to fb writes orthogonal to eot.
When using multiple RT write messages to the same RT such as for dual-source blending or all RT writes in SIMD32, we have to set the "Last Render Target Select" bit on all write messages that target the last RT but only set EOT on the last RT write in the shader. Special-casing for dual-source blend works today because that is the only case which requires multiple RT write messages per RT. When we start doing SIMD32, this will become much more common so we add a dedicated bit for it. Reviewed-by: Jason Ekstrand <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_fs_visitor.cpp')
-rw-r--r--src/intel/compiler/brw_fs_visitor.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/intel/compiler/brw_fs_visitor.cpp b/src/intel/compiler/brw_fs_visitor.cpp
index 41dbd76106e..a24808eac69 100644
--- a/src/intel/compiler/brw_fs_visitor.cpp
+++ b/src/intel/compiler/brw_fs_visitor.cpp
@@ -103,6 +103,7 @@ fs_visitor::emit_dummy_fs()
fs_inst *write;
write = bld.emit(FS_OPCODE_FB_WRITE);
write->eot = true;
+ write->last_rt = true;
if (devinfo->gen >= 6) {
write->base_mrf = 2;
write->mlen = 4 * reg_width;
@@ -459,6 +460,7 @@ fs_visitor::emit_fb_writes()
inst->target = 0;
}
+ inst->last_rt = true;
inst->eot = true;
}