intel/compiler: Track latency/perf of LSC fences
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 25 May 2021 08:31:10 +0000 (11:31 +0300)
committerMarge Bot <eric+marge@anholt.net>
Mon, 12 Jul 2021 11:39:03 +0000 (11:39 +0000)
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11759>

src/intel/compiler/brw_ir_performance.cpp
src/intel/compiler/brw_schedule_instructions.cpp

index d4a0a87..edec07a 100644 (file)
@@ -1106,6 +1106,7 @@ namespace {
                                      10 /* XXX */, 100 /* XXX */, 0, 0,
                                      0, 0);
 
+            case LSC_OP_FENCE:
             case LSC_OP_ATOMIC_INC:
             case LSC_OP_ATOMIC_DEC:
             case LSC_OP_ATOMIC_LOAD:
index 797c209..e19a9e5 100644 (file)
@@ -538,6 +538,7 @@ schedule_node::set_latency_gfx7(bool is_haswell)
          case LSC_OP_STORE_CMASK:
             latency = 300;
             break;
+         case LSC_OP_FENCE:
          case LSC_OP_ATOMIC_INC:
          case LSC_OP_ATOMIC_DEC:
          case LSC_OP_ATOMIC_LOAD: