From: Maxime Ripard Subject: Re: [PATCH v4 05/22] drm/sun4i: frontend: Determine input format based on colorspace Date: Wed, 5 Dec 2018 16:39:05 +0100 Message-ID: <20181205153905.gtsgto45omkocxrz@flea> References: <20181205083703.21488-1-paul.kocialkowski@bootlin.com> <20181205083703.21488-6-paul.kocialkowski@bootlin.com> Reply-To: maxime.ripard-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="nuvzpqcwpzwepf3q" Return-path: Sender: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Content-Disposition: inline In-Reply-To: <20181205083703.21488-6-paul.kocialkowski-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org> List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , To: Paul Kocialkowski Cc: dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, David Airlie , Chen-Yu Tsai , Maarten Lankhorst , Sean Paul , Thomas Petazzoni , linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org, Daniel Vetter List-Id: dri-devel@lists.freedesktop.org --nuvzpqcwpzwepf3q Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline On Wed, Dec 05, 2018 at 09:36:46AM +0100, Paul Kocialkowski wrote: > Since all the RGB input formats have the same value for the DATA_FMT > field of the INPUT_FMT register, we can group them when the format is > known to be RGB. Here, we assume that a non-YUV format is RGB, because > the hardware does not support any other colorspace than RGB and YUV. > > Use the DRM format info structure to check whether the format uses a > YUV colorspace. > > Signed-off-by: Paul Kocialkowski Acked-by: Maxime Ripard Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --nuvzpqcwpzwepf3q--