[Beignet] [PATCH] Fix the bug of ulong mad sat
Meng, Mengmeng
mengmeng.meng at intel.com
Mon Feb 9 00:13:59 PST 2015
The patch could fix that issue in my side.
-----Original Message-----
From: Beignet [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of junyan.he at inbox.com
Sent: Monday, February 09, 2015 3:52 PM
To: beignet at lists.freedesktop.org
Cc: Junyan He
Subject: [Beignet] [PATCH] Fix the bug of ulong mad sat
From: Junyan He <junyan.he at linux.intel.com>
Signed-off-by: Junyan He <junyan.he at linux.intel.com>
---
backend/src/backend/gen8_context.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/backend/src/backend/gen8_context.cpp b/backend/src/backend/gen8_context.cpp
index aa870ea..4edfd81 100644
--- a/backend/src/backend/gen8_context.cpp
+++ b/backend/src/backend/gen8_context.cpp
@@ -308,6 +308,7 @@ namespace gbe
p->curr.noMask = 1;
p->curr.useFlag(flagReg.flag_nr(), flagReg.flag_subnr());
p->CMP(GEN_CONDITIONAL_NZ, dst_h, GenRegister::immud(0), tmp0);
+ p->curr.predicate = GEN_PREDICATE_NORMAL;
p->curr.noMask = 0;
p->MOV(dst_l, GenRegister::immuint64(0xFFFFFFFFFFFFFFFF));
p->pop();
@@ -317,6 +318,7 @@ namespace gbe
p->curr.noMask = 1;
p->curr.useFlag(flagReg.flag_nr(), flagReg.flag_subnr());
p->CMP(GEN_CONDITIONAL_L, dst_l, src2, tmp0);
+ p->curr.predicate = GEN_PREDICATE_NORMAL;
p->curr.noMask = 0;
p->MOV(dst_l, GenRegister::immuint64(0xFFFFFFFFFFFFFFFF));
p->pop();
--
1.9.1
_______________________________________________
Beignet mailing list
Beignet at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/beignet
More information about the Beignet
mailing list