[Beignet] [PATCH] use r112 as source of EOT message

Zou Nan hai nanhai.zou at intel.com
Thu Aug 15 16:56:08 PDT 2013


Fix random hang cases.
use r112 as source of EOT message.
Bspec requires r112-r127 as EOT message source.

Signed-off-by: Zou Nanhai <nanhai.zou at intel.com>
---
 backend/src/backend/gen_context.cpp |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/backend/src/backend/gen_context.cpp b/backend/src/backend/gen_context.cpp
index 364ed1d..ff18c46 100644
--- a/backend/src/backend/gen_context.cpp
+++ b/backend/src/backend/gen_context.cpp
@@ -822,11 +822,12 @@ namespace gbe
   }
 
   void GenContext::emitEotInstruction(const SelectionInstruction &insn) {
+    p->MOV(GenRegister::ud8grf(112, 0), GenRegister::ud8grf(0, 0));
     p->push();
       p->curr.predicate = GEN_PREDICATE_NONE;
       p->curr.execWidth = 8;
       p->curr.noMask = 1;
-      p->EOT(0);
+      p->EOT(112);
     p->pop();
   }
 
-- 
1.7.9.5



More information about the Beignet mailing list