drm/sun4i: backend: Check that we only have a single YUV plane
authorMaxime Ripard <maxime.ripard@bootlin.com>
Thu, 1 Mar 2018 19:18:45 +0000 (20:18 +0100)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Mon, 19 Mar 2018 15:36:21 +0000 (16:36 +0100)
commit32463556a634f3e262581ed348705081706fccd0
tree27f11920ec1049974a6c63bd74a774d7062419cd
parent334789593c3fe1dd8f5c49c5a49b7e0e43dfdf1c
drm/sun4i: backend: Check that we only have a single YUV plane

Just like for the frontend, a single plane can use a YUV format. Make sure
we have that constraint covered in our atomic_check.

This is preliminary to the actual YUV support to make sure we don't end up
in an impossible to support situation.

Reviewed-by: Chen-Yu Tsai <wens@csie.org>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/2f8586493d9139b12efe7e94f65e9a149f818e0e.1519931807.git-series.maxime.ripard@bootlin.com
drivers/gpu/drm/sun4i/sun4i_backend.c
drivers/gpu/drm/sun4i/sun4i_backend.h