]> git.itanic.dy.fi Git - linux-stable/commitdiff
drm: renesas: shmobile: Add missing YCbCr formats
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 15 Sep 2023 08:53:25 +0000 (10:53 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 16 Oct 2023 09:47:44 +0000 (11:47 +0200)
The primary plane supports various YCbCr formats, and the CRTC code
already knows how to handle them.  Enable support for the missing
formats by adding them to the table of supported modes.

Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/e5a5d5ab2083280be5fcdc428e8b8ca198b4448d.1694767209.git.geert+renesas@glider.be
drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c

index 2d9ae0c6ab7b18a8fbedb1dbb3b7c9ce4ec61630..a0e1a49c84d5691a8622b52d1f91991a23bc7985 100644 (file)
@@ -460,6 +460,12 @@ static const uint32_t modeset_formats[] = {
        DRM_FORMAT_RGB888,
        DRM_FORMAT_ARGB8888,
        DRM_FORMAT_XRGB8888,
+       DRM_FORMAT_NV12,
+       DRM_FORMAT_NV21,
+       DRM_FORMAT_NV16,
+       DRM_FORMAT_NV61,
+       DRM_FORMAT_NV24,
+       DRM_FORMAT_NV42,
 };
 
 static const struct drm_plane_funcs primary_plane_funcs = {