[05/10] OCL20: fix a unpack long assert.

Submitted by Yang, Rong R on March 17, 2016, 10:53 a.m.

Details

Message ID 1458212038-7900-5-git-send-email-rong.r.yang@intel.com
State New
Headers show
Series "Series without cover letter" ( rev: 4 3 2 1 ) in Beignet

Not browsing as part of any series.

Commit Message

Yang, Rong R March 17, 2016, 10:53 a.m.
Src may be scaler when unpack, only check dst.

Signed-off-by: Yang Rong <rong.r.yang@intel.com>
---
 backend/src/backend/gen8_context.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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);
   }