Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp400828imm; Mon, 21 May 2018 07:51:24 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqciUYT82NrdnjhRCxIMYsboQgOIP/m3fXMt2+6wr7Ugcz3p8IupwRWGRlxWqGc0YNMjMGd X-Received: by 2002:a62:d717:: with SMTP id b23-v6mr20106219pfh.5.1526914284552; Mon, 21 May 2018 07:51:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526914284; cv=none; d=google.com; s=arc-20160816; b=ceutI0/SzHumzLaX7ya2fP4UsVcqE1AY7fj8YdZKq/1Kjnsj7fFeFeN2H0lt/np4iL d9Ojt2WxG35ilP0OGLGzjOBolWZnFwxo+NpgSXetQMuqshnp390Ul9WlR7OA9UOrNeQX +s+KpPpJAQBeb/rJ3djo3e9977/MiXNFXMN//7tGiD8maUI5JrRJy+i/Kztl3PW7QDme kxc+Z59h/b3crejPT2t0DO/No5pcmym3zag/CtWX+CbrgiXQUwvQV3Gofut3pmzw3g1O TyrQjE1oiUxWLO1cLIcDgGKHvEWsJxQ1LsOGkJUAp1wwE1MZtSOqiorTES6G1KbP9VgS HvBw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=ptaI0TCWn1ePdA4WhXJ5UVAFHRArSRNEPvfHgu6Kmxw=; b=KHJalZRbvqI6MYXdsxqqAF/RrJUPE9UGJG9I0Db3CDFOHbRm9vlagR3rauIRIgWaIr AHbmiR+buHjUpNNrjUBdSqxge0p1mK+MhYURQx1VoIP2vfykGHjmP0itTYtbGh5t3xCo 5xsfbXfkbMDvpWEy88PGPkYygz11IjiWjYOWWo81M/JGfFJ1bYYQxXEGuqQBinRtHnkl I00USUCF6W4h+AD2ai6qyB2JAI9cMvcCl3OncLBql7su5F3EqgzuKB+cvF2JTS16Ki3u oKHXqUUt7krVuNZdmG8LzhorDOtaUUpR8GOa0/XnNXMZD3xWwhYZGij1iieVN5gsbHJW BPvA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a7-v6si11459096pgd.338.2018.05.21.07.51.08; Mon, 21 May 2018 07:51:24 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752743AbeEUOt5 (ORCPT + 99 others); Mon, 21 May 2018 10:49:57 -0400 Received: from mga06.intel.com ([134.134.136.31]:43914 "EHLO mga06.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751133AbeEUOtw (ORCPT ); Mon, 21 May 2018 10:49:52 -0400 X-Amp-Result: UNSCANNABLE X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 May 2018 07:49:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,426,1520924400"; d="scan'208";a="48503615" Received: from stinkbox.fi.intel.com (HELO stinkbox) ([10.237.72.174]) by fmsmga002.fm.intel.com with SMTP; 21 May 2018 07:49:48 -0700 Received: by stinkbox (sSMTP sendmail emulation); Mon, 21 May 2018 17:49:48 +0300 Date: Mon, 21 May 2018 17:49:48 +0300 From: Ville =?iso-8859-1?Q?Syrj=E4l=E4?= To: Randy Li Cc: dri-devel@lists.freedesktop.org, airlied@linux.ie, linux-kernel@vger.kernel.org, linux-rockchip@lists.infradead.org, nicolas.dufresne@collabora.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 1/2] drm/fourcc: add a 10bits fully packed variant of NV12 Message-ID: <20180521144948.GF23723@intel.com> References: <20180520171705.29690-1-ayaka@soulik.info> <20180520171705.29690-2-ayaka@soulik.info> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180520171705.29690-2-ayaka@soulik.info> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 21, 2018 at 01:17:04AM +0800, Randy Li wrote: > This pixel format is a fully packed and 10bits variant of NV12. > A luma pixel would take 10bits in memory, without any > filled bits between pixels in a stride. The color gamut > follows the BT.2020 standard. > > Signed-off-by: Randy Li > --- > drivers/gpu/drm/drm_fourcc.c | 1 + > include/uapi/drm/drm_fourcc.h | 3 +++ > 2 files changed, 4 insertions(+) > > diff --git a/drivers/gpu/drm/drm_fourcc.c b/drivers/gpu/drm/drm_fourcc.c > index 5ca6395cd4d3..1f43967c4013 100644 > --- a/drivers/gpu/drm/drm_fourcc.c > +++ b/drivers/gpu/drm/drm_fourcc.c > @@ -173,6 +173,7 @@ const struct drm_format_info *__drm_format_info(u32 format) > { .format = DRM_FORMAT_UYVY, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 2, .vsub = 1 }, > { .format = DRM_FORMAT_VYUY, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .hsub = 2, .vsub = 1 }, > { .format = DRM_FORMAT_AYUV, .depth = 0, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true }, > + { .format = DRM_FORMAT_NV12_10LE40, .depth = 0, .num_planes = 2, .cpp = { 1, 2, 0 }, .hsub = 2, .vsub = 2 }, > }; > > unsigned int i; > diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h > index e04613d30a13..8eabf01e966f 100644 > --- a/include/uapi/drm/drm_fourcc.h > +++ b/include/uapi/drm/drm_fourcc.h > @@ -140,6 +140,9 @@ extern "C" { > #define DRM_FORMAT_NV61 fourcc_code('N', 'V', '6', '1') /* 2x1 subsampled Cb:Cr plane */ > #define DRM_FORMAT_NV24 fourcc_code('N', 'V', '2', '4') /* non-subsampled Cr:Cb plane */ > #define DRM_FORMAT_NV42 fourcc_code('N', 'V', '4', '2') /* non-subsampled Cb:Cr plane */ > +/* A fully packed variant of NV12_10LE32 */ What does "fully packed" mean? NV12_10LE32 doesn't even exist so referring to it makes no sense. Please try to provide an unambiguous description of new formats like we have for everything else. > +#define DRM_FORMAT_NV12_10LE40 fourcc_code('R', 'K', '2', '0') /* 2x2 subsampled Cr:Cb plane */ > + > > /* > * 3 plane YCbCr > -- > 2.14.3 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel -- Ville Syrj?l? Intel