OSDN Git Service

drm/sun4i: backend: Check for the number of alpha planes
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 26 Jun 2017 20:51:15 +0000 (22:51 +0200)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 29 Jan 2018 13:02:42 +0000 (14:02 +0100)
commit65f7fa3a3fcbdb67940a58ce24516d62aaec12b7
tree8f3cf4a62a4c44b8731b13e5a045fb0f043f3ffe
parent47a05f4a68f91c09d89d2a0231b7b8c7ebb808ca
drm/sun4i: backend: Check for the number of alpha planes

Due to the way the composition is done in hardware, we can only have a
single alpha-enabled plane active at a time, placed in the second (highest
priority) pipe.

Make sure of that in our atomic_check to not end up in an impossible
scenario.

Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Link: https://patchwork.freedesktop.org/patch/msgid/7371f62a1385f2cbe3ed75dfca2e746338eb2286.1516617243.git-series.maxime.ripard@free-electrons.com
drivers/gpu/drm/sun4i/sun4i_backend.c
drivers/gpu/drm/sun4i/sun4i_backend.h
drivers/gpu/drm/sun4i/sun4i_layer.c