GBE: fix an illegal instruction.
authorZhigang Gong <zhigang.gong@linux.intel.com>
Thu, 15 Aug 2013 02:51:33 +0000 (10:51 +0800)
committerZhigang Gong <zhigang.gong@linux.intel.com>
Thu, 15 Aug 2013 02:54:21 +0000 (10:54 +0800)
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@linux.intel.com>
backend/src/backend/gen_register.hpp

index c953319..ea1bc06 100644 (file)
@@ -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;
     }