projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
nv50/ir: properly clear upper bits of a bitset fill
[mesa.git]
/
src
/
gallium
/
drivers
/
nouveau
/
codegen
/
nv50_ir_util.cpp
diff --git
a/src/gallium/drivers/nouveau/codegen/nv50_ir_util.cpp
b/src/gallium/drivers/nouveau/codegen/nv50_ir_util.cpp
index 682c5690624b34e5de50487ea5cfb26b6417fada..1daf778e9346b60521d6aaa24146fa1075cb1d61 100644
(file)
--- a/
src/gallium/drivers/nouveau/codegen/nv50_ir_util.cpp
+++ b/
src/gallium/drivers/nouveau/codegen/nv50_ir_util.cpp
@@
-297,8
+297,8
@@
void BitSet::fill(uint32_t val)
unsigned int i;
for (i = 0; i < (size + 31) / 32; ++i)
data[i] = val;
- if (val)
- data[i
] &= ~(0xffffffff << (size % 32)); // BE ?
+ if (val
&& i
)
+ data[i
- 1] &= (1 << (size % 32)) - 1;
}
void BitSet::setOr(BitSet *pA, BitSet *pB)