projects
/
contrib
/
beignet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32ac28b
)
GBE: fixed a long related bug.
author
Zhigang Gong
<zhigang.gong@intel.com>
Fri, 10 Jan 2014 09:49:12 +0000
(17:49 +0800)
committer
Zhigang Gong
<zhigang.gong@intel.com>
Fri, 10 Jan 2014 09:57:47 +0000
(17:57 +0800)
We need to consider the situation that the 64 bit virtual register
is crossing two GRFs.
Signed-off-by: Zhigang Gong <zhigang.gong@intel.com>
backend/src/backend/gen_register.hpp
patch
|
blob
|
history
diff --git
a/backend/src/backend/gen_register.hpp
b/backend/src/backend/gen_register.hpp
index
73d8ffa
..
57c78d9
100644
(file)
--- 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;
}