Mesa (master): intel/compiler/icl: Clear "null render target" bit in extended message descriptor

Matt Turner mattst88 at kemper.freedesktop.org
Thu Mar 22 16:57:28 UTC 2018


Module: Mesa
Branch: master
Commit: d2eecf0b0b24d203d0f171807681dffd830d54de
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d2eecf0b0b24d203d0f171807681dffd830d54de

Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date:   Mon Dec 18 11:29:14 2017 -0800

intel/compiler/icl: Clear "null render target" bit in extended message descriptor

Otherwise all our render target writes go no where.

Reviewed-by: Matt Turner <mattst88 at gmail.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/intel/compiler/brw_eu_emit.c | 3 +++
 src/intel/compiler/brw_inst.h    | 3 +++
 2 files changed, 6 insertions(+)

diff --git a/src/intel/compiler/brw_eu_emit.c b/src/intel/compiler/brw_eu_emit.c
index f039af56d0..ee5a048bca 100644
--- a/src/intel/compiler/brw_eu_emit.c
+++ b/src/intel/compiler/brw_eu_emit.c
@@ -536,6 +536,9 @@ brw_set_dp_write_message(struct brw_codegen *p,
    if (devinfo->gen < 7) {
       brw_inst_set_dp_write_commit(devinfo, insn, send_commit_msg);
    }
+
+   if (devinfo->gen >= 11)
+      brw_inst_set_null_rt(devinfo, insn, false);
 }
 
 void
diff --git a/src/intel/compiler/brw_inst.h b/src/intel/compiler/brw_inst.h
index e6998973b6..8663c1b7f5 100644
--- a/src/intel/compiler/brw_inst.h
+++ b/src/intel/compiler/brw_inst.h
@@ -505,6 +505,9 @@ FF(sfid,
    /* 6:   */  27,  24,
    /* 7:   */  27,  24,
    /* 8:   */  27,  24)
+FF(null_rt,
+   /* 4-7: */ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+   /* 8:   */ 80, 80) /* actually only Gen11+ */
 FC(base_mrf,   27,  24, devinfo->gen < 6);
 /** @} */
 




More information about the mesa-commit mailing list