]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5ebaf527178365aa3dbcf0e3930991ded8960bcb
tree78bf7cfda5126495a7971af2e1b8fc1d12052321
parent318855d82adc173f11812eccaa3ef0e8b9fae9ad
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