Received: by 10.213.65.68 with SMTP id h4csp733648imn; Tue, 27 Mar 2018 07:50:41 -0700 (PDT) X-Google-Smtp-Source: AG47ELsfGl4XnWxjxD1C2RGIJ0EcSKSr8Fc5JLfDKoelicU+KDp0Ck5cG9frkttQDyKD15XE7loM X-Received: by 10.98.10.156 with SMTP id 28mr29046770pfk.33.1522162240984; Tue, 27 Mar 2018 07:50:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522162240; cv=none; d=google.com; s=arc-20160816; b=IqDGayuT4n68uJvH2r5neMaSTCYWSFdUDhWsXRUlW/nAcUzU1LTDyWZIYVz20H/2yl /K9sBhiXrRU0z4iCiApLeEs2eTKC5+vm1iPdpRPEaTVp9U9LAui/BzC3hukxSRPoTz9a 6H6nrkFSB34URVRqXbkQ6k0KzoId50PiG37yuTSwGFzqyxQvm8UShw/0SVJUwzY6SjUT 8dex/cno28gHzzKlyYBS3UN3ws8W6ro+l+BHEwQuTyA3wmQOOFHd0XfqmNjb/taUYcNi YXR/ZcTek5ZAu8I3LndTLvF5ZSbBpLfe3AZbBGlXn9RJYBOcU6m2CJU1EbJJXZzHG7k0 vMag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=c8b4oA7ubQBh4ZNoO1ZEp1HzxVXN5WORdqN6iHnhhG8=; b=TH5Cf48r2T2oJKSUX8f5em8bvW350P8+4VXV5630M+l4q7LCaVrSXMpoqi9s6ijeXw lYpsX8ieC1q7ySl53qNjVNGGEg8hMURTWv8HLa2ruQPr7mSm3+0eHSuFME9uUfxQa/Ey ZH+rWnkP0/+aDvasUZrFn4OaLKKCpc4eXV1dCuJGfzCUmR5Cb8F/l64qvhfAQ3/L4u3u Rd1/tkh1ExqUIsjb9a7tXfaHI/kQO3n5SxJJuwMDPUq78+jweattm2GoZtEQsntafA/j 6Sk3MVYFQyGerwmQ+IIy1c7VfkAILERfYFWKjGgY/iCSb7zQM/0p1U1lRoRip7AP9mhS MDsw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j1-v6si331333pld.108.2018.03.27.07.50.25; Tue, 27 Mar 2018 07:50:40 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752492AbeC0OsD (ORCPT + 99 others); Tue, 27 Mar 2018 10:48:03 -0400 Received: from mail.bootlin.com ([62.4.15.54]:54773 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752139AbeC0OsA (ORCPT ); Tue, 27 Mar 2018 10:48:00 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id 2CA0F20875; Tue, 27 Mar 2018 16:47:58 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id B7EC320722; Tue, 27 Mar 2018 16:47:47 +0200 (CEST) Date: Tue, 27 Mar 2018 16:47:48 +0200 From: Maxime Ripard To: Paul Kocialkowski Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, David Airlie , Chen-Yu Tsai , Daniel Vetter , Gustavo Padovan , Sean Paul Subject: Re: [PATCH 06/10] drm/sun4i: Move and extend format-related helpers and tables Message-ID: <20180327144748.xxpn4s3wjpt6hw4j@flea> References: <20180321152904.22411-1-paul.kocialkowski@bootlin.com> <20180321152904.22411-7-paul.kocialkowski@bootlin.com> <20180323101338.z422gpxcsdre5hgj@flea> <1522139264.1110.28.camel@bootlin.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="oe6kmzoyszps5zbf" Content-Disposition: inline In-Reply-To: <1522139264.1110.28.camel@bootlin.com> User-Agent: NeoMutt/20180223 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --oe6kmzoyszps5zbf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 27, 2018 at 10:27:44AM +0200, Paul Kocialkowski wrote: > > > +bool sun4i_format_is_rgb(uint32_t format); > > > +bool sun4i_format_is_yuv(uint32_t format); > > > +bool sun4i_format_is_yuv411(uint32_t format); > > > +bool sun4i_format_is_yuv420(uint32_t format); > > > +bool sun4i_format_is_yuv422(uint32_t format); > > > +bool sun4i_format_is_yuv444(uint32_t format); > > > +bool sun4i_format_is_packed(uint32_t format); > > > +bool sun4i_format_is_semiplanar(uint32_t format); > > > +bool sun4i_format_is_planar(uint32_t format); > > > +bool sun4i_format_supports_tiling(uint32_t format); > >=20 > > If we're going to add so many of them, then we should really consider > > to move them to drm_fourcc.c instead. Every one has some variation of > > some of these functions, we don't really need to duplicate it all the > > time. >=20 > Should I try to get that through in this patchset and have sun4i-drm > be their first user? Also, does introducing such a change require > identifying duplicates of these functions in each DRM driver's > codebase? I guess converting at least one of them would prove how usable it would be to other drivers, but I won't ask you to convert all of them as part of this serie :) Maxime --=20 Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com --oe6kmzoyszps5zbf Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAlq6WZMACgkQ0rTAlCFN r3SJag/+MLNrEjxxBjwh1egDIT/GHqYwkNvnpjxeAb+ysZq8YgclnFb9X1XvWUD7 Zs+51/3hge7t4fj65qfl9bTQjxuJ5cwSFI9UjRhj49tZQLhN08DDhC09tKSRyUBX LNJoMo24gAB9rxNfxUJKtVqiXYRCGNXPSIGhpXcduumiemlLtC9xQf0IT0hv7rp4 TYpgnXa5Fw4Y7HpM3oZj0LEE/rk26loqVIoKxWcCHDyCkGU6ZKD5LuFYTHgl4H5T keEn+qoqAZ/E74YX9X0FWrLQAI87UXeBqOCfe1X0V10+bbwXaR6UjTiMNxkPrxyJ myqxaiEaGVzaHpDz/gt0Pu3iria7XgUJKW7f7QDBwQ2xBsXc2nU7c7/ir50e7TlI zsRe6B6SXz2NXl59mbbwIBNzMpVi+3aboZ/CHwcZbSWbSoetuCZlYHaxK1Qaynls gmdiP78d2dseUzLPxJ9cez+MB0m/3KnVgdFC34N7ZOfdFgH86Vrxrv/61ynfK96+ sF7Ri5WcDy7sHlmMU3vafdFFmsDaNuotf46UpK6K2vl5LeI4xD3dN/M6T8ZbXs25 Ow+0n/mpH4ikPBSBAwltxQHH/ZKCv/DiBhqxzb21p1P0sv0lWS2wIv6BtDmLW3NL I4DnXHSauEh1M+Ig7gKlzN+IPnXG1jhM5/YtjsupU3NVYvxeBFw= =GhyQ -----END PGP SIGNATURE----- --oe6kmzoyszps5zbf--