Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 55BDAEB64DD for ; Fri, 23 Jun 2023 15:13:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6FB9488CBF; Fri, 23 Jun 2023 15:13:41 +0000 (UTC) Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by gabe.freedesktop.org (Postfix) with ESMTPS id 33B3588CBF for ; Fri, 23 Jun 2023 15:13:40 +0000 (UTC) Received: from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi [213.243.189.158]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 3CAF6D5F; Fri, 23 Jun 2023 17:13:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1687533182; bh=keBSEwXRTk5UtRZ/0fenvLdSAenapjGMYjUaABKjGzI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JAvQCvHfEA6T6ZXTTjkgoU3PNPvxOGlACUqaoFD73T6XZIiz+YddRdCuw9Aw+2dhH l6Gu5LoOhUv1CCZAe3MiFcdHpxGHMXFM+qfWP3XEKiPtfWBPlV3OOqHL4FPTSrYnt8 pBM29IBo1roToEb7JYDk5jRAdGreYEBDQmQLahZA= Date: Fri, 23 Jun 2023 18:13:37 +0300 From: Laurent Pinchart To: Geert Uytterhoeven Subject: Re: [PATCH 09/39] drm: renesas: shmobile: Add missing YCbCr formats Message-ID: <20230623151337.GN2112@pendragon.ideasonboard.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Magnus Damm , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, Kieran Bingham , Thomas Zimmermann Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Thu, Jun 22, 2023 at 11:21:21AM +0200, Geert Uytterhoeven wrote: > 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. > > Signed-off-by: Geert Uytterhoeven Reviewed-by: Laurent Pinchart > --- > drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c b/drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c > index 84dbf35025d7be63..cd492806105e5b5d 100644 > --- a/drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c > +++ b/drivers/gpu/drm/renesas/shmobile/shmob_drm_crtc.c > @@ -493,6 +493,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 = { -- Regards, Laurent Pinchart