[Beignet] [PATCH 07/10] Android: disable the read byte as DW.
Yang Rong
rong.r.yang at intel.com
Thu May 19 08:37:13 UTC 2016
From: Zhigang Gong <zhigang.gong at intel.com>
Signed-off-by: Zhigang Gong <zhigang.gong at intel.com>
---
backend/src/backend/gen_insn_selection.cpp | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/backend/src/backend/gen_insn_selection.cpp b/backend/src/backend/gen_insn_selection.cpp
index 07901a6..a48f95f 100644
--- a/backend/src/backend/gen_insn_selection.cpp
+++ b/backend/src/backend/gen_insn_selection.cpp
@@ -2349,7 +2349,11 @@ extern bool OCL_DEBUGINFO; // first defined by calling BVAR in program.cpp
this->opaque->setHasLongType(true);
this->opaque->setHasDoubleType(true);
this->opaque->setLongRegRestrict(true);
+#if defined(__ANDROID__)
+ this->opaque->setSlowByteGather(false);
+#else
this->opaque->setSlowByteGather(true);
+#endif
this->opaque->setHasHalfType(true);
opt_features = SIOF_LOGICAL_SRCMOD | SIOF_OP_MOV_LONG_REG_RESTRICT;
}
--
2.1.4
More information about the Beignet
mailing list