]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: Allow VI layers to be primary planes
authorSamuel Holland <samuel@sholland.org>
Sun, 24 Apr 2022 16:26:27 +0000 (11:26 -0500)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 26 Apr 2022 12:24:57 +0000 (14:24 +0200)
commitb5c983fcd6653ac71223e0a85e2cc68147413e17
tree342a5417b64fcff19a5c192ce97a3870d99b1281
parent8c392203471359e0ecf61134dd32fdaa56ba5411
drm/sun4i: Allow VI layers to be primary planes

D1's mixer 1 has no UI layers, only a single VI layer. That means the
mixer can only be used if the primary plane comes from this VI layer.
Add the code to handle this case.

Signed-off-by: Samuel Holland <samuel@sholland.org>
Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20220424162633.12369-10-samuel@sholland.org
drivers/gpu/drm/sun4i/sun8i_vi_layer.c