summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPan Xiuli <xiuli.pan@intel.com>2015-11-25 09:55:57 +0800
committerYang Rong <rong.r.yang@intel.com>2015-11-25 11:02:21 +0800
commitf801671e7c6243530448da49f3fb6104b7ae7cae (patch)
tree5b46db6be45a4d257a2e12051fdfd58e0712669f
parente7189e6f2b85eae01416e9e728b09241701dd78a (diff)
Backend: Add gen9 barrier prediction setting
Gen9 have a different context to emit BarrierInst that contains wait instruction, and wait instruction need to be no predication. Signed-off-by: Pan Xiuli <xiuli.pan@intel.com> Reviewed-by: Yang Rong <rong.r.yang@intel.com>
-rw-r--r--backend/src/backend/gen9_context.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/src/backend/gen9_context.cpp b/backend/src/backend/gen9_context.cpp
index 326f5a12..c35293a9 100644
--- a/backend/src/backend/gen9_context.cpp
+++ b/backend/src/backend/gen9_context.cpp
@@ -51,6 +51,7 @@ namespace gbe
p->BARRIER(src);
p->curr.execWidth = 1;
// Now we wait for the other threads
+ p->curr.predicate = GEN_PREDICATE_NONE;
p->WAIT();
p->pop();
}