diff options
author | Marek Olšák <[email protected]> | 2020-03-25 21:26:24 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-27 21:00:09 +0000 |
commit | 76f79db3f5d8492370c92080b5bbea7e31827b75 (patch) | |
tree | 6dd5ce4c71e696c82f4d8984d49dfe9a692e9879 /src/util/register_allocate.c | |
parent | c42fa40a51efcf877915689bf170c67fff7e5600 (diff) |
util: stop including files from mesa/main
Reviewed-by: Timothy Arceri <[email protected]
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4324>
Diffstat (limited to 'src/util/register_allocate.c')
-rw-r--r-- | src/util/register_allocate.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/util/register_allocate.c b/src/util/register_allocate.c index 9c654080a09..af43c2fbb43 100644 --- a/src/util/register_allocate.c +++ b/src/util/register_allocate.c @@ -71,11 +71,12 @@ */ #include <stdbool.h> +#include <limits.h> #include "ralloc.h" #include "util/imports.h" -#include "main/macros.h" #include "util/bitset.h" +#include "u_math.h" #include "register_allocate.h" struct ra_reg { @@ -496,7 +497,7 @@ ra_realloc_interference_graph(struct ra_graph *g, unsigned int alloc) * easier to memset the top of the growing bitsets. */ assert(g->alloc % BITSET_WORDBITS == 0); - alloc = ALIGN(alloc, BITSET_WORDBITS); + alloc = align64(alloc, BITSET_WORDBITS); g->nodes = reralloc(g, g->nodes, struct ra_node, alloc); |