From patchwork Sat Feb 10 01:35:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hyun Kwon X-Patchwork-Id: 10210143 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A319D6032D for ; Sat, 10 Feb 2018 01:36:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 97008294F9 for ; Sat, 10 Feb 2018 01:36:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8B34929520; Sat, 10 Feb 2018 01:36:23 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2CE282950F for ; Sat, 10 Feb 2018 01:36:23 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 324786E217; Sat, 10 Feb 2018 01:36:13 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0066.outbound.protection.outlook.com [104.47.36.66]) by gabe.freedesktop.org (Postfix) with ESMTPS id 5529D6E080 for ; Sat, 10 Feb 2018 01:36:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=WgsW3hX822bn1OAdrUEU17HsX/qBRS6WjFRUtjLw6Lg=; b=CZMGypmtNBhjIjwkAfkxlaAN+k+AeB9vYmYAwQdST28czkhbq7fc9RGLI2KbIQMeFi79fNg/7+Yqy6V3Ff7Am6g4IVOITy2g16/X/9XqoA0uxg1nkWF0nENb0lGHitZ8LQrG9NyhvqQq3sd24u0nKdIa8g5jO2BTxdwDu807URE= Received: from BN6PR02CA0041.namprd02.prod.outlook.com (2603:10b6:404:5f::27) by DM2PR0201MB0784.namprd02.prod.outlook.com (2a01:111:e400:3c09::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.485.10; Sat, 10 Feb 2018 01:36:06 +0000 Received: from BL2NAM02FT033.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::206) by BN6PR02CA0041.outlook.office365.com (2603:10b6:404:5f::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.485.10 via Frontend Transport; Sat, 10 Feb 2018 01:36:06 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.83) smtp.mailfrom=xilinx.com; lists.freedesktop.org; dkim=none (message not signed) header.d=none; lists.freedesktop.org; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.83 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.83; helo=xsj-pvapsmtpgw01; Received: from xsj-pvapsmtpgw01 (149.199.60.83) by BL2NAM02FT033.mail.protection.outlook.com (10.152.77.163) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.444.13 via Frontend Transport; Sat, 10 Feb 2018 01:36:06 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66] helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw01 with esmtp (Exim 4.63) (envelope-from ) id 1ekK5F-00029s-GG; Fri, 09 Feb 2018 17:36:05 -0800 Received: from [127.0.0.1] (helo=xsj-smtp-dlp1.xlnx.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1ekK5F-00063w-Am; Fri, 09 Feb 2018 17:36:05 -0800 Received: from xsj-pvapsmtp01 (xsj-pvapsmtp01.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id w1A1a48W029309; Fri, 9 Feb 2018 17:36:04 -0800 Received: from [172.19.2.244] (helo=xsjhyunkubuntu) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1ekK5E-00063a-6F; Fri, 09 Feb 2018 17:36:04 -0800 Received: by xsjhyunkubuntu (Postfix, from userid 13638) id 2E0CB2C695E; Fri, 9 Feb 2018 17:36:04 -0800 (PST) From: Hyun Kwon To: Subject: [PATCH RFC v3 6/6] drm: fourcc: Add new formats needed by Xilinx IP Date: Fri, 9 Feb 2018 17:35:56 -0800 Message-ID: <1518226556-7181-7-git-send-email-hyun.kwon@xilinx.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1518226556-7181-1-git-send-email-hyun.kwon@xilinx.com> References: <1518226556-7181-1-git-send-email-hyun.kwon@xilinx.com> X-RCIS-Action: ALLOW X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.83; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(346002)(376002)(396003)(39380400002)(39860400002)(2980300002)(438002)(189003)(199004)(336011)(2906002)(305945005)(59450400001)(6666003)(47776003)(26005)(36756003)(356003)(478600001)(2950100002)(76176011)(6916009)(186003)(90966002)(54906003)(51416003)(63266004)(106002)(52956003)(316002)(107886003)(42186006)(16586007)(2351001)(81156014)(5660300001)(81166006)(106466001)(50466002)(50226002)(39060400002)(103686004)(8936002)(48376002)(4326008)(6266002)(8676002)(107986001)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0201MB0784; H:xsj-pvapsmtpgw01; FPR:; SPF:Pass; PTR:unknown-60-83.xilinx.com; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2NAM02FT033; 1:SyG7PBs8E4zF+vb3Bs0GTQi2++27iSmKN6Qrc29YMbZHnjqcQjiOiJE6pri6HHj/V39FU76sQXAuLB5aaUbQBbProZ9GA2OexNiyovSoso98I3+IrO05CJBkmLPG2zy6 MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a74e7cf5-9c26-494c-7459-08d57026a791 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4608076)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603307)(7153060); SRVR:DM2PR0201MB0784; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0784; 3:JgwoX7eskOKuVKTTudJmo7su5cPtFAeLpXu5wyzBCKN9aIgSIgWT2Hqzbc4hiLMDk8EX+xRsqYlFyvQW9e9nlM3gqpVeHxVvuNq5T6+HMbFL++fwd6FqhqjsCJhikJDCbmgxhI3xVBZkQfvk/lF2znJarL89CwyGYC+/eCYR6gu2pWL6QBK2faktOLTADLdiTp7ONHv2ftGQJOvs8uDL/HU9bEv4frisYPE9rBvG43NqJqyAyg4/yt/XbTcqK3oynEb1mvv2rPqJDPNt7OT8GC1/d8Y3Aq0PjMlMip+XGx5FHlB4hTB7LMF7FhpmQRJCSQDwDrRW5Cd6r48jcHW/K5pp41SPoUNDIAvR16XiqPE=; 25:/+IZ/I8nWZA8tjt7QbxgWAJjZoALEpAHhHelx5c6PWKuvV7tkAQqegkzTQ5/L8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ssYqIuS4W5DvXCq7l3AC X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(8121501046)(5005006)(93006095)(93004095)(10201501046)(3231101)(2400082)(944501161)(3002001)(6055026)(6041288)(20161123560045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(6072148)(201708071742011); SRVR:DM2PR0201MB0784; BCL:0; PCL:0; RULEID:; SRVR:DM2PR0201MB0784; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0784; 4:eHH+T15Dtk5+c4PbxLsVHJoYHW7Jq64dUa9bG92NnnAXKOLHj6wbxhkYoIH4RlcSUdq81PKwmWeyZLcQYGwU3xTwN/243Dg+ldI7IGcTUL3uy/ib23HrPjs9S9q6A135r0Vqa1+988WVEAKbOmJRZEVqxvia5CDynECf/cGt+KVjHGvR+0DLTAIZJU/I5Wg8HL7VpGcwc5eprnZiPRGTjZXGCVSfPaNinGKCJ7fl8TONNnpn1/7f5lyIJargg7HxBFsle4tLxyyPFkas5AiuDq4zoHN5R9PowE93GaFNkdVAalGbBGm8SLf1fB6JNni8 X-Forefront-PRVS: 057906460E X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0201MB0784; 23:cDJ4HMbJH5slJNBHL8atiShvlyc0OImQa9oLA/6?= =?us-ascii?Q?YH14SnePRd+GfXjKS9Zk1n9LxwWdbSgPUue9N9/bfz6asxmyqwLVfPZAA46P?= =?us-ascii?Q?6inmF8CBz/seUTzIwza/MKx9EPpQtlea6SX8x6OAiUOvnDDQkufRclPpskB9?= =?us-ascii?Q?9dbKGjddKZTvDIiuCEMtTbG2xoRMLuIRW8bJAUXE842GZBMGSQvtlRvrxHQE?= =?us-ascii?Q?aTsvezEYQvY79r/Xc707boMdVvdLDuFpckkb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qA0RSpXYciz/plzjL?= X-Microsoft-Exchange-Diagnostics: 1; DM2PR0201MB0784; 6:GEdeyUXDWMkCRuQVGYpE6FFmMB1pT3LgKSmu7Z8xEkJ+HQ+FGDS9j8dzo4/QtwcRwFE1/KM6yMauD+gkT8MB2h14vBq+zUdh/cGFvTUGeUvObIJr7jQsVA3HqCzdBy+cEVU50TIbO3UtBoM7iHiy0Pq5uPZmdLqO1Ra5gd2njjjoNKoZX0lyJq1trimN6Yv9BH0546pR4e29r9G5W/KgEEmXwzkZnKR09Xdnn6W2jA4usJWs8fE3lijUd95jqKdMVyVYwU285MBeiGWfNYMJPd+yGsrc5kd1bjPaUiDhm2V7Jd83f3AxKzUbO0Xb6z5K6s+jxQs53nilVKMsRSsP/O3c0TmvfipSl1BNrXgWKmM=; 5:XA3kTVtA56A5CjxSVhePovus43pYR16nuwQ2atBnvtL3KF7JV6USDhfdI+8DcJzyRoVmTrPGKHaf2H1Xufvf8K6gsis9CjxHo+mUilKb9GlY93OfO0yVORx/CZLmDsyIc0D2s3xLg3oXBY9y5Rvhox74HHZClJnlRmULqWxMnAM=; 24:77bqEI+fRSJIE0DjLzYHJiop3/MUglmaak6Bd1TjUvh1SnbnAKdTAm91Jnop3ca6MyoXoi5S9JuqBVCJVUdEbrbj4NlYbrexhexo0Dv0Dkg=; 7:YG2x0dpNIYCWw+YF5UrpKWJ4gzIuNKP+LbAEUAv/kkQwdZBNa1AECd/wQBqGG9Ds7NStyII7eKZM+RZWeWt+Y9DHHgkmPWrK3PyPBcgw2cppWBnCt97KfppL7+Z6cufNUYVRrK2IJn+CIiZtUc1mpzSztEURKJk12cMFuoGL2XUhv5ZimC+i97v7jmFs10lKpbOvJp2qhNk7C+RF+eQbVBVG6hFn7WOxRXkAsKCmJkE8dWurQg+BmdUpP47tMgHB SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Feb 2018 01:36:06.2532 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a74e7cf5-9c26-494c-7459-08d57026a791 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.60.83]; Helo=[xsj-pvapsmtpgw01] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR0201MB0784 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Hyun Kwon , Daniel Vetter , Emil Velikov , Michal Simek , Laurent Pinchart Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This adds packed YUV and grey scale format fourccs. Signed-off-by: Hyun Kwon --- v3 - Update entries for changes - Squash fourcc patch into this - Note these don't have any reference in mainline v2 - Split from the previous patch --- --- drivers/gpu/drm/drm_fourcc.c | 5 +++++ include/uapi/drm/drm_fourcc.h | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/drivers/gpu/drm/drm_fourcc.c b/drivers/gpu/drm/drm_fourcc.c index 36bff7a..cf35251 100644 --- a/drivers/gpu/drm/drm_fourcc.c +++ b/drivers/gpu/drm/drm_fourcc.c @@ -175,6 +175,11 @@ 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 }, + { .format = DRM_FORMAT_VUY888, .depth = 0, .num_planes = 1, .cpp = { 3, 0, 0 }, .hsub = 1, .vsub = 1 }, + { .format = DRM_FORMAT_XVUY8888, .depth = 0, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1 }, + { .format = DRM_FORMAT_XVUY2101010, .depth = 0, .num_planes = 1, .cpp = { 4, 0, 0 }, .hsub = 1, .vsub = 1 }, + { .format = DRM_FORMAT_Y8, .depth = 0, .num_planes = 1, .cpp = { 1, 0, 0 }, .hsub = 1, .vsub = 1 }, + { .format = DRM_FORMAT_Y10, .depth = 0, .num_planes = 1, .pixels_per_macropixel = { 3, 0, 0 }, .bytes_per_macropixel = { 4, 0, 0 }, .hsub = 1, .vsub = 1 }, }; unsigned int i; diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h index 6ac5282..7014a3d 100644 --- a/include/uapi/drm/drm_fourcc.h +++ b/include/uapi/drm/drm_fourcc.h @@ -112,6 +112,13 @@ extern "C" { #define DRM_FORMAT_VYUY fourcc_code('V', 'Y', 'U', 'Y') /* [31:0] Y1:Cb0:Y0:Cr0 8:8:8:8 little endian */ #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_VUY888 fourcc_code('V', 'U', '2', '4') /* [23:0] Cr:Cb:Y 8:8:8 little endian */ +#define DRM_FORMAT_XVUY8888 fourcc_code('X', 'V', '2', '4') /* [31:0] x:Cr:Cb:Y 8:8:8:8 little endian */ +#define DRM_FORMAT_XVUY2101010 fourcc_code('X', 'Y', '3', '0') /* [31:0] x:Cr:Cb:Y 2:10:10:10 little endian */ + +/* Grey scale */ +#define DRM_FORMAT_Y8 fourcc_code('G', 'R', 'E', 'Y') /* 8 Greyscale */ +#define DRM_FORMAT_Y10 fourcc_code('Y', '1', '0', ' ') /* 10 Greyscale */ /* * 2 plane RGB + A