drm/cirrus: Store HW format/pitch in primary-plane state
authorThomas Zimmermann <tzimmermann@suse.de>
Wed, 15 Feb 2023 16:15:16 +0000 (17:15 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Mon, 13 Mar 2023 09:37:05 +0000 (10:37 +0100)
commitde7d09ffd5e74e3e1257944b3dd03357390b745a
tree1f8ce921931628406806156548845d27464abd7d
parent74b9a444baca40998d4b3c193b0a98b495fdb7de
drm/cirrus: Store HW format/pitch in primary-plane state

The hardware settings for color format and pitch are state of the
primary plane. Store the values in the primary plane's state structure
struct cirrus_primary_plane_state. Adapt all callers.

All fields in struct cirrus_device are now considered immutable after
initialization. Plane updates consider the difference between the old
and the new plane state before updating format or pitch.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230215161517.5113-17-tzimmermann@suse.de
drivers/gpu/drm/tiny/cirrus.c