Commit c8620005 authored by Icecream95's avatar Icecream95 Committed by Marge Bot
Browse files

panfrost: Align BO size to 4096 bytes


Reviewed-by: Alyssa Rosenzweig's avatarAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <mesa/mesa!10158>
parent 1b41707b
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment