[Beignet] [PATCH 1/2] [OCL20] fix workgroup_broadcast instruction debug mode assert.

xionghu.luo at intel.com xionghu.luo at intel.com
Thu Dec 10 19:22:08 PST 2015


From: Luo Xionghu <xionghu.luo at intel.com>

the workgoup related parameter of the workgroup_broadcast function is
FAMILY_QWORD.
---
 backend/src/ir/instruction.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backend/src/ir/instruction.cpp b/backend/src/ir/instruction.cpp
index 3370935..7a3877f 100644
--- a/backend/src/ir/instruction.cpp
+++ b/backend/src/ir/instruction.cpp
@@ -1314,7 +1314,7 @@ namespace ir {
             whyNot = "Wrong number of source.";
             return false;
           } else {
-            const RegisterFamily fam = FAMILY_DWORD;
+            const RegisterFamily fam = FAMILY_QWORD;
             for (uint32_t srcID = 1; srcID < this->srcNum; ++srcID) {
               const Register regID = fn.getRegister(src, srcID);
               if (UNLIKELY(checkRegisterData(fam, regID, fn, whyNot) == false))
-- 
2.1.4



More information about the Beignet mailing list