Message ID | 20180720211509.23605-9-alexandru-cosmin.gheorghe@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <dri-devel-bounces@lists.freedesktop.org> 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 DEE596053F for <patchwork-dri-devel@patchwork.kernel.org>; Fri, 20 Jul 2018 21:17:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CEC9D297DB for <patchwork-dri-devel@patchwork.kernel.org>; Fri, 20 Jul 2018 21:17:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C223A2980F; Fri, 20 Jul 2018 21:17:16 +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=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 7B85D297DB for <patchwork-dri-devel@patchwork.kernel.org>; Fri, 20 Jul 2018 21:17:16 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6E6776F0D3; Fri, 20 Jul 2018 21:17:15 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20044.outbound.protection.outlook.com [40.107.2.44]) by gabe.freedesktop.org (Postfix) with ESMTPS id 342D46F0D0 for <dri-devel@lists.freedesktop.org>; Fri, 20 Jul 2018 21:17:10 +0000 (UTC) Received: from e114479-lin.cambridge.arm.com (217.140.96.140) by VI1PR0802MB2557.eurprd08.prod.outlook.com (2603:10a6:800:ae::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.973.21; Fri, 20 Jul 2018 21:17:05 +0000 From: Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com> To: seanpaul@chromium.org, airlied@linux.ie, dri-devel@lists.freedesktop.org, liviu.dudau@arm.com, brian.starkey@arm.com, malidp@foss.arm.com, ville.syrjala@linux.intel.com, daniel@ffwll.ch, gustavo@padovan.org, maarten.lankhorst@linux.intel.com, alexander.deucher@amd.com, christian.koenig@amd.com, David1.Zhou@amd.com, harry.wentland@amd.com, andrey.grodzovsky@amd.com, Tony.Cheng@amd.com, sunpeng.li@amd.com, shirish.s@amd.com, boris.brezillon@bootlin.com, nicolas.ferre@microchip.com, alexandre.belloni@bootlin.com, inki.dae@samsung.com, jy0922.shim@samsung.com, sw0312.kim@samsung.com, kyungmin.park@samsung.com, kgene@kernel.org, krzk@kernel.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, p.zabel@pengutronix.de, laurent.pinchart@ideasonboard.com, maxime.ripard@bootlin.com, wens@csie.org, eric@anholt.net, linux-graphics-maintainer@vmware.com, syeh@vmware.com, thellstrom@vmware.com Subject: [PATCH 08/10] drm/sun4i: Use __drm_atomic_helper_plane_reset instead of copying the logic Date: Fri, 20 Jul 2018 22:15:07 +0100 Message-Id: <20180720211509.23605-9-alexandru-cosmin.gheorghe@arm.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180720211509.23605-1-alexandru-cosmin.gheorghe@arm.com> References: <20180713161407.GQ20303@art_vandelay> <20180720211509.23605-1-alexandru-cosmin.gheorghe@arm.com> MIME-Version: 1.0 X-Originating-IP: [217.140.96.140] X-ClientProxiedBy: VI1PR0601CA0017.eurprd06.prod.outlook.com (2603:10a6:800:1e::27) To VI1PR0802MB2557.eurprd08.prod.outlook.com (2603:10a6:800:ae::7) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 7e8e1394-e093-45ff-ff50-08d5ee8625a4 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600067)(711020)(4618075)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:VI1PR0802MB2557; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0802MB2557; 3:VJHzT0a3pIxL/phqhrhLhi6kJLpiHCWN1PHW5wvb79BGaaGYwcZal4fpaaDdAE/LzyJNa0V0k/y2nD9h0hgThoDDh56fNX+5qwrjZnL4i5hhshp4h6BfMzUX5SdpC3eHrYf/H4RGVGUYRZ7+09ggVsrQWvgGpxP5fZk4V24xcQhQfdG9zpaoDF+DqSx9nF1wCo6HZ/wEpIIhjQck9NbrxpKjUH7Op/GJ+w6vwNV7Kr+Gx0QcVjntSN6C96Bv7Z8P; 25:3odZBTa+zX71IEtvBkinENO9R687KfSVIf+KUCmdqy2m3efY7zdZ2NVx2FiF5jypYmcKpCP8Vg1/PbSJ+ySqRy7pfgh9/BQzTlLbJ9Otb5ZgKM/0NbgMhPMkmwwAt8c6/U0l0ePk47a2tQEH85hoKQVJcVVf9vQxZPcy7H8hgiIfvRRx43/KlyXA+HV4A+73p5FI81B579BsDJM/nkGWdTr9osY0qsaP1FW8ceNbKEcuV/faBCWBI+7mfMVcfkI1S3d7CN56QeEyrPndkUOuWk1j1FAFbo/+pGQMWmlwbGvYvGSDLeHlmyYV/vwYe+Tw+x4DtaqAKZIjg5ElnpLVtA==; 31:XQKPU5qB2F4QHg0xa/0ZkmV3eBmjLeUWGcAOFIlU/ENPXWZmtIhLzeb4ptIo3zEhz6/fx7DqtfKe1bDIUSq/NvkeK3DkHL7xm8MDGU++Ye5BkT0JUItYwGjFmlQ53n3LdYq2gcSPBzjqINDnZdWuq82Oo8yDRoT5tCGBAJkDEJLaKKUX4ZaSawcp8kqomhyOPzlq14K4UlnQQmQ1qLuaQgKxfFPU81PWxsIX47ItcSU= X-MS-TrafficTypeDiagnostic: VI1PR0802MB2557: NoDisclaimer: True X-Microsoft-Exchange-Diagnostics: 1; VI1PR0802MB2557; 20:PmuY0P4ukU1xw6urakMfnA0wuW87CP0QXKAzeUCKrnQGzFrPTKjkIhgzUSGPh+Fe0Oowx+A74OQu1hHFWN6K4YhZwritQFrLrBuAqG1e2h9iK1jZ/msQcWDx6wImnmECKO4pcr/gkGZD242Sc5eefBe7PDWZ81cP7gcHFKBpp6Yw0TcHVy46mhW1GW4irXKbXG023irjRw26isv/BgVZWOd/rEQHY4QW3Ehew2EeONuPLlDthaoNAxdCz0UOLj9SWVOEPNAG8NwHzskQw1KFzhP4c/rHf4tmT+6Px0N4/YzFGul3opH6eGc9/MfgAoPA4PTvuUIcCouT7J3+BdlA2w==; 4:+o/Nw8frrVKpJmmohupI+M617ZEOlqYgwhytI5uB3Ggd82rCSl9DouCxUsy0heOr1n3wgdiIeYLXB7RvY/cwBLwxgi9SUdellEqEzHY3SxDem1kyZaf44JangX/LGo2wkSr2oZAxR4/A4ujdRwd/bqdt4yi6sFizcFWMH1/RIXY6ffhwfu5SR/qoUlJsPcx4Vf58fPz0RlyE2yYbWcXAzilixaX8feGKm4qr+TVs0IVMjNShOmWO5HcKR2PNyZ71bx4uwChOS6XlhJxXav511Phu1PoNQjr8DaP/Ufj3rgbn/J/tsMJ+/Lc80LWAUcq5 X-Microsoft-Antispam-PRVS: <VI1PR0802MB2557975CD4171A6D183D055DBC510@VI1PR0802MB2557.eurprd08.prod.outlook.com> 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)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:VI1PR0802MB2557; BCL:0; PCL:0; RULEID:; SRVR:VI1PR0802MB2557; X-Forefront-PRVS: 073966E86B X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(1496009)(376002)(366004)(39860400002)(346002)(396003)(136003)(189003)(199004)(6116002)(316002)(305945005)(478600001)(25786009)(3846002)(53936002)(1076002)(7696005)(51416003)(52116002)(76176011)(7736002)(72206003)(4326008)(66066001)(6486002)(47776003)(68736007)(5660300001)(7416002)(7406005)(36756003)(8936002)(446003)(50226002)(50466002)(106356001)(16586007)(8676002)(81166006)(81156014)(2906002)(48376002)(105586002)(26005)(86362001)(186003)(16526019)(97736004)(486006)(11346002)(386003)(956004)(476003)(2616005)(921003)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0802MB2557; H:e114479-lin.cambridge.arm.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: arm.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; VI1PR0802MB2557; 23:pA8l/SkSqiAgb2xqmG3y9hhefjTe/2HQhF1BWGm?= =?us-ascii?Q?CgIN1ygepqD0OQAZ7AsEOWEN9XL8Komo0BTKJt0jei4vtAGYATQ2UjUzg0/c?= =?us-ascii?Q?IBhPmiGDWzVXCRNcJ9oUd2mE8A047DhvFukBzxMqLHuc8YJHPLjc4sSIdvka?= =?us-ascii?Q?I6YeqX99i+ktvrMxIuRoYQUICKCVFMAiQHKZMvnPzC5L0fqyX+xCvulzIpNY?= =?us-ascii?Q?XigJPbq1p0J2C1jE/S0cPvxKyqHnXL77vTbYTL6IG8vWVK+3T2SoDTYwlabP?= =?us-ascii?Q?VzHHuVgNlMTuFGz0Np71q7yMoCRXEO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?= =?us-ascii?Q?tPaGloQBwdCN6NpTYSV/84lLrKgGmgkgTelFAIvhfj5Mr6b4RNizlCs5YYUP?= =?us-ascii?Q?pQvkvrvu1fpS/Q663kQI=3D?= X-Microsoft-Antispam-Message-Info: +6s6xhVhccTEJz1nV7g2NtHHmUHerMd8BUu3JEIvz2Znjbcpdb9TQO0CMPMbw13Q1gtgc2kMQ1OO08LWjz1o30hPyLiOWGlYsH2OrT07wkiExt2o1AvQG62E4UgGjkDeFMUN584tsAeKW/nGINVpNRlChI1MuxSjUs89+tE24GfIrGP0WQhudCuS9t7DW19pj1aAP2jU0KQiX2Xgy4fZevZOLrkJBtQ95KT8wD0U8J/S2W7/iuxrEU+VuND2HH8008XyT8lXzAKTlzR0PgTHVaMqpf7F0vyZMnyyktGrejVNTciosmSJuMwMwvGQO+wcJwLj5vhzn/3t62FROihLCIGUkmXPvT5niOQO9pMlhik= X-Microsoft-Exchange-Diagnostics: 1; VI1PR0802MB2557; 6:+eBt7Al/ce4TVC+yY0DzLvhUiNG0AS1Qsake20duNG56UIjids8d5IGljDhxgI/EHBu5s3248ZcDtXTWaRqw13X+l50S1aIRFb5Z0sHfeO7Xi4fCvDavGg5s/NqfwsJgE6WKmC/mkCYPvwjTxvNxzkEiTX10x87NLdzr9O0jsexJ43ziJC45/WbUu+oJRylotu+/cphIhdpNUcox+Ap9SkAX4/wNrt/zOXeaT5wnX+Wf4r+UgtETquMT+oadhWAmi3jEQUeyNCI2PDl6BdlZvtqkgAGYgyuifaYjTafYKHUOGEi23TD8pk6TrmaKYpGhPGTkfjsDGt0nlJSLYQRIAojXfzAIPtW/FlcE1F2iw8LhCLD4EPP07Kwrkh3E3Ofw/lmUO8iDdfjiFapa3vxZtq5Z9T7Nfogox83yf17tmL6JIDT0nSI3LqPon1lia82YR0OvEhaveu/yuEUIhoT1Fg==; 5:kbtkp6XpHJc5DtLVTeFxIrZkW/GqfPaAsd14rbBrhf04bxAF9MB34HhJfJ9cbxdCJjROobZpE9ZOTgAUIbiXzWWsdyQ8kapYASMwk32//H07MtZb0Rdx148adPvdog+UoyACx52XDr6dvD2qSEqGOHSLwBLJwEBXxPiP4Lc/a4M=; 7:PY/jSWeMdoi5ehqd7R5s+1FrlbOeBBuHFN3LV9KSPhgESkzeQJzJHcshrjMSnN9yy7i4NNUwGNKuQwUzBgKAopI5ShlOBfAWWEXLfC7l0Gye1bDOYQToUCLLLgHh37n77WprOjDgvLo+TrCiSjCZ8oYL7muh1g6EhsSJ1A6ybqd2OTP86d4qrNJG7zSZ7ePnsqt7Xe5Uu8DLUl0Hu3l9iWDk5fAnEaeaWZxLJGq2hf64O0T/u8Q8V20kqYQ9LTxR SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jul 2018 21:17:05.3641 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7e8e1394-e093-45ff-ff50-08d5ee8625a4 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0802MB2557 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: nd@arm.com, Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/gpu/drm/sun4i/sun4i_layer.c b/drivers/gpu/drm/sun4i/sun4i_layer.c index 750ad24de1d7..78f77af8805a 100644 --- a/drivers/gpu/drm/sun4i/sun4i_layer.c +++ b/drivers/gpu/drm/sun4i/sun4i_layer.c @@ -35,9 +35,7 @@ static void sun4i_backend_layer_reset(struct drm_plane *plane) state = kzalloc(sizeof(*state), GFP_KERNEL); if (state) { - plane->state = &state->state; - plane->state->plane = plane; - plane->state->alpha = DRM_BLEND_ALPHA_OPAQUE; + __drm_atomic_helper_plane_reset(plane, &state->state); plane->state->zpos = layer->id; } }
Signed-off-by: Alexandru Gheorghe <alexandru-cosmin.gheorghe@arm.com> --- drivers/gpu/drm/sun4i/sun4i_layer.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)