summaryrefslogtreecommitdiffstats
path: root/src/mesa/program
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2013-04-04 09:47:03 -0700
committerEric Anholt <[email protected]>2013-04-12 16:32:12 -0700
commitdf25b4f3cf22282b06e622f3cf1f5855b8f767a8 (patch)
tree0b61ecc2d28452187ede83b9881d7ab8ad201058 /src/mesa/program
parentb5a0f59c0f167c2d99b585371e76c80c5342990c (diff)
mesa: Add a macro to bitset for determining bitset size.
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/program')
-rw-r--r--src/mesa/program/register_allocate.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/program/register_allocate.c b/src/mesa/program/register_allocate.c
index e276b8ac84b..b8472a21093 100644
--- a/src/mesa/program/register_allocate.c
+++ b/src/mesa/program/register_allocate.c
@@ -355,7 +355,7 @@ ra_alloc_interference_graph(struct ra_regs *regs, unsigned int count)
g->stack = rzalloc_array(g, unsigned int, count);
for (i = 0; i < count; i++) {
- int bitset_count = ALIGN(count, BITSET_WORDBITS) / BITSET_WORDBITS;
+ int bitset_count = BITSET_WORDS(count);
g->nodes[i].adjacency = rzalloc_array(g, BITSET_WORD, bitset_count);
g->nodes[i].adjacency_list_size = 4;