projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86c4575
)
i965: fix subnr overflow in suboffset()
author
Iago Toral Quiroga
<itoral@igalia.com>
Tue, 27 Sep 2016 10:23:44 +0000
(12:23 +0200)
committer
Iago Toral Quiroga
<itoral@igalia.com>
Wed, 19 Oct 2016 09:48:21 +0000
(11:48 +0200)
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_reg.h
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_reg.h
b/src/mesa/drivers/dri/i965/brw_reg.h
index
3b46d27
..
8907c9c
100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_reg.h
+++ b/
src/mesa/drivers/dri/i965/brw_reg.h
@@
-520,14
+520,6
@@
sechalf(struct brw_reg reg)
}
static inline struct brw_reg
-suboffset(struct brw_reg reg, unsigned delta)
-{
- reg.subnr += delta * type_sz(reg.type);
- return reg;
-}
-
-
-static inline struct brw_reg
offset(struct brw_reg reg, unsigned delta)
{
reg.nr += delta;
@@
-544,6
+536,11
@@
byte_offset(struct brw_reg reg, unsigned bytes)
return reg;
}
+static inline struct brw_reg
+suboffset(struct brw_reg reg, unsigned delta)
+{
+ return byte_offset(reg, delta * type_sz(reg.type));
+}
/** Construct unsigned word[16] register */
static inline struct brw_reg