From patchwork Tue Jul 17 17:13:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ayan Halder X-Patchwork-Id: 10530297 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 79DB8603ED for ; Tue, 17 Jul 2018 17:53:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6C92926253 for ; Tue, 17 Jul 2018 17:53:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5F74B297CD; Tue, 17 Jul 2018 17:53:36 +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=-2.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, MAILING_LIST_MULTI autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0243226253 for ; Tue, 17 Jul 2018 17:53:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=oAZZAiZ0pl2i4yqRILXhiGqSGF83JONBSh0qfZOh2FM=; b=O6zqnMmJ5OqiZ6 ICSu47hD7nVO9SXBNgcTJghzy2+Xg1xv3cg6pEGuM1xqzhZyO5h7Kaik026G9MoD1gQUrjmQ5+SNx 4SsMBNp4SR+mb3oJ2jIhtWb7vYRwA6BYSB6vumFnic2evGM4nHYYkpoYc/W1jdvh8ax973/oPHhqR 7P932gi/uXu4q9D6FuPo7ujYAF/+IgexidVxqGEVjNNwomyPI2Q5YFfOu0EjMVcHw671deasZjQip AiG3+dsn8VA+MHMyqMM1wy40YKoHbRxTQrtjiNmlt/zpm3TQLDnaXj2uEQB8BcXOCDYewYBEYY8QK sTeNqf/uPUurkRez7UXw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ffUAG-0005tc-1q; Tue, 17 Jul 2018 17:53:32 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ffU9w-0005XE-H7; Tue, 17 Jul 2018 17:53:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Content-Type:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=VdamPcwMdfIl9sVe9SEIJU76oiKblhRfaSANUH5EIyQ=; b=kk0bbNbcma4QNo0MVrhrOVyGr fS182D0V6meplv2KH9CXPRaGAo5aoeTjrsnZ//QQEvOYMYqih1t/OpMZ4Gu5f0kmZNvrVJCMZOHbv Zj9Y9V7+P2JfTn8U13JuS+KDYsJnkA81fMMH0+99SNXKRRucVNcJlYQON3xvQhB8yJqGrsUsq6ADD NiRtJVSdEWK2k4QMGjulYZREJ/9emMhV2vPbAc7u/9G3vZjXUnuGRFeHmQVqOiQWJpAOBzFsMVVhI y4nhPqGBqx54MCDvABW85bNXc/lRyMiFZJRk0phOZVRWz7JZYV8eD40hvWYBYbJgyESrBpKHLEHjs pDRLlZ6HQ==; Received: from mail-eopbgr20045.outbound.protection.outlook.com ([40.107.2.45] helo=EUR02-VE1-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ffTYS-0002OK-Rl; Tue, 17 Jul 2018 17:14:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector1-arm-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VdamPcwMdfIl9sVe9SEIJU76oiKblhRfaSANUH5EIyQ=; b=P7f9Nt+++XNT0F1cQIyPe/JeiATuaa+axompvuSMzqY8FQ8J4otIfqa0wCzNny1mnfPjm7wzUZBYMZaCjo1Pi6QOB0S+5CPPvYfMcapYtk5V/lAc7TLs5jNSCJIzmcxJgWc5oxZE0VMD9TIShGym8A4GUnuCd8aLe8YLBYDU32A= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Ayan.Halder@arm.com; Received: from e113505-lin.cambridge.arm.com (217.140.96.140) by AM5PR0801MB1377.eurprd08.prod.outlook.com (2603:10a6:203:1f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.952.19; Tue, 17 Jul 2018 17:14:16 +0000 From: Ayan Kumar Halder To: ayan.halder@arm.com, liviu.dudau@arm.com, brian.starkey@arm.com, gustavo@padovan.org, maarten.lankhorst@linux.intel.com, seanpaul@chromium.org, airlied@linux.ie, jani.nikula@linux.intel.com, joonas.lahtinen@linux.intel.com, rodrigo.vivi@intel.com, intel-gfx@lists.freedesktop.org, hjc@rock-chips.com, heiko@sntech.de, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, tomi.valkeinen@ti.com, laurent.pinchart@ideasonboard.com, sre@kernel.org, bparrot@ti.com, peter.ujfalusi@ti.com, afd@ti.com, dri-devel@lists.freedesktop.org, maxime.ripard@bootlin.com, wens@csie.org, malidp@foss.arm.com Subject: [PATCH 5/5] drm/sun4i: Substitute sun4i_backend_format_is_yuv() with format->is_yuv Date: Tue, 17 Jul 2018 18:13:46 +0100 Message-Id: <1531847626-22248-5-git-send-email-ayan.halder@arm.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1531847626-22248-1-git-send-email-ayan.halder@arm.com> References: <1531847626-22248-1-git-send-email-ayan.halder@arm.com> MIME-Version: 1.0 X-Originating-IP: [217.140.96.140] X-ClientProxiedBy: MRXP264CA0012.FRAP264.PROD.OUTLOOK.COM (2603:10a6:500:15::24) To AM5PR0801MB1377.eurprd08.prod.outlook.com (2603:10a6:203:1f::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ba6022ea-fdd7-4067-feb1-08d5ec08bac0 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(48565401081)(2017052603328)(7153060)(7193020); SRVR:AM5PR0801MB1377; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0801MB1377; 3:FMwLEpzaZdrWXC+lEDgL+wlbqtgSCiN1M3i3Rkc/yA3fT2lcABO5FnasapjyN81wJIRMqO4iD7he3/pIjJffOYU+2LNx4yEQ5b/QmmqxJDUbLXT1p2HP+BekzaSQJ8tC1hVVlhzUKRJaOW2Zyaz/ngQC6cgEyGhmIbL95g/otQ40DuCn0SgD+h2Q2MirsBVxVn5ToRaJ0z2bPaf8cvD6Y2kSxoomldVotkWCA3MV4di6vzfq85lWBYqNQHQMpv2j; 25:cIM/JBnQCAqxlQtn2j7xjZCIdip1pXZYAx9ayuzzjXn1nqFBY9ZqsFpzT2uqpwrIqBw7anRgQ+xd+PM6x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DGOetgu9xA X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231311)(944501410)(52105095)(93006095)(93001095)(10201501046)(3002001)(6055026)(149027)(150027)(6041310)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:AM5PR0801MB1377; BCL:0; PCL:0; RULEID:; SRVR:AM5PR0801MB1377; X-Forefront-PRVS: 073631BD3D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(346002)(396003)(376002)(39860400002)(136003)(199004)(189003)(7416002)(316002)(305945005)(36756003)(5660300001)(76176011)(486006)(4326008)(446003)(50466002)(51416003)(48376002)(386003)(2906002)(52116002)(7696005)(476003)(53936002)(11346002)(2616005)(6486002)(66066001)(3846002)(575784001)(72206003)(68736007)(16586007)(478600001)(25786009)(956004)(105586002)(81156014)(8936002)(50226002)(26005)(86362001)(15760500003)(6116002)(47776003)(16526019)(8676002)(97736004)(14444005)(81166006)(7736002)(6666003)(106356001)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM5PR0801MB1377; H:e113505-lin.cambridge.arm.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR0801MB1377; 23:q5nRHzn2AEAbzgji+cYbbmOK20yoK1ijegk6HYN?= =?us-ascii?Q?aK7+BoDuUHpqQbCyXD/6pEqgpHIZwiU7EJ6U1BQXlluQ3m7UWgy/VKM1Dw+s?= =?us-ascii?Q?o16Y2TmCR7458Z/heqEHqLAvsPV/1Z4xFxJjis+utZkcAADlpPYBVldfr+bP?= =?us-ascii?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EC3mytNaOdgq/7dowqtGctL7mYRwoZOoNjmqzaOlRtRWVH8KFOOpWbExsPhjxcs0wIuCpRYE/18as5jNYkYoWcnH2nk7Nfnqng==; 5:fDXzzOlq6cQtuiTBG5Wi60k/zg9UevHnKO3yFLx8IsFPYzb+bk6kRMlMfBLcIEXd/eD4v5e1LzAwephtl8+oK76TDslrVC6AxBOKffREIVgs1BYNXpoab7esWLLdFDmhMzYFQmbsBjezzvkyUM5iafAXyHu7gdLH8xv7CaYY/+w=; 24:O4JU637OnFEu/XUdH/G/rY9QP6XJaZ0uqITOi0Aa+kmtM5ys7cU551Vv0ghfrPGR/q0YvguV24uGmw136NlTcUQN+xk8nDg182ujEDyaB0E= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM5PR0801MB1377; 7:WgEc1yBR71Z00C3ewxZO76/TorDP9R0fq9fk+Y/RDyUQ27IPEjmLjtcqqS/IaZTGpM7ePBGuAQrhPpmyAAc2d3lyetYRLkq6jSxxr2BvUOW1K73tok8gntT1guDUFL/ihSpbV0cCkMjkQV5CvfMSyUzqT5mqt8AfhEYo4yWCIkARiGeFNloh8TRV9GvgEaPL1rOneECIGw7n9MJY6BfpfapPJGw7yauNsO+MjYeCVIsmMiEbrEH1Pk1cHDlrqlgv X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jul 2018 17:14:16.3913 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ba6022ea-fdd7-4067-feb1-08d5ec08bac0 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0801MB1377 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180717_131428_941179_A113C215 X-CRM114-Status: GOOD ( 11.31 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: nd@arm.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP drm_format_info table has a field 'is_yuv' to denote if the format is yuv or not. The driver is expected to use this instead of having a function for the same purpose. Signed-off-by: Ayan Kumar halder --- drivers/gpu/drm/sun4i/sun4i_backend.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/drivers/gpu/drm/sun4i/sun4i_backend.c b/drivers/gpu/drm/sun4i/sun4i_backend.c index de0a76d..d7950b5 100644 --- a/drivers/gpu/drm/sun4i/sun4i_backend.c +++ b/drivers/gpu/drm/sun4i/sun4i_backend.c @@ -86,12 +86,6 @@ static inline bool sun4i_backend_format_is_packed_yuv422(uint32_t format) } } -static inline bool sun4i_backend_format_is_yuv(uint32_t format) -{ - return sun4i_backend_format_is_planar_yuv(format) || - sun4i_backend_format_is_packed_yuv422(format); -} - static void sun4i_backend_apply_color_correction(struct sunxi_engine *engine) { int i; @@ -304,7 +298,7 @@ int sun4i_backend_update_layer_formats(struct sun4i_backend *backend, SUN4I_BACKEND_ATTCTL_REG0_LAY_GLBALPHA_EN, val); - if (sun4i_backend_format_is_yuv(fb->format->format)) + if (fb->format->is_yuv) return sun4i_backend_update_yuv_format(backend, layer, plane); ret = sun4i_backend_drm_format_to_layer(fb->format->format, &val); @@ -384,7 +378,7 @@ int sun4i_backend_update_layer_buffer(struct sun4i_backend *backend, */ paddr -= PHYS_OFFSET; - if (sun4i_backend_format_is_yuv(fb->format->format)) + if (fb->format->is_yuv) return sun4i_backend_update_yuv_buffer(backend, fb, paddr); /* Write the 32 lower bits of the address (in bits) */ @@ -502,7 +496,7 @@ static int sun4i_backend_atomic_check(struct sunxi_engine *engine, if (fb->format->has_alpha || (plane_state->alpha != DRM_BLEND_ALPHA_OPAQUE)) num_alpha_planes++; - if (sun4i_backend_format_is_yuv(fb->format->format)) { + if (fb->format->is_yuv) { DRM_DEBUG_DRIVER("Plane FB format is YUV\n"); num_yuv_planes++; }