[Beignet] [PATCH] MAD compact instrcution could not support "absolute" attribute.
Pan, Xiuli
xiuli.pan at intel.com
Thu Feb 23 08:33:57 UTC 2017
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
More information about the Beignet
mailing list