OSDN Git Service

drm/ingenic: Move IPU scale settings to private state
authorPaul Cercueil <paul@crapouillou.net>
Tue, 26 Oct 2021 18:12:37 +0000 (19:12 +0100)
committerPaul Cercueil <paul@crapouillou.net>
Fri, 29 Oct 2021 20:29:53 +0000 (21:29 +0100)
commit9361329d57129ab2e7a47e11962088dd540be47d
tree78bf7cfda5126495a7971af2e1b8fc1d12052321
parent8040ca086eb2f4709a75bb3ad469d7697f2d2450
drm/ingenic: Move IPU scale settings to private state

The IPU scaling information is computed in the plane's ".atomic_check"
callback, and used in the ".atomic_update" callback. As such, it is
state-specific, and should be moved to a private state structure.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20211026181240.213806-4-paul@crapouillou.net
Tested-by: Nikolaus Schaller <hns@goldelico.com>
Reviewed-by: Christophe Branchereau <cbranchereau@gmail.com>
drivers/gpu/drm/ingenic/ingenic-ipu.c