Mesa (main): intel/compiler: Add LSC messages to brw_schedule_instructions

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jun 30 16:30:46 UTC 2021


Module: Mesa
Branch: main
Commit: 32ec0662fd34f222921f35e155850922c662ccce
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=32ec0662fd34f222921f35e155850922c662ccce

Author: Mark Janes <markjanes at swizzler.org>
Date:   Thu Apr 29 12:48:02 2021 -0700

intel/compiler: Add LSC messages to brw_schedule_instructions

v2 (Jason Ekstrand):
 - Use lsc_msg_desc_opcode()
 - Drop all opcodes for now and add them in later patches.

Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
Reviewed-by: Sagar Ghuge <sagar.ghuge at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11600>

---

 src/intel/compiler/brw_schedule_instructions.cpp | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/intel/compiler/brw_schedule_instructions.cpp b/src/intel/compiler/brw_schedule_instructions.cpp
index 78a3663975c..6705bf68575 100644
--- a/src/intel/compiler/brw_schedule_instructions.cpp
+++ b/src/intel/compiler/brw_schedule_instructions.cpp
@@ -528,6 +528,15 @@ schedule_node::set_latency_gfx7(bool is_haswell)
          }
          break;
 
+      case GFX12_SFID_UGM:
+      case GFX12_SFID_TGM:
+      case GFX12_SFID_SLM:
+         switch (lsc_msg_desc_opcode(devinfo, inst->desc)) {
+         default:
+            unreachable("unsupported new data port message instruction");
+         }
+         break;
+
       case GEN_RT_SFID_BINDLESS_THREAD_DISPATCH:
       case GEN_RT_SFID_RAY_TRACE_ACCELERATOR:
          /* TODO.



More information about the mesa-commit mailing list