drm/vc4: plane: Improve LBM usage
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Tue, 11 Feb 2020 16:55:02 +0000 (16:55 +0000)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:33:35 +0000 (16:33 +0100)
commita965502081f189301702da44105f48dac1f0e88c
tree7ae9497a8c5c57a15a37ee2586ff63781245c6d1
parent206b1e60ee8b729f2110c0764c785474aa770f79
drm/vc4: plane: Improve LBM usage

LBM allocations were always taking the worst case sizing of
max(src_width, dst_width) * 16. This is significantly over
the required sizing, and stops us rendering multiple 4k images
to the screen.

Add some of the additional constraints to more accurately
describe the LBM requirements.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/vc4_plane.c