[Beignet] [PATCH] GBE: fixed a long related bug.
Yang, Rong R
rong.r.yang at intel.com
Sun Jan 12 18:57:23 PST 2014
LGTM, thanks.
-----Original Message-----
From: beignet-bounces at lists.freedesktop.org [mailto:beignet-bounces at lists.freedesktop.org] On Behalf Of Zhigang Gong
Sent: Friday, January 10, 2014 5:58 PM
To: beignet at lists.freedesktop.org
Cc: Gong, Zhigang
Subject: [Beignet] [PATCH] GBE: fixed a long related bug.
We need to consider the situation that the 64 bit virtual register is crossing two GRFs.
Signed-off-by: Zhigang Gong <zhigang.gong at intel.com>
---
backend/src/backend/gen_register.hpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/backend/src/backend/gen_register.hpp b/backend/src/backend/gen_register.hpp
index 73d8ffa..57c78d9 100644
--- a/backend/src/backend/gen_register.hpp
+++ b/backend/src/backend/gen_register.hpp
@@ -270,6 +270,8 @@ namespace gbe
INLINE GenRegister top_half(void) const {
GenRegister r = bottom_half();
r.subnr += 4;
+ r.nr += r.subnr / 32;
+ r.subnr %= 32;
return r;
}
--
1.7.9.5
_______________________________________________
Beignet mailing list
Beignet at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/beignet
More information about the Beignet
mailing list