drm/vc4: Make vc4_lbm_size() return 0 when vertical scaling is disabled
authorBoris Brezillon <boris.brezillon@bootlin.com>
Fri, 30 Nov 2018 09:02:49 +0000 (10:02 +0100)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Fri, 30 Nov 2018 09:34:16 +0000 (10:34 +0100)
commitb2e554d4df5e758306e81d64e1782f992a74b995
tree1cc334b4b67cdd30fa3470296ed1054b3f448ddd
parent22be874012893d436438b538c21a896ed930fcc5
drm/vc4: Make vc4_lbm_size() return 0 when vertical scaling is disabled

LBM is not needed when vertical scaling is disabled. Return 0 in this
case to avoid allocating LBM memory that will anyway be unused.

While at it, drop the test on ->is_unity which is now redundant.

Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20181130090254.594-1-boris.brezillon@bootlin.com
drivers/gpu/drm/vc4/vc4_plane.c