From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Ripard Subject: Re: [PATCH v2 02/43] drm/sun4i: frontend: Replace ARGB with XRGB as supported format Date: Tue, 27 Nov 2018 09:31:23 +0100 Message-ID: <20181127083123.ok6eftf2nd4arqe5@flea> References: <20181123092515.2511-1-paul.kocialkowski@bootlin.com> <20181123092515.2511-3-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="b3xfdm4n7fbyncrm" Return-path: Sender: linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Content-Disposition: inline In-Reply-To: <20181123092515.2511-3-paul.kocialkowski-LDxbnhwyfcJBDgjK7y7TUQ@public.gmane.org> List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , To: Paul Kocialkowski Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, dri-devel-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Maarten Lankhorst , Sean Paul , David Airlie , Chen-Yu Tsai , Thomas Petazzoni , linux-sunxi-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org, Daniel Vetter List-Id: dri-devel@lists.freedesktop.org --b3xfdm4n7fbyncrm Content-Type: text/plain; charset="UTF-8" Content-Disposition: inline On Fri, Nov 23, 2018 at 10:24:34AM +0100, Paul Kocialkowski wrote: > The frontend documentation (for the A33) mentions that ARGB is supported > as output, but with the alpha component always set to 0xff. In practice, > this means that the alpha component cannot be preserved when going > through the frontend. Since the information is lost, ARGB is not > properly supported. > > As a result, expose the matching format supported by the frontend (both > for input and output) as XRGB instead of ARGB. > > Since ARGB was the selected format for connecting the frontend to the > backend, change it to XRGB to reflect this as well. > > The A31 and A80 SoCs apparently have a bit to enable proper alpha, > but this is not supported at this point (see the comment already in the > code). > > Signed-off-by: Paul Kocialkowski Applied, thanks! Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --b3xfdm4n7fbyncrm--