diff --git a/src/gallium/drivers/panfrost/pan_mempool.c b/src/gallium/drivers/panfrost/pan_mempool.c index 31b638cf710..6c6deb58d10 100644 --- a/src/gallium/drivers/panfrost/pan_mempool.c +++ b/src/gallium/drivers/panfrost/pan_mempool.c @@ -144,8 +144,8 @@ panfrost_pool_alloc_aligned(struct panfrost_pool *pool, size_t sz, !(pool->create_flags & PAN_BO_INVISIBLE)) { long page_size = sysconf(_SC_PAGESIZE); assert(page_size > 0 && util_is_power_of_two_nonzero(page_size)); - unsigned aligned = ALIGN_POT(sz, page_size); - unsigned bo_size = aligned + PAN_GUARD_SIZE; + size_t aligned = ALIGN_POT(sz, page_size); + size_t bo_size = aligned + PAN_GUARD_SIZE; bo = panfrost_pool_alloc_backing(pool, bo_size); if (!bo)