[Beignet] [PATCH] Backend: Add gen9 barrier prediction setting

Pan Xiuli xiuli.pan at intel.com
Tue Nov 24 17:55:57 PST 2015


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 at 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



More information about the Beignet mailing list