util: Do not use align64 over unsigned int in register_allocate.c

Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23732>
This commit is contained in:
Yonggang Luo 2023-06-20 03:37:04 +08:00 committed by Marge Bot
parent 4d7c969dd8
commit b7a0d34f89

View file

@ -544,7 +544,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 = align64(alloc, BITSET_WORDBITS);
alloc = align(alloc, BITSET_WORDBITS);
g->nodes = rerzalloc(g, g->nodes, struct ra_node, g->alloc, alloc);
g->adjacency = rerzalloc(g, g->adjacency, BITSET_WORD,
BITSET_WORDS(ra_get_num_adjacency_bits(g->alloc)),