[Beignet] [PATCH] GBE: fix an illegal instruction.

Zhigang Gong zhigang.gong at linux.intel.com
Wed Aug 14 19:56:12 PDT 2013


Per Gen ISA spec:
When ExecSize = Width, VertStride must be set to Width * HorzStride.

For horizontal stride 2 in bottom_half, we always use it simd8 mode,
so we need to set the vertstride to 16 according to the above restrication.

Signed-off-by: Zhigang Gong <zhigang.gong at linux.intel.com>
---
 backend/src/backend/gen_register.hpp |    1 +
 1 file changed, 1 insertion(+)

diff --git a/backend/src/backend/gen_register.hpp b/backend/src/backend/gen_register.hpp
index c953319..ea1bc06 100644
--- a/backend/src/backend/gen_register.hpp
+++ b/backend/src/backend/gen_register.hpp
@@ -270,6 +270,7 @@ namespace gbe
       GenRegister r = *this;
       r.type = type == GEN_TYPE_UL ? GEN_TYPE_UD : GEN_TYPE_D;
       r.hstride = GEN_HORIZONTAL_STRIDE_2;
+      r.vstride = GEN_VERTICAL_STRIDE_16;
       return r;
     }
 
-- 
1.7.9.5



More information about the Beignet mailing list