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....@intel.com>
---
 backend/src/backend/gen9_context.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/backend/src/backend/gen9_context.cpp 
b/backend/src/backend/gen9_context.cpp
index 326f5a1..c35293a 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();
   }
-- 
2.1.4

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

Reply via email to