Mesa (master): intel/fs/swsb: SCHEDULING_FENCE only emits SYNC_NOP

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun Sep 20 14:50:16 UTC 2020


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

Author: Jason Ekstrand <jason at jlekstrand.net>
Date:   Fri Sep 18 18:11:10 2020 -0500

intel/fs/swsb: SCHEDULING_FENCE only emits SYNC_NOP

It's not really unordered in the sense that it can still stall on
ordered things and we don't need a SYNC_NOP for that because it is a
SYNC_NOP.  However, it also doesn't count when computing instruction
distances.

Fixes: 18e72ee2108 "intel/fs: Add FS_OPCODE_SCHEDULING_FENCE"
Reviewed-by: Francisco Jerez <currojerez at riseup.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6781>

---

 src/intel/compiler/brw_fs_scoreboard.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/intel/compiler/brw_fs_scoreboard.cpp b/src/intel/compiler/brw_fs_scoreboard.cpp
index 0e810218db6..899b47542ba 100644
--- a/src/intel/compiler/brw_fs_scoreboard.cpp
+++ b/src/intel/compiler/brw_fs_scoreboard.cpp
@@ -77,6 +77,7 @@ namespace {
       case BRW_OPCODE_DO:
       case SHADER_OPCODE_UNDEF:
       case FS_OPCODE_PLACEHOLDER_HALT:
+      case FS_OPCODE_SCHEDULING_FENCE:
          return 0;
       default:
          /* Note that the following is inaccurate for virtual instructions



More information about the mesa-commit mailing list