panfrost: Align BO size to 4096 bytes

Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10158>
This commit is contained in:
Icecream95 2021-01-19 23:40:26 +13:00 committed by Marge Bot
parent 1b41707bbc
commit c8620005d2
1 changed files with 1 additions and 1 deletions

View File

@ -364,7 +364,7 @@ panfrost_bo_create(struct panfrost_device *dev, size_t size,
assert(size > 0);
/* To maximize BO cache usage, don't allocate tiny BOs */
size = MAX2(size, 4096);
size = ALIGN_POT(size, 4096);
/* GROWABLE BOs cannot be mmapped */
if (flags & PAN_BO_GROWABLE)