From d86c5301de62efdc59f5701d749d5253ce66a85b Mon Sep 17 00:00:00 2001 From: Zhigang Gong Date: Thu, 15 Aug 2013 10:51:33 +0800 Subject: [PATCH] GBE: fix an illegal instruction. 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 --- 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; } -- 2.7.4