From patchwork Fri Jan 26 02:04:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hyun Kwon X-Patchwork-Id: 10185015 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 6A83460211 for ; Fri, 26 Jan 2018 02:05:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 583E328C57 for ; Fri, 26 Jan 2018 02:05:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4CE7428C58; Fri, 26 Jan 2018 02:05:08 +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 BD90F28C56 for ; Fri, 26 Jan 2018 02:05:07 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E794389781; Fri, 26 Jan 2018 02:04:42 +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 E98486E0D3 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=zAiJqSrJCiNr4ofAOya0p47nwKc85dgGzHtV42Ye7Qw=; b=3ggaAj4A4SFV0k5pK9T8UHcXVRx8B3gVQDYZYk2y8MxEunCZn4PstlyVtogdZJqhQEgsjtbvlnfml2HIk88rV7NbLsULVV90dX2xr0Uia3YNooD53AE0Aa2Wg559reVWX6RDH6PHagsVijxlw3S4Neen+58Hdg6C809XzcO8OSE= Received: from MWHPR0201CA0015.namprd02.prod.outlook.com (10.167.160.156) 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 SN1NAM02FT013.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e44::206) by MWHPR0201CA0015.outlook.office365.com (2603:10b6:301:74::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.428.17 via Frontend Transport; Fri, 26 Jan 2018 02:04:17 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.100) 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.100 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.100; helo=xsj-pvapsmtpgw02; Received: from xsj-pvapsmtpgw02 (149.199.60.100) by SN1NAM02FT013.mail.protection.outlook.com (10.152.72.98) 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]:57931 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from ) id 1eetNI-0003P5-CH; Thu, 25 Jan 2018 18:04:16 -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 1eetNI-0002nJ-8Q; Thu, 25 Jan 2018 18:04:16 -0800 Received: from xsj-pvapsmtp01 (mailhost.xilinx.com [149.199.38.66]) by xsj-smtp-dlp1.xlnx.xilinx.com (8.13.8/8.13.1) with ESMTP id w0Q24ErM016049; 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-9C; Thu, 25 Jan 2018 18:04:14 -0800 Received: by xsjhyunkubuntu (Postfix, from userid 13638) id 44F312C694D; Thu, 25 Jan 2018 18:04:14 -0800 (PST) From: Hyun Kwon To: Subject: [RFC v2 07/10] drm: drm_fourcc: Add new 10bit formats to drm_format_info table Date: Thu, 25 Jan 2018 18:04:04 -0800 Message-ID: <1516932247-10750-8-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.100; 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)(5001870100001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR02MB3385; H:xsj-pvapsmtpgw02; FPR:; SPF:Pass; PTR:xapps1.xilinx.com,unknown-60-100.xilinx.com; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1NAM02FT013; 1:Q/IzD3T0dzF6tCSBKQyUxJyIMkmnH98lw4khgMoMlllY7LZ+v2Y9xVhYZysSu4YjHPOQ1qoXVP0B1NN/VfjN1heRiDhbWtzLxZ8o26m8lPmg7VAAd8+mLs23PWujZXys MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8826c835-e55d-4ca5-540c-08d564611b0c 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:f4q4ZUN3UDalc7iDe05eK4NRwPawlvszQmyrduUGy/gjnKY+O9tkEssJJmLF2Q9+G+NIkN5SQSK2q2E2Bd2wRlmevDo1hYhzxgdXsXoj/r8BbcsOTPnToGRAZcjwSdicwd+xH65vIonKcAlOnAAgNvzomHPsLuuIovvilaobZg5UmqXliYRDzDBuH6T5GrYjLeUXh3WhOzNOpU1KLOJ8x/eIYe3LLjari82No6dlMk3AwcrKkV7dPgdjbh/WTdytfSuibPizY95hofBHdVO22L2cpWDFDTlp13jBGDsx2eiMx0vWg/aGElJT8KHVPsu47NnvVtlxJm2SbUHtujd3iZCSu+B0Z8+j1UNbHFxeNII=; 25:45qyNcXwFxa8B7mGnpP66fk2cboonTHBXB3fXdbTt+/NhLwca8CEBoxYAecNoWcaCCxGueeMU2Rqsip46//LhWfvj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YE 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:/EH1/StrG7VQ8472u5+n5xS1hi4SUDZpRd9AxYizZL9SlL24YfG3ojaEHM8IWdAjZ/umYP3cZPAkBfewnK+ikk1uMgpk/kNEClmfnEroPAgnjZspb0/fFCOWgUD6DrLNyrplmRkCZTOOrK3G/pQeMMDedsPukQHJXRidCYgT1vLy19yKAG7442SIP/9QNS5i6+KqVoxjedjkBGdgyAxOYykRtgyfhTHXDeKbRRE4xZwgKMNbopOMNT97JO/+vraVyxlyAX3xhdMed2PLiVJnP9oIAQJGbuKidD36pEHX+UDbZSTV2PEIMEyTlub/zD99 X-Forefront-PRVS: 05641FD966 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR02MB3385; 23:ugE3nzIsqV+KVyaul6h8UyFZckIiJObyMLBQTal+u?= =?us-ascii?Q?7weRlOKoY38jpmXtdjtAjrilvEeuC5fBtCs1AsY/VR8bFKvusuE4gqWLNvBQ?= =?us-ascii?Q?kLotuV7vkIRNn4b2XhLA3HNDVZ6kwIYY3RJp8rNE8EUxoK4YheK+46msnHdc?= =?us-ascii?Q?vmcjvDt/8RY+of+ZxK2lcljEfW0o43yty4z1J8KX0bVNWBy4HJTonsDp+qDe?= =?us-ascii?Q?CjgF+thgdXHBHdlqPqyuSoB0aPjRVUdpgdKlNeZZnl6oJhSR03d245MUbnbJ?= =?us-ascii?Q?kHAS29xAvx5I4DWvhdCHhOgnPIpR4TsLszBDA3+9OvNt5wI7l3nRpKXzvg3B?= =?us-ascii?Q?7ym2HGi9cpG9FAPBzcXJbDBtyrRfiYGjdXSaRw/rNr9hPaxSNh3klt6S+qBu?= =?us-ascii?Q?VQlPJXrqMF0UtsRfV35ifVLreP29w18m4ZUztN8MuVxeWolZWceubMrwA2Jo?= =?us-ascii?Q?Quh7THJbx1/GManeR8AhCAcic+GkFPV2g5Xgq0sYygxmBsHBsKEzklRhFlKz?= =?us-ascii?Q?G4snNIPI95yR/RggzgExwgEPh2il07zeQodIgP3bSC3Hs5OZS9boR9j+cfs+?= =?us-ascii?Q?G0WckDKBDDryTz8hVoE0xkbUXFtmyvCREYinHpUOnN/GZ1rGvoK1fNueXL7J?= =?us-ascii?Q?Wzd1uyZG9ttMQi0KimI+GwU9iEi6HVXkAgq7UpsE30OYq5vDzQXojiNhD7FQ?= =?us-ascii?Q?97jjcA+CJAIbMicJxGGJyl/1itcSHIglLUzl1CzPCTNppwOjIwsQY1IJWd7t?= =?us-ascii?Q?QhLRVtBFYacS3dSCKkbTXOnD8fdWxLdSvW+DwtyU9IofyVycjdv8TYRF9ZNn?= =?us-ascii?Q?alpWit5JK24duWJOZeyr0PjpnHQCWjfb+oWsdIKzgGxgKFvDQbMx4ICl77pt?= =?us-ascii?Q?IYva43v10JDMvaVutDwrg6eg99ZJ4FPG3muXvyQkcN0zSoX1sJz9LqePSPTe?= =?us-ascii?Q?HCrSvqEjl/YoNvqdJMPMIntAfpgzVcMSA0gkYWobqc6yeIiFsJgh3ysyFx5g?= =?us-ascii?Q?wm4nawG32W4sfwrURgPmQEI9SZJKviZ06OTUMY2f14PUKZr3wHvSaDVMuJS/?= =?us-ascii?Q?YYbTzFyoeJEfrMeEILvNGXYufF1O1jDmRPbmPG52Z+YY/pHK/PcwBARStR6Q?= =?us-ascii?Q?P8XBQsKvEQ=3D?= X-Microsoft-Exchange-Diagnostics: 1; DM5PR02MB3385; 6:qBCMIAJCv2DxEfN0xnXYPCzzrT6gkRh2T9B6DY+Eav4hnDJl91LivTa5lYC0+MQTjSp5yX2t1D4kYPC3CYfyaG9dLapNhf2WNUybzvzGv7siL6x5LaKqq5J1L8j0/3Ky2N8m4M4hivdB1IBqKXn/Xlai+485MaaVjHJTZMnJbIP2ygYeEtw47Z1c1Qx4aWNZt1jwnxlcuCGPGH32rrUVK0gRmW97gjGus8LRCwc/kzytMsEvQAj5IiKdFas/uKAZvFjPL/Qny8+UR+ynGkEqrxHMB72rZQezcsdvEpAVwYsWJeIr8YYWNQfV3YO5mSv+xNNSH2QUVwTF33stXyr0fcunATYViCvqqsjwCpZhhUU=; 5:U2Ytr0oSFFGlS+WsExl/ELjgjb68KJ6/bj2NJ/jRU9yPOD9fBnRT84CgEwOy0eMnkHgCGL4pH86wJhJLBU4iQbwOc0OP4SVjugmJDSySm1QOmmaVVpuHHpSoLrcHb+MAviOFOX7hyk3vpn55IARANOGBFRs78Fl3/g9E1ACGDZc=; 24:6lyQVjILbXJzBHtm9dPpqtUXCFeiqf2EysYMb6LscXsYz5cEzb9LYQY2ENlXvL4nr/DJjqvFu00lcvhKTcB6OuLcHhNSX2O/EzoMJITx11w=; 7:8/gCEADGHd76XF6NHx4RVb1wQqVYLihSSpW1kXwgfNGU4O0kn9cq8n4O+I0e5asYSW0ZtPxTZE7zI0mgB+D47ZT9G4AnIM4K+bWXGPGvQKavxOXVifa9GyVRUQ1AgoI4/K+awH5HNOFW087NLAc/SjUWdTub0vj7d/zMJZHBhK7Ogmv9602tHzXxzwrVdCMKLmq77yzO9hF2bLT1fJiNDVLGQuWddCjydRQNnAWtG7O7JQOVB23LxvsrClZD2V5z SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jan 2018 02:04:16.8691 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8826c835-e55d-4ca5-540c-08d564611b0c 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.100]; Helo=[xsj-pvapsmtpgw02] 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 Add information for DRM_FORMAT_XV15 and DRM_FORMAT_XV20 to the drm format table. Signed-off-by: Hyun Kwon --- v2 - Accomodate macro pixel changes --- --- drivers/gpu/drm/drm_fourcc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/gpu/drm/drm_fourcc.c b/drivers/gpu/drm/drm_fourcc.c index 2070276..2f6c9eb 100644 --- a/drivers/gpu/drm/drm_fourcc.c +++ b/drivers/gpu/drm/drm_fourcc.c @@ -168,6 +168,8 @@ const struct drm_format_info *__drm_format_info(u32 format) { .format = DRM_FORMAT_NV61, .depth = 0, .num_planes = 2, .cpp = { 1, 2, 0 }, .bpp = { 8, 16, 0 }, .ppm = { 1, 1, 0 }, .bpm = { 8, 16, 0 }, .hsub = 2, .vsub = 1 }, { .format = DRM_FORMAT_NV24, .depth = 0, .num_planes = 2, .cpp = { 1, 2, 0 }, .bpp = { 8, 16, 0 }, .ppm = { 1, 1, 0 }, .bpm = { 8, 16, 0 }, .hsub = 1, .vsub = 1 }, { .format = DRM_FORMAT_NV42, .depth = 0, .num_planes = 2, .cpp = { 1, 2, 0 }, .bpp = { 8, 16, 0 }, .ppm = { 1, 1, 0 }, .bpm = { 8, 16, 0 }, .hsub = 1, .vsub = 1 }, + { .format = DRM_FORMAT_XV15, .depth = 0, .num_planes = 2, .cpp = { 1, 2, 0 }, .bpp = { 10, 20, 0 }, .ppm = { 3, 3, 0 }, .bpm = { 32, 64, 0 }, .hsub = 2, .vsub = 2, }, + { .format = DRM_FORMAT_XV20, .depth = 0, .num_planes = 2, .cpp = { 1, 2, 0 }, .bpp = { 10, 20, 0 }, .ppm = { 3, 3, 0 }, .bpm = { 32, 64, 0 }, .hsub = 2, .vsub = 1, }, { .format = DRM_FORMAT_YUYV, .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_YVYU, .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_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 },