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 <[email protected]> wrote:

> From: Zhigang Gong <[email protected]>
>
> Signed-off-by: Zhigang Gong <[email protected]>
> ---
>  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
>
> _______________________________________________
> Beignet mailing list
> [email protected]
> https://lists.freedesktop.org/mailman/listinfo/beignet
>
_______________________________________________
Beignet mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/beignet

Reply via email to