summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/g3dvl/vl_util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/state_trackers/g3dvl/vl_util.c')
-rw-r--r--src/gallium/state_trackers/g3dvl/vl_util.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gallium/state_trackers/g3dvl/vl_util.c b/src/gallium/state_trackers/g3dvl/vl_util.c
index 2421ae22101..50aa9af66f2 100644
--- 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;
}
-