Pushed, thanks.

> -----Original Message-----
> From: Beignet [mailto:[email protected]] On Behalf Of
> Pan, Xiuli
> Sent: Thursday, February 23, 2017 16:34
> To: [email protected]; [email protected]
> Subject: Re: [Beignet] [PATCH] MAD compact instrcution could not support
> "absolute" attribute.
> 
> LGTM.
> -----Original Message-----
> From: Beignet [mailto:[email protected]] On Behalf Of
> [email protected]
> Sent: Thursday, February 23, 2017 4:20 PM
> To: [email protected]
> Cc: Yan Wang <[email protected]>
> Subject: [Beignet] [PATCH] MAD compact instrcution could not support
> "absolute" attribute.
> 
> From: Yan Wang <[email protected]>
> 
> If absolute of SRCs of MAD instruction is 1, doens't use compact instruction.
> 
> Signed-off-by: Yan Wang <[email protected]>
> ---
>  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
> [email protected]
> https://lists.freedesktop.org/mailman/listinfo/beignet
> _______________________________________________
> 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