Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp443940imu; Tue, 27 Nov 2018 00:50:42 -0800 (PST) X-Google-Smtp-Source: AFSGD/UoDTd2pK9JLtLzQrOfTO6HPhF/G+lbk/zu7JD9x6b21A083+/76IupeAbUZImk++ow+fZM X-Received: by 2002:a17:902:ac8f:: with SMTP id h15mr30481523plr.245.1543308642412; Tue, 27 Nov 2018 00:50:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543308642; cv=none; d=google.com; s=arc-20160816; b=uORN9gnHoBnaL8X3NhzKbmpZdAwkYhiO2mrX0S/3FGW/Oll9zIUTuD3B/PssRPYuh8 laQI1Lch/6cZw/PPajNLS7u96n3AylT96xqTo6czz7jdXy6frFFKqGwhN0/sC3C3tNgv p9mLig6NiG9zNwhnfr5CmJHuPGjZ7UzmUgWllRi4d6SKs58hipWm2/EX2m6EXsK75kbe ya3y6Rk/NCmx0PziCmw+FxlNhkwjt5K8EZecsAmLLUeZ/Dz31XfXn3s3PFYzqnHb7QeM 6biOEgdttTMHulhM1+t1qRKETcJbOMpl45ZhHzeGbBNgbFtIY+BKxvGaOqwNB78DdqwL BHEw== 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; bh=hFPqIHUhicm4/dYkOteKbEi5Z5RCM4vOBkwKzSJWHpA=; b=VIgWqkemBeS6yetWoQLakHzLbz5soWJ6sHFiQ7L0zFqcWAgtgduSmZbrlkW6YJPD8T jFZetoLD9OWsNlVub82MYmNXsSkNVPTGWPOXsL4PmlDf3zXGnaa72ot50M83QRRhrsa9 vzgl6TdM8oAS1mdAPc79wJUB8utWhDc/I9xB7t03LXbBhhdY5zO3yBVY9Gh72LxcA2rV SnUOIcgesf+6XT8Bm5atT+O3fO7hKHeIiVZuU1lRN57UtR3aMZDmAZR9EH8o734EBmbB BJJdMWi4p+cFw8piOHd1+zQ02mzggh3AkMhgleogNp8SUoahNk0CjUo7eqoC0y7h1oq4 oXEw== 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 1-v6si3241441plx.278.2018.11.27.00.50.26; Tue, 27 Nov 2018 00:50:42 -0800 (PST) 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 S1729740AbeK0Tqu (ORCPT + 99 others); Tue, 27 Nov 2018 14:46:50 -0500 Received: from mail.bootlin.com ([62.4.15.54]:56532 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729387AbeK0Tqu (ORCPT ); Tue, 27 Nov 2018 14:46:50 -0500 Received: by mail.bootlin.com (Postfix, from userid 110) id D026620DBF; Tue, 27 Nov 2018 09:49:38 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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.2 Received: from localhost (aaubervilliers-681-1-94-205.w90-88.abo.wanadoo.fr [90.88.35.205]) by mail.bootlin.com (Postfix) with ESMTPSA id A41D320736; Tue, 27 Nov 2018 09:49:28 +0100 (CET) Date: Tue, 27 Nov 2018 09:49:28 +0100 From: Maxime Ripard To: Paul Kocialkowski Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, Maarten Lankhorst , Sean Paul , David Airlie , Chen-Yu Tsai , Thomas Petazzoni , linux-sunxi@googlegroups.com, Daniel Vetter Subject: Re: [PATCH v2 09/43] drm/fourcc: Add format info helpers for checking YUV planes disposition Message-ID: <20181127084928.qydnqypu3ppk3ksr@flea> References: <20181123092515.2511-1-paul.kocialkowski@bootlin.com> <20181123092515.2511-10-paul.kocialkowski@bootlin.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="xeeahxfo5c54okff" Content-Disposition: inline In-Reply-To: <20181123092515.2511-10-paul.kocialkowski@bootlin.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --xeeahxfo5c54okff Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Nov 23, 2018 at 10:24:41AM +0100, Paul Kocialkowski wrote: > It is often useful to check whether the DRM format info retrieved from > the DRM framebuffer matches a specific YUV planes disposition. >=20 > This introduces helpers to quickly check that a provided format info > matches a YUV format with a specific disposition, in commonly-used > terminology. >=20 > The intent of providing helpers taking the format info instead of the > fourcc alone is to avoid the overhead of iterating through all formats > when the whole format info structure is available. As a result, these > helpers are very simple so they are made inline. >=20 > Signed-off-by: Paul Kocialkowski Reviewed-by: Maxime Ripard Maxime --=20 Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --xeeahxfo5c54okff Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCW/0FGAAKCRDj7w1vZxhR xYnvAP9zRFxMniU4Q9xU3X53asu+D0wWlTP6kYXZClcpvI5dCAEAinMoJw91nN5Z CgEn31rhWudUuPz1HX3ohlbYdOuWsQ8= =Nr5j -----END PGP SIGNATURE----- --xeeahxfo5c54okff--