[Beignet] [PATCH 1/5] HSW: Fix a compact assert.

Yang Rong rong.r.yang at intel.com
Thu May 29 09:37:30 PDT 2014


Also use const static int instead of const int to avoid build error
in some gcc.

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

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
-- 
1.8.3.2



More information about the Beignet mailing list