[Beignet] [PATCH] MAD compact instrcution could not support "absolute" attribute.
Yang, Rong R
rong.r.yang at intel.com
Fri Feb 24 05:45:54 UTC 2017
Pushed, thanks.
> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of
> Pan, Xiuli
> Sent: Thursday, February 23, 2017 16:34
> To: yan.wang at linux.intel.com; beignet at lists.freedesktop.org
> Subject: Re: [Beignet] [PATCH] MAD compact instrcution could not support
> "absolute" attribute.
>
> LGTM.
> -----Original Message-----
> From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of
> yan.wang at linux.intel.com
> Sent: Thursday, February 23, 2017 4:20 PM
> To: beignet at lists.freedesktop.org
> Cc: Yan Wang <yan.wang at linux.intel.com>
> Subject: [Beignet] [PATCH] MAD compact instrcution could not support
> "absolute" attribute.
>
> From: Yan Wang <yan.wang at linux.intel.com>
>
> If absolute of SRCs of MAD instruction is 1, doens't use compact instruction.
>
> Signed-off-by: Yan Wang <yan.wang at linux.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 62fcb61..22305f7 100644
> --- a/backend/src/backend/gen_insn_compact.cpp
> +++ b/backend/src/backend/gen_insn_compact.cpp
> @@ -804,6 +804,8 @@ namespace gbe {
> if( control_index == -1) return false;
> if( src0.negation + src1.negation + src2.negation > 1)
> return false;
> + if( src0.absolute + src1.absolute + src2.absolute > 0)
> + return false;
>
> GenCompactInstruction *insn = p->nextCompact(opcode);
> insn->src3Insn.bits1.control_index = control_index;
> --
> 2.7.4
>
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/beignet
> _______________________________________________
> Beignet mailing list
> Beignet at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/beignet
More information about the Beignet
mailing list