From: Yang Rong Date: Thu, 29 May 2014 16:37:30 +0000 (+0800) Subject: HSW: Fix a compact assert. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1edc50b11d75883b6895978a20cc29e117eb3f86;p=contrib%2Fbeignet.git HSW: Fix a compact assert. Also use const static int instead of const int to avoid build error in some gcc. Signed-off-by: Yang Rong Reviewed-by: Zhigang Gong --- diff --git a/backend/src/backend/gen_insn_compact.cpp b/backend/src/backend/gen_insn_compact.cpp index 43852a7..f19c364 100644 --- a/backend/src/backend/gen_insn_compact.cpp +++ b/backend/src/backend/gen_insn_compact.cpp @@ -321,6 +321,8 @@ namespace gbe { b.execution_size = GEN_WIDTH_8; else if (execWidth == 16) b.execution_size = GEN_WIDTH_16; + else if (execWidth == 4) + b.execution_size = GEN_WIDTH_4; else if (execWidth == 1) b.execution_size = GEN_WIDTH_1; else