From patchwork Fri Jan 26 02:04:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hyun Kwon X-Patchwork-Id: 10185001 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 4BAA860211 for ; Fri, 26 Jan 2018 02:04:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3901328C46 for ; Fri, 26 Jan 2018 02:04:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2D56728C4D; Fri, 26 Jan 2018 02:04:28 +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 26FFE28C46 for ; Fri, 26 Jan 2018 02:04:27 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2A7546E08B; Fri, 26 Jan 2018 02:04:23 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0049.outbound.protection.outlook.com [104.47.37.49]) by gabe.freedesktop.org (Postfix) with ESMTPS id 962B86E08B for ; Fri, 26 Jan 2018 02:04:20 +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=HB5gzO60mplFxKRLPzTNW7LauPrEGcgiHsHfnCYKqws=; b=qWcVHnJH0wmgU8EnndlURtOsmq7eVACQ8dKXvjv+FAO+2T/FLjVanFYEhQA0rkZp1tHsOqrj1XPejb16grLYe4vXNpvzm8eY0XvoILURCxLfT3SHJ029lNvqgEkvUvWhC0GKzO/hub63EFlhDyqsjQe5Tg0j22eImFV7Awqrd/Y= Received: from CY4PR02CA0005.namprd02.prod.outlook.com (10.169.188.15) by DM5PR02MB3385.namprd02.prod.outlook.com (10.164.152.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.444.14; Fri, 26 Jan 2018 02:04:17 +0000 Received: from BL2NAM02FT030.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::208) by CY4PR02CA0005.outlook.office365.com (2603:10b6:903:18::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.444.14 via Frontend Transport; Fri, 26 Jan 2018 02:04:16 +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 BL2NAM02FT030.mail.protection.outlook.com (10.152.77.172) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.444.13 via Frontend Transport; Fri, 26 Jan 2018 02:04:16 +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 1eetNH-0005Jz-Qx; Thu, 25 Jan 2018 18:04:15 -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 1eetNH-0002nQ-Lx; Thu, 25 Jan 2018 18:04:15 -0800 Received: from xsj-pvapsmtp01 (mailhub.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id w0Q24ETD016056; Thu, 25 Jan 2018 18:04:14 -0800 Received: from [172.19.2.244] (helo=xsjhyunkubuntu) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1eetNG-0002mC-AW; Thu, 25 Jan 2018 18:04:14 -0800 Received: by xsjhyunkubuntu (Postfix, from userid 13638) id 4F0D32C693D; Thu, 25 Jan 2018 18:04:14 -0800 (PST) From: Hyun Kwon To: Subject: [RFC v2 10/10] drm: drm_fourcc: Add new formats to the drm format table Date: Thu, 25 Jan 2018 18:04:07 -0800 Message-ID: <1516932247-10750-11-git-send-email-hyun.kwon@xilinx.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1516932247-10750-1-git-send-email-hyun.kwon@xilinx.com> References: <1516932247-10750-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-23618.006 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)(39860400002)(39380400002)(376002)(396003)(2980300002)(438002)(189003)(199004)(39060400002)(8936002)(52956003)(8676002)(50226002)(81156014)(81166006)(107886003)(36756003)(90966002)(47776003)(6666003)(6266002)(478600001)(2351001)(6916009)(2950100002)(106466001)(5660300001)(2906002)(336011)(63266004)(356003)(103686004)(51416003)(16586007)(106002)(54906003)(316002)(48376002)(26005)(42186006)(76176011)(186003)(50466002)(305945005)(4326008)(107986001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR02MB3385; H:xsj-pvapsmtpgw01; FPR:; SPF:Pass; PTR:unknown-60-83.xilinx.com; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2NAM02FT030; 1:AV4JC+NR5YXaKZmvuXvgo5VawR78T6iytE6ascYsYBxJzI4psiQTMjmqEk7+WCx9GZA+nJJER/wMR9SZT/IJ0fH7EyJavS1WkE4+0El8iRQEnN9LvKj0l7r565/LtN5p MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c3170abc-bf6f-4d09-7c5a-08d564611ac0 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(4608076)(2017052603307)(7153060); SRVR:DM5PR02MB3385; X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB3385; 3:eJ8Pa+1JJYFDsHIAnZw8oHBWfz7+1aWncCQo+Ap4Lln1kjPtpcHeqFeixLNY5NIo3vD5O9pOrjOrPv2fXC9hVKYXYRobmF4Qg33P7XTlY6SXuNw/pT0eOrgPLz5W2yzpxRhwB1gjMute8tSRXCmSrX1ATyJatLwk61RA/J2FGbaCt7ydg7QxfLrM13qC68E8ybeUSbuE9lSi1SWnI/KuZGMVImGGbu958r6XNkks6z1L4Adqbzk5AGO4M2JxErqrZEIIN/jW5LGnwMY7KgJ8VQgCqJUwj7DBwM7s7VNX9H0Mh+bOfz8jnMwXSN+wnFJrpA4LN1QopggmtYuEaKLlUqr/iTVEisvFWwBYgmq5zmY=; 25:ONH7ZvwypXma1Eqd2CiCTm5+GYvQSz/KiBk495NxcxhznyzR8zmoEBvSXbMtMZvnTEncBKHsUbbLWZqBjm7RtX9ecuSIPB7k0VB0yOwXOw+/lFUMD2HgiiV4DIp+avB3wwIyQYBmGbQ2Y7bPZpaA4NJHfeJaVY2mshkKr62GehhxToDXP98hKSDK0iYP84FkGcra7D/n1OH9W1kTnhIdbP6Gefsh8WU4yq0xUgqC1x/AXa6jm61uWQjaCsS7s8nKNYmrSZq8WouBvhv+Huq8g26920aykLmeWNqPUqHWfXCSRG29cum0AONVK5OO0Ox3dsCgUskYXRnXpzH4h1lB4A== X-MS-TrafficTypeDiagnostic: DM5PR02MB3385: X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB3385; 31:1VFiaJOe/GJEJWwLaYFVudHNK/LCpEXoNaUFuo2lXsVAVMT385XNiZ+4wO0UheX7VqdyIPEPSz9u+jQpQS8f4phDj7FFK4huKTc6lyxTt1gn75yXXd7WmTZi/FOnGviMlkVPoIjzqRZs5peXSXQhXtuHnoiQ1tv//JJHv79uH9bdexrrchhuYWhYf023/D/5Ed1aiBS4vr+XBOcamTMP1LUOwi4XBYNz02NZ92DSo4o=; 20:NrPRnqo84xqc/AUQf5bwMs/IfeAs6Myj8pXJI5jVtspGhDG9z9hkQgTuBBD1Opv+Ncg9oQhdnwJTchmY4MY8O79E/QiXsc5d5SJKr8ZWEHSOfKzq6nU2bad4fDxuau6HK6kjPxU96oUN3Rf6bmFSokY3qMBr62oO8dCB+fwma3axHQC9Jagr/S0DYtU17kg8xRuCvgkCfgAdjbmFn0upBtXucDZcBUVMDYiugIoYBcRLERLR2X26zqT9fxkyliWRxCxBqZpV1AC//wXwjjepdhTpOCl+j+57IZSqlrnjka00ovZX6gz/Gxm4i2LXltdCJKq5uG2dRTrgM28RIVBFA3Q7jAEKi1DgFypCNd+YllfoYVLEoAx0//mArjnosA2uSyDMzZSIGekit6QZUETDBxI3aXlBqeO7a9cnhaFOO+zZeaM3Uzpk3F3W/n/L3yTvh8M4AE0hninySn7hXfcgiVgmrMMni1WS6c+8PixnGEK4S3rZ3lkCW/6LDuuaahGQ 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)(3231023)(2400081)(944501161)(3002001)(10201501046)(6055026)(6041288)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(6072148)(201708071742011); SRVR:DM5PR02MB3385; BCL:0; PCL:0; RULEID:; SRVR:DM5PR02MB3385; X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB3385; 4:DjLhAt22bZftANlgrvwl9BbCvitbxFImFN3rEr+EQ+TYB+JQoIGoFoSPUt4bvWX7iVEUjLAwrC90j1ndeBQInLKDMqBb0923NNsa1bVFPn9Ie9FRlCRfYxIOTLB0hpToTx9v7fB8Wu5pRiRGw4zgKXYuCosk3tAKurkzCisIZFZloH+PgMLwBf29QmXZ1uf34jSrR5pW1sGjROFb1v2AgyIZ/WdeZJzYXUp6kU5mtk8RWgONxnzUUVi0pQbeOCw5zJXPlAkUMdYY5FrwxIhVncf7H0lQLmmVE4dVLjozzz2meyceHfYasQDAfmzZas3j X-Forefront-PRVS: 05641FD966 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR02MB3385; 23:CtVlxhNnbt8Xxdnsu5XuVsyRI8+s7hNykKGQwZ1al?= =?us-ascii?Q?ZprMX3cFywpQNdv27rdi2kj/hMTlc60zShYMNqA5uDjB5M+sWekR/HBtHPi6?= =?us-ascii?Q?PrNAckFPHnwb0gWkwWbqzEgQGkVPXeqfZ7pHsxfmcEwLuN8nBOLeCW32RA0O?= =?us-ascii?Q?PUIhEQKYdB4HcHwyxil/IlHj1A+Y6VYDzqfEF/0H9YUieJHCuYvVsKwBdLvB?= =?us-ascii?Q?/sZRPXSuNpj1gv24d4GZt1euoghdr4xwzZSSZJqp0/Wm8wJ0UOJYuzrwV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PR02MB3385; 6:2x3X4NkM6j8k/5lppriwssOJnoUo8g0GN5riDS4Pf1aSw8OLwpApGQRApGNkzmnhDr4zPYxWIjbYraWZmAgeSYTFCkkUk2eD+06NXdfgAJJMNW9c3rWr6TszIkx/7mXnCeAy7NmqE2vzIMwvSqRaqTsRUw4fNMc+aJY88zGhN5qOQRZSuY4SJNal7rOqSWkO+AsJoYFJTTPOAd8AHGhI4jF48Dg1uBHTCZ7KlvBVFDqAFz1Cq1BoRnJRcylVIGgLKg7qsS+bmlUvbs/0nf38c2BzURr25JYYnHTbvLVqJCYVrsGgLARCV7R6arjtDkdhB6yRcFfcqb9rrF4RbgPJHmxuB9qe/+Hb2OctW4Okd74=; 5:9gfgPlMDPVtU23bMfteLWJL/cF3HBGnp93OnXx2TsLRd5M6Wf/xiqYsOLFWMf+NLLE54OHWMm35G0xwkkZq3GgrIz4vWq+Fj40ob+HUJLGN5wsCy74KqxHIvatoSO0fb5fKDn/lkgDQ9leEb735xZWfPID4zFIRxTLePIAU0qMs=; 24:hbuu1Pyg1g1CdQrhtsejmhRMwDWs+tb2jXLvGD1AI944SOEd0bUOnRlNpRAUJh3tz6sOQHT1EHGk0tZhIsUIRcu7iniSDLRWY8tQc8zLiZk=; 7:trkZzNfouep7ei+RgFLKOoSNZlKHtDG7ypcqklVdPVQk9b98T210CR0f+CtkOK0WQ1AFxPOYnjPg/Q9wTj7pI2opZoMbQI9Ic3EWWs+dAHjKOE/0LhD41ESDbNBApn8QTozUCbzA7XspMmzwW/ssrHuvhRFkFyAJXrVGvaiWQFzteszQl35fXVYi4rrWZmwTnkqwoUElG5h6NrNOv16XUwhXSQuuHdzBJrL1yTqz8rjpH/PQHw9xSt4Nwa9ye15/ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jan 2018 02:04:16.4345 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c3170abc-bf6f-4d09-7c5a-08d564611ac0 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: DM5PR02MB3385 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 new formats (packed YUV and grey scale) to the drm format table. Signed-off-by: Hyun Kwon --- v2 - Split from previous patch --- --- drivers/gpu/drm/drm_fourcc.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/gpu/drm/drm_fourcc.c b/drivers/gpu/drm/drm_fourcc.c index 2f6c9eb..420d043 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 }, .bpp = { 16, 0, 0 }, .ppm = { 1, 0, 0 }, .bpm = { 16, 0, 0 }, .hsub = 2, .vsub = 1 }, { .format = DRM_FORMAT_VYUY, .depth = 0, .num_planes = 1, .cpp = { 2, 0, 0 }, .bpp = { 16, 0, 0 }, .ppm = { 1, 0, 0 }, .bpm = { 16, 0, 0 }, .hsub = 2, .vsub = 1 }, { .format = DRM_FORMAT_AYUV, .depth = 0, .num_planes = 1, .cpp = { 4, 0, 0 }, .bpp = { 32, 0, 0 }, .ppm = { 1, 0, 0 }, .bpm = { 32, 0, 0 }, .hsub = 1, .vsub = 1 }, + { .format = DRM_FORMAT_VUY888, .depth = 0, .num_planes = 1, .cpp = { 3, 0, 0 }, .bpp = { 24, 0, 0 }, .ppm = { 1, 0, 0 }, .bpm = { 24, 0, 0 }, .hsub = 1, .vsub = 1 }, + { .format = DRM_FORMAT_XVUY8888, .depth = 0, .num_planes = 1, .cpp = { 4, 0, 0 }, .bpp = { 32, 0, 0 }, .ppm = { 1, 0, 0 }, .bpm = { 32, 0, 0 }, .hsub = 1, .vsub = 1 }, + { .format = DRM_FORMAT_XVUY2101010, .depth = 0, .num_planes = 1, .cpp = { 4, 0, 0 }, .bpp = { 32, 0, 0 }, .ppm = { 1, 0, 0 }, .bpm = { 32, 0, 0 }, .hsub = 1, .vsub = 1 }, + { .format = DRM_FORMAT_Y8, .depth = 0, .num_planes = 1, .cpp = { 1, 0, 0 }, .bpp = { 8, 0, 0 }, .ppm = { 1, 0, 0 }, .bpm = { 8, 0, 0 }, .hsub = 1, .vsub = 1 }, + { .format = DRM_FORMAT_Y10, .depth = 0, .num_planes = 1, .cpp = { 1, 0, 0 }, .bpp = { 10, 0, 0 }, .ppm = { 3, 0, 0 }, .bpm = { 32, 0, 0 }, .hsub = 1, .vsub = 1 }, }; unsigned int i;