]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: backend: Avoid counting YUV planes that use the frontend
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Fri, 23 Nov 2018 09:24:46 +0000 (10:24 +0100)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Tue, 27 Nov 2018 08:51:54 +0000 (09:51 +0100)
commit4f3c80741fd1b941ae037c546ec4752b0f11a7c2
treea7f5d173ea821c37b71c74efd7fe7e07e4096862
parent7de497a968ef7f78e67452ff1c57038a34756194
drm/sun4i: backend: Avoid counting YUV planes that use the frontend

Our hardware has a limited number of YUV planes (usually 1) that can be
supported using the backend only. However, YUV planes can also be
supported by the frontend and must then not be counted when checking for
that limitation.

Only count the YUV plane when the frontend is not used.

Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181123092515.2511-15-paul.kocialkowski@bootlin.com
drivers/gpu/drm/sun4i/sun4i_backend.c