summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2014-10-13 09:34:15 -0700
committerKenneth Graunke <kenneth@whitecape.org>2015-01-10 19:27:10 -0800
commit199e7288363e311f8727cda4defa86834d2034ed (patch)
tree8361474f2f2f97ce0f8604cdc441f532fe008ed2
parent148c82d75797cda2c663bb10c224487da478d55b (diff)
i965: Make emit_repclear_shader use message headers on Gen4-5.
Ironlake and earlier hardware don't support headerless FB write messages. Conveniently, we already have code to support using a message header since it's required for MRT on Gen6+; just use that path. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp
index 8bb2893dc9..9096dced13 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs.cpp
@@ -2664,7 +2664,7 @@ fs_visitor::emit_repclear_shader()
mov->force_writemask_all = true;
fs_inst *write;
- if (key->nr_color_regions == 1) {
+ if (key->nr_color_regions == 1 && brw->gen >= 6) {
write = emit(FS_OPCODE_REP_FB_WRITE);
write->saturate = key->clamp_fragment_color;
write->base_mrf = color_mrf;