]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/sun4i: backend: Refine the logic behind using the frontend
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Fri, 23 Nov 2018 09:24:38 +0000 (10:24 +0100)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Tue, 27 Nov 2018 08:34:06 +0000 (09:34 +0100)
commitaaf3880b0823113af9ed742a687e7fb1b411a201
tree340b330f7b0f38a24bc04174cea85f48ed0806af
parentee286db13395d6c228d3f9f96e7121739a6b229a
drm/sun4i: backend: Refine the logic behind using the frontend

Checking that scaling is in use is not sufficient as a condition to
decide to use the frontend.

Since not all layer formats are supported by the frontend, we need to
check for that support first. Then, the frontend must only be enabled
if the backend doesn't support the format or that scaling is required.

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181123092515.2511-7-paul.kocialkowski@bootlin.com
drivers/gpu/drm/sun4i/sun4i_backend.c