Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8451188imu; Tue, 4 Dec 2018 08:33:41 -0800 (PST) X-Google-Smtp-Source: AFSGD/UlyKGyJNqfaD5KgRB51oNakMSYKMF1AgMH5ZSTAOpDaVO8tDvd+oEwm9aMKIBxpR05mrtG X-Received: by 2002:a17:902:622:: with SMTP id 31mr20237425plg.171.1543941221455; Tue, 04 Dec 2018 08:33:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543941221; cv=none; d=google.com; s=arc-20160816; b=lUut8tYokjGDjEViW9Whk7AR/D7pIfI5NwV+SHDA5AvsRiX/dVRIFaYmi7On3Jprxt zj5Rm8UY049tsoAHsRcONOtx3GORZ2Ktz3m9DkxZWcxYPyQO8oMjb/MpY0Oao3yZDMIn aUD76eo1jGcspO8rcqbCldq1djb+0FbKERQtqXVRUQjOBd86lXGwxXCB0E2WgpoaJkWX rR/Ivp1m7F4x3HhWSWjbaE/X8mMBP1ktOqFNa14lfVG3qnbCsOviT5/hDeO7LI6S8wZ4 sEU1zPk+IU10IL1JDbYKLdmqBpicEmyQvxHj2Q5qXj1+61wsurXSul6bL5E8odU9asrz UJLQ== 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; bh=s2RApwEVpCrW6ptXBB54rPMuaCvXjhix7Y9dHgn+0yY=; b=URvofRSA9qzJegVMfxBO2jahbVsU72GwdURQ1l4lh8OAas2kMxmhB47xdz1US/CA5g ZFst3qj0Eyg/TAIMzPV0jZyRp/IBZOeQqAV1mBglEl48c9+0RC0b2AASbnIo25VYgQlC PIB+UYUauS1u2zkBR+Bac/FhzOJ1VVFnap/JAi+YD6GlXIfFvzcuewJuHvyF0ODDsaRb wo2lOcHirSWtt1nucCGRe+B00e/C09Ff5qr2NvUu4xPmr5HVHB4CuSTJsQJGDcOik1s9 C7JqMa12xRspdLFO2KG4tL8F22OBqzfL5nKaI5q6h0V2KKpUaJ/QubsBnPVEy9411l8h idcg== 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 93si17467468plc.2.2018.12.04.08.33.17; Tue, 04 Dec 2018 08:33:41 -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 S1727226AbeLDQbh (ORCPT + 99 others); Tue, 4 Dec 2018 11:31:37 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:36498 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726226AbeLDQbh (ORCPT ); Tue, 4 Dec 2018 11:31:37 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 99EE1A78; Tue, 4 Dec 2018 08:31:36 -0800 (PST) Received: from e110455-lin.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 45E293F614; Tue, 4 Dec 2018 08:31:36 -0800 (PST) Received: by e110455-lin.cambridge.arm.com (Postfix, from userid 1000) id 9A04E6800CE; Tue, 4 Dec 2018 16:31:34 +0000 (GMT) Date: Tue, 4 Dec 2018 16:31:34 +0000 From: Liviu Dudau To: Ayan Halder Cc: Brian Starkey , "malidp@foss.arm.com" , "airlied@linux.ie" , "dri-devel@lists.freedesktop.org" , "linux-kernel@vger.kernel.org" , "maxime.ripard@bootlin.com" , "sean@poorly.run" , "maarten.lankhorst@linux.intel.com" , "corbet@lwn.net" , "mchehab+samsung@kernel.org" , "gregkh@linuxfoundation.org" , "davem@davemloft.net" , "akpm@linux-foundation.org" , "nicolas.ferre@microchip.com" , "arnd@arndb.de" , "linux-doc@vger.kernel.org" , nd Subject: Re: [RFC AFBC 02/12] drm: Added a new format DRM_FORMAT_XVYU2101010 Message-ID: <20181204163134.GK988@e110455-lin.cambridge.arm.com> References: <1543836703-8491-1-git-send-email-ayan.halder@arm.com> <1543836703-8491-3-git-send-email-ayan.halder@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1543836703-8491-3-git-send-email-ayan.halder@arm.com> User-Agent: Mutt/1.11.1 (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Dec 03, 2018 at 11:31:56AM +0000, Ayan Halder wrote: > We have added a new format ie DRM_FORMAT_XVYU2101010 which is supported > by mali display driver. > > Signed-off-by: Ayan Kumar halder Reviewed-by: Liviu Dudau Best regards, Liviu > --- > drivers/gpu/drm/drm_fourcc.c | 1 + > include/uapi/drm/drm_fourcc.h | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/drivers/gpu/drm/drm_fourcc.c b/drivers/gpu/drm/drm_fourcc.c > index 6b7a62e..d31e1ae 100644 > --- a/drivers/gpu/drm/drm_fourcc.c > +++ b/drivers/gpu/drm/drm_fourcc.c > @@ -229,6 +229,7 @@ const struct drm_format_info *__drm_format_info(u32 format) > { .format = DRM_FORMAT_VUY888, .depth = 0, .num_planes = 1, .cpp = { 3, 0, 0 }, .hsub = 1, .vsub = 1, .is_yuv = true }, > { .format = DRM_FORMAT_Y410, .depth = 0, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true, .is_yuv = true }, > { .format = DRM_FORMAT_AYUV, .depth = 0, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1, .has_alpha = true, .is_yuv = true }, > + { .format = DRM_FORMAT_XVYU2101010, .depth = 0, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1, .is_yuv = true }, > { .format = DRM_FORMAT_P010, .depth = 0, .num_planes = 2, .cpp = { 2, 4, 0 }, .hsub = 2, .vsub = 2, .is_yuv = true }, > { .format = DRM_FORMAT_P012, .depth = 0, .num_planes = 2, .cpp = { 2, 4, 0 }, .hsub = 2, .vsub = 2, .is_yuv = true }, > { .format = DRM_FORMAT_P016, .depth = 0, .num_planes = 2, .cpp = { 2, 4, 0 }, .hsub = 2, .vsub = 2, .is_yuv = true }, > diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h > index 71b2bc7..75c4b5a 100644 > --- a/include/uapi/drm/drm_fourcc.h > +++ b/include/uapi/drm/drm_fourcc.h > @@ -153,6 +153,7 @@ extern "C" { > > #define DRM_FORMAT_AYUV fourcc_code('A', 'Y', 'U', 'V') /* [31:0] A:Y:Cb:Cr 8:8:8:8 little endian */ > #define DRM_FORMAT_XYUV8888 fourcc_code('X', 'Y', 'U', 'V') /* [31:0] X:Y:Cb:Cr 8:8:8:8 little endian */ > +#define DRM_FORMAT_XVYU2101010 fourcc_code('X', 'V', '3', '0') /* [31:0] X:Cr:Y:Cb 2:10:10:10 little endian */ > #define DRM_FORMAT_VUY888 fourcc_code('V', 'U', '2', '4') /* [23:0] Cr:Cb:Y 8:8:8 little endian */ > #define DRM_FORMAT_Y410 fourcc_code('Y', '4', '1', '0') /* [31:0] A:Cr:Y:Cb 2:10:10:10 little endian */ > #define DRM_FORMAT_VUY101010 fourcc_code('V', 'U', '3', '0') /* Y followed by U then V, 10:10:10. Non-linear modifier only */ > -- > 2.7.4 > -- ==================== | I would like to | | fix the world, | | but they're not | | giving me the | \ source code! / --------------- ¯\_(ツ)_/¯