drm/vc4: bo: Split out Dumb buffers fixup
authorMaxime Ripard <maxime@cerno.tech>
Thu, 21 Apr 2022 08:59:41 +0000 (10:59 +0200)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Wed, 11 May 2022 15:33:21 +0000 (16:33 +0100)
commitf289e21561a8a57189cdedf8a6247bc8d11e4111
treec65e5da73382459eab82264b3f07f2c0b9fc465c
parent7f3395f0dfdf7dd0d0558fa44d222fd66d79cd25
drm/vc4: bo: Split out Dumb buffers fixup

The vc4_bo_dumb_create() both fixes up the allocation arguments to match
the hardware constraints and actually performs the allocation.

Since we're going to introduce a new function that uses a different
allocator, let's split the arguments fixup to a separate function we
will be able to reuse.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/vc4_bo.c
drivers/gpu/drm/vc4/vc4_drv.c
drivers/gpu/drm/vc4/vc4_drv.h