projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gallium: standardize api on the prefix "nr"
[mesa.git]
/
src
/
gallium
/
state_trackers
/
g3dvl
/
vl_util.c
diff --git
a/src/gallium/state_trackers/g3dvl/vl_util.c
b/src/gallium/state_trackers/g3dvl/vl_util.c
index 2421ae22101ac224eff8c38f514574030aba4b26..50aa9af66f2684d7ae44b86e92f1e3ea089bc8f2 100644
(file)
--- a/
src/gallium/state_trackers/g3dvl/vl_util.c
+++ b/
src/gallium/state_trackers/g3dvl/vl_util.c
@@
-4,14
+4,13
@@
unsigned int vlRoundUpPOT(unsigned int x)
{
unsigned int i;
-
+
assert(x > 0);
-
+
--x;
-
+
for (i = 1; i < sizeof(unsigned int) * 8; i <<= 1)
x |= x >> i;
-
+
return x + 1;
}
-