From: Junyan He <junyan...@linux.intel.com>

We do not want CALC_TIMESTAMP and STORE_PROFILING to be scheduled
with other instructions, because it will get the wrong timestamps.

Signed-off-by: Junyan He <junyan...@linux.intel.com>
---
 backend/src/backend/gen_insn_scheduling.cpp |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/backend/src/backend/gen_insn_scheduling.cpp 
b/backend/src/backend/gen_insn_scheduling.cpp
index 358a2ce..43f67c9 100644
--- a/backend/src/backend/gen_insn_scheduling.cpp
+++ b/backend/src/backend/gen_insn_scheduling.cpp
@@ -589,7 +589,9 @@ namespace gbe
           || node->insn.opcode == SEL_OP_ENDIF
           || node->insn.opcode == SEL_OP_WHILE
           || node->insn.opcode == SEL_OP_READ_ARF
-          || node->insn.opcode == SEL_OP_BARRIER)
+          || node->insn.opcode == SEL_OP_BARRIER
+          || node->insn.opcode == SEL_OP_CALC_TIMESTAMP
+          || node->insn.opcode == SEL_OP_STORE_PROFILING)
         tracker.makeBarrier(insnID, insnNum);
     }
 
-- 
1.7.9.5



_______________________________________________
Beignet mailing list
Beignet@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/beignet

Reply via email to