drm/vc4: Check if plane requires background fill
authorStefan Schake <stschake@gmail.com>
Fri, 9 Mar 2018 00:53:35 +0000 (01:53 +0100)
committerEric Anholt <eric@anholt.net>
Fri, 9 Mar 2018 19:25:02 +0000 (11:25 -0800)
commit3d67b68a6a3c2deb689c29759a20150c668c286e
tree636c742299a0796f5a81674f4ea0872239be1798
parent05202c241f1476d8e2b30bb2699f6780962972e8
drm/vc4: Check if plane requires background fill

Considering a single plane only, we have to enable background color
when the plane has an alpha format and could be blending from the
background or when it doesn't cover the entire screen.

Changes from v1:
 - Drop unrelated change
 - Move needs_bg_fill to plane state

Signed-off-by: Stefan Schake <stschake@gmail.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/1520556817-97297-3-git-send-email-stschake@gmail.com
drivers/gpu/drm/vc4/vc4_plane.c