[Beignet] [PATCH 05/10] OCL20: fix a unpack long assert.
Yang Rong
rong.r.yang at intel.com
Thu Mar 17 10:53:53 UTC 2016
Src may be scaler when unpack, only check dst.
Signed-off-by: Yang Rong <rong.r.yang at intel.com>
---
backend/src/backend/gen8_context.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backend/src/backend/gen8_context.cpp b/backend/src/backend/gen8_context.cpp
index d19b2c0..c2e5fc6 100644
--- a/backend/src/backend/gen8_context.cpp
+++ b/backend/src/backend/gen8_context.cpp
@@ -1054,7 +1054,7 @@ namespace gbe
const GenRegister dst = ra->genReg(insn.dst(0));
/* Scalar register need not to convert. */
- GBE_ASSERT(dst.hstride != GEN_HORIZONTAL_STRIDE_0 && src.hstride != GEN_HORIZONTAL_STRIDE_0);
+ GBE_ASSERT(dst.hstride != GEN_HORIZONTAL_STRIDE_0);
this->unpackLongVec(src, dst, p->curr.execWidth);
}
--
1.9.1
More information about the Beignet
mailing list