From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0DF0DEB64DA for ; Fri, 7 Jul 2023 10:37:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229997AbjGGKgz (ORCPT ); Fri, 7 Jul 2023 06:36:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47286 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbjGGKgy (ORCPT ); Fri, 7 Jul 2023 06:36:54 -0400 Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E43391725 for ; Fri, 7 Jul 2023 03:36:53 -0700 (PDT) Received: from pendragon.ideasonboard.com (85-76-32-136-nat.elisa-mobile.fi [85.76.32.136]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id AEBEF558; Fri, 7 Jul 2023 12:36:05 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1688726167; bh=qbmSaQUymFJ9LS/n80xV3TXnTAQeqGluWo1pJjavueE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=qjWxGwNH9zHsw3KNX95DnuiAjLU3zrph+McZOiQYxJzxQFphFty67LqrioFAX7cMX bT2PJkhdamUEkfscSBuv3CznZheFzwkLiTKAzSKVRx4ProH9uFLzNBEhXKrfZi+Dtx go2nY0Cw2wntWzR8h5cXSvrc5fiERlVdk0iCcBZA= Date: Fri, 7 Jul 2023 13:36:49 +0300 From: Laurent Pinchart To: Geert Uytterhoeven Cc: dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org Subject: Re: [PATCH libdrm 2/3] util: Add pattern support for DRM_FORMAT_NV{24,42} Message-ID: <20230707103649.GB15801@pendragon.ideasonboard.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org Hi Geert, Thank you for the patch. On Wed, Jul 05, 2023 at 05:26:16PM +0200, Geert Uytterhoeven wrote: > Add support for drawing the SMPTE and tiles patterns in buffers using > semi-planar YUV formats with non-subsampled chroma planes. > > Signed-off-by: Geert Uytterhoeven Reviewed-by: Laurent Pinchart > --- > tests/util/pattern.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/tests/util/pattern.c b/tests/util/pattern.c > index 158c0b160a2ee870..f45a26ccec38f202 100644 > --- a/tests/util/pattern.c > +++ b/tests/util/pattern.c > @@ -698,6 +698,8 @@ static void fill_smpte(const struct util_format_info *info, void *planes[3], > case DRM_FORMAT_NV21: > case DRM_FORMAT_NV16: > case DRM_FORMAT_NV61: > + case DRM_FORMAT_NV24: > + case DRM_FORMAT_NV42: > u = info->yuv.order & YUV_YCbCr ? planes[1] : planes[1] + 1; > v = info->yuv.order & YUV_YCrCb ? planes[1] : planes[1] + 1; > return fill_smpte_yuv_planar(&info->yuv, planes[0], u, v, > @@ -1023,6 +1025,8 @@ static void fill_tiles(const struct util_format_info *info, void *planes[3], > case DRM_FORMAT_NV21: > case DRM_FORMAT_NV16: > case DRM_FORMAT_NV61: > + case DRM_FORMAT_NV24: > + case DRM_FORMAT_NV42: > u = info->yuv.order & YUV_YCbCr ? planes[1] : planes[1] + 1; > v = info->yuv.order & YUV_YCrCb ? planes[1] : planes[1] + 1; > return fill_tiles_yuv_planar(info, planes[0], u, v, -- Regards, Laurent Pinchart