[07/10] Android: disable the read byte as DW.

Submitted by Yang, Rong R on May 26, 2016, 2:51 a.m.

Details

Message ID 7597C9376C272A4AB2D29E91550B7B0902894852@shsmsx102.ccr.corp.intel.com
State New
Headers show
Series "Series without cover letter" ( rev: 2 ) in Beignet

Not browsing as part of any series.

Commit Message

Yang, Rong R May 26, 2016, 2:51 a.m.
Ok, I will send a new version.

From: Zhigang Gong [mailto:zhigang.gong@gmail.com]

Sent: Thursday, May 26, 2016 9:52
To: Yang, Rong R <rong.r.yang@intel.com>
Cc: beignet@lists.freedesktop.org; Gong, Zhigang <zhigang.gong@intel.com>
Subject: Re: [Beignet] [PATCH 07/10] Android: disable the read byte as DW.

This patch should not be a android specific patch, based on my testing result we should set slow byte gathering to false for CHV platform.

Thanks,
Zhigang Gong.


On Thu, May 19, 2016 at 4:37 PM, Yang Rong <rong.r.yang@intel.com<mailto:rong.r.yang@intel.com>> wrote:
From: Zhigang Gong <zhigang.gong@intel.com<mailto:zhigang.gong@intel.com>>


Signed-off-by: Zhigang Gong <zhigang.gong@intel.com<mailto:zhigang.gong@intel.com>>

---
 backend/src/backend/gen_insn_selection.cpp | 4 ++++
 1 file changed, 4 insertions(+)

--
2.1.4

_______________________________________________
Beignet mailing list
Beignet@lists.freedesktop.org<mailto:Beignet@lists.freedesktop.org>
https://lists.freedesktop.org/mailman/listinfo/beignet

Patch hide | download patch | download mbox

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;
   }