From a336bf1abd5dd24e366ddee42065ba0e5fea9ad0 Mon Sep 17 00:00:00 2001 From: Zou Nan hai Date: Fri, 16 Aug 2013 07:56:08 +0800 Subject: [PATCH] use r112 as source of EOT message Fix random hang cases. use r112 as source of EOT message. Bspec requires r112-r127 as EOT message source. Signed-off-by: Zou Nanhai Reviewed-by: Zhigang Gong --- 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(); } -- 2.7.4