From patchwork Thu Jul 13 16:25:26 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9839745 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 EF0B9602A0 for ; Fri, 14 Jul 2017 01:03:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 067822876E for ; Fri, 14 Jul 2017 01:03:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EF7CF2877A; Fri, 14 Jul 2017 01:03: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=-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 7DDE32876E for ; Fri, 14 Jul 2017 01:03:36 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9DF026E72B; Fri, 14 Jul 2017 01:03:10 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00110.outbound.protection.outlook.com [40.107.0.110]) by gabe.freedesktop.org (Postfix) with ESMTPS id D034B6E696 for ; Thu, 13 Jul 2017 16:39:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=axentiatech.onmicrosoft.com; s=selector1-axentia-se; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=DCYMi0heNnOMG4MogPpXPxWE/h1yh0VNufS0yYKW0tU=; b=ZhEA3Sc0/C/RljpAQzeLJQAa9iEAPt5QWe7fUxJ9+bs0D55VHJeGKhhQY5k3/nAT+DX7EPnoYvkYDYn62u96tg9Gt9xBJfUBhWRdpL9FYhH7py2ui1F8NHG61K+L45771+dGhah2srMgNzcBRSP0yenbPzzuOPrclpwIOpwJcoQ= Authentication-Results: vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=none action=none header.from=axentia.se; Received: from orc.pedanet (81.224.168.30) by HE1PR0202MB2556.eurprd02.prod.outlook.com (2603:10a6:3:90::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1261.13; Thu, 13 Jul 2017 16:24:26 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v5 02/14] drm/atomic-helper: update lut props directly in ..._legacy_gamma_set Date: Thu, 13 Jul 2017 18:25:26 +0200 Message-Id: <20170713162538.22788-3-peda@axentia.se> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170713162538.22788-1-peda@axentia.se> References: <20170713162538.22788-1-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [81.224.168.30] X-ClientProxiedBy: HE1PR09CA0048.eurprd09.prod.outlook.com (2603:10a6:7:3c::16) To HE1PR0202MB2556.eurprd02.prod.outlook.com (2603:10a6:3:90::9) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 90af56b0-0acd-4ed0-4a61-08d4ca0ba180 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(201703131423075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:HE1PR0202MB2556; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2556; 3:dCpSfIdsd5lcUWnHYODpNCwXt9u1MbDfe/t57fgXq787ca+7lJmrX+Eh5Zqed+8/Rn0lOQqpFakTz9SiKzbGh6dhk6bh8s+XAyD8xb4TXWUxm0u1fcTMafANa7cUtJU1AY7IIqt/WR5Q2XbZzK+2CGWzG/ZkRocNjs1mvrss3LVWCIFQ3qVBx4n+h9aKBKKMbZtzJZaA874yJIIZmStnn5Re8pBq5RvQaNPhGGxCNy9cuO0HbRNzYWH7T2r2lr1Dou/46Plsr/nr1eDM+TH8JmWnSJNahzk4VQdxW3vrRpmWGUZyBOdrdy1ODAbCxNWJvxkGkbrOYK/i+YD8oxgwbFRHlTWBUgCcFwnEgRYu8i6RHiedimJ0VaDwsfzvd1pj4TorGXYvoa350zTZceqZGNYQmLbY6tcYfsNR9JiXOxyrT0PxzoxBxcrOBh+axkUVqzX8LwvovJss5zLS4ediZVvT8zWrB0G1vW4NbF7VfnDkjns4TQTFo6Bhai21GptYWAIybBkse4W1T/tfUribO+Ocj/WrdBftvKZTVUTInuvuw5ZGi8Lu15I9uAesiDacRivmu1QbV7dOaAy03vt6CgXoF56gB+snmQfLHHgv2WcjpOkQr2e1CxS4wjXMh3dlm+7723IsUZgaNibd9LANlOa8bqnIt4x1SmefVYi3KEnZjr5nKQjFwIXVRm+F2VRdltRyj3D8rwr5buk3einGag== X-MS-TrafficTypeDiagnostic: HE1PR0202MB2556: X-Microsoft-Exchange-Diagnostics: 1; HE1PR0202MB2556; 25:jYvGc4xyryBq+cgzDCeqh7XbjsHBDpsf2Brjr24Z0qigCqgr550yXWv3dERQnVTkKKF4/mykcRd6CQiWrVTc9yRY/Pq5ktKP5znQwDok6bowvrQOMbgqr90a8tHyrpVh/Lw4kkELV2mQUEpIbiVDcOeuKsjxDrcPVT4EYEK18dOwaw0rXhf2hCUZCw4K/32HIMy4SrMm7lSuB0F134HnGLM892mdiYtObnWxTqRbtJLd16US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u86Nc8pVs2DQxE3sbAH9calvDJKATk08f5ta9LSRA0Zy6ckgEq4NPh7WSwnbRvQ6EQuhRdv76zJ+YsQz0MM7tJ/UqJzIb2yB5XHsOSOnT70JIvaezk924wUddoqompEgQ01WlN7xTX60TYrt3iBw5JIBdsTSC0Cmfj0yUiAdOcTLqPfUyLbmNGM9ka3FkyhaN6O4gx0XRsVgUY7ZGqYrUmML8FqCBmF+TfB5QyLTmBfZh72jYxFnaFsgRaGw5vbtXvK0wet4/0kRx9CZMt2AuVZYyQ2lSV0zv6NTS8d2A4zKcINvqCWiPFQFRf29+s2K8t97HnW/0WzWgEgwkmD3NBCzhV7SpvXW83xFA= X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(167848164394848); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(2017060910075)(5005006)(8121501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(10201501046)(6041248)(20161123560025)(20161123558100)(20161123555025)(20161123564025)(2016111802025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(6043046)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:HE1PR0202MB2556; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:HE1PR0202MB2556; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0202MB2556; 4:REhD0LZRhD7z73Soe130kFzQPQfpK8y12h6brnBT?= =?us-ascii?Q?tjXeMv8ZXmu8UHD/iwQ6xECbZimlgONFHfR/hWYjttLDzoVzNoxSY7y9S6Iv?= =?us-ascii?Q?pUvBnpj/jqbbwQsNgA4axrqm+RGTY0KuI3a+9A71SrX96lFJm5eH/+EwVTKa?= =?us-ascii?Q?122YAxmg99n9mXUIRf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LD8?= =?us-ascii?Q?pUFMO24niuHoLPPKIpRbdX+TltkyjW+pvMxqV+FVT9Jk8qadIjeTPJb4iBhY?= =?us-ascii?Q?pwBRBz7aekSX2QVospIqogs4FfjR/nUuQIk+MJ/Ct4DDbe7kbgwE+roXj90i?= =?us-ascii?Q?a+NE4HstzfHsfcb5iXo7O3nqMi1zRPBeShxcNyJW4w6W0a+3+lz1HR5GuYUJ?= =?us-ascii?Q?OoeYoS+NRyV0YI8nn7sZ5UxjmgJXFzGTQw2hUeNLzvJ4oW0+Zs602wXHqApD?= =?us-ascii?Q?HUnZu5zXXdaELZ1Hfv0udVg=3D?= X-Forefront-PRVS: 0367A50BB1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(7370300001)(4630300001)(6009001)(39830400002)(39400400002)(39410400002)(39450400003)(54906002)(8676002)(81166006)(5003940100001)(50226002)(6512007)(6506006)(38730400002)(110136004)(7350300001)(53936002)(6486002)(7736002)(189998001)(5660300001)(305945005)(4326008)(25786009)(2361001)(2351001)(33646002)(3846002)(6116002)(74482002)(48376002)(50466002)(36756003)(86362001)(76176999)(50986999)(1076002)(42186005)(2950100002)(6916009)(478600001)(66066001)(47776003)(2906002)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR0202MB2556; H:orc.pedanet; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0202MB2556; 23:7M9H54/dZnHQTavTIVPa1l+XU0cBIYd+SGLvfaS?= =?us-ascii?Q?sm5iF7Kckwl2bSJR9V3VUcp//HxC8Xv9mJJUpbHfEXTPZIiHARabfhjItFzd?= =?us-ascii?Q?V8tdCnyKtsUNiq0blC4gg0P1cnvRHdwqf+CBiKO2yejHpQHHKLGQuHevBAEi?= =?us-ascii?Q?ksMlH04LzvhV3bIAqFI6vvXuPuWLyjpyRFX+m1z3lAEj64d2IldJTBlETh3M?= =?us-ascii?Q?0L102UMxK/s/PXspdCduNHbO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-ascii?Q?OdbVu+tDKffmh+So/GPABa9WuQlqITwtGNyRToBggZjp2Hw3nBNjuUQ=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0202MB2556; 6:Oa4csMJtsEFbxO2XltJKvgI9Aj573NpxgmUvqoGo?= =?us-ascii?Q?ky6EEpIck52NBwg1hN3iLJMNLw356DubrfOWd1GbhPj1deborx7rO6ieu5fc?= =?us-ascii?Q?96ZRwM6E93LhqoPnaBUZ2BO0Wz8Zijda9OKr3GWKkHLQKXCDidazPJuSdwGI?= =?us-ascii?Q?K9skLYdITCcVaeYhAXYLCc87dPm4ETO/My8ZhxI+3Kv7HbgmMgVyXskgnP2x?= =?us-ascii?Q?anjzAazE02Tnl9G8EuP/wzmX9hsS7qyHyd8xkKgeaeVO7bIYJ0aoCrssIlxE?= =?us-ascii?Q?SEdgi89im5KIRxjqufHCza6MjD1TCMK3poZjcKfFyxqJuUhPdpzqJDaiwpvA?= =?us-ascii?Q?4qjnCyqedbbQaQ9S+9PwAJW8u723mqwTmOXXw9yiV0374VDx8TEIheCzAiz5?= =?us-ascii?Q?sAX/uGLKGSOIo7nTfzdIM6oEFMNkzj818TtH9vsfRmcbEsYRm4z686rVSoWO?= =?us-ascii?Q?Fy6yntf2rHRDQqvdc8bUM3w9dM6mkGC1kxqRD97TXTNUPUuKtlk3TVSGJw2o?= =?us-ascii?Q?QlcpL9qqgL992aPl0QFjeUKiTxBn+9xhfNAqZOd1HTdc7WfqTMuGrblt+Um5?= =?us-ascii?Q?hc2AEwAhnalyT+oCPL3CpvKWAGluu6Ph1xypfv1IW7JGkbCibjwM4iK9XOAH?= =?us-ascii?Q?FtvOFUr0E0NcKo/SLTMxzhIlvLHcfOlKDBx1AdwUSpGRmdMVu3qqwuHeR0dF?= =?us-ascii?Q?CcYdfErPQY8cI33GK+igT8qA9o+l4a5KvQKzZcSocsnecxnjAo7zSCDQkL0B?= =?us-ascii?Q?AQDrO+kTXd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Lzn9NJE0NngzVeOT7EbgtMReyCm1esnHqSXW7DM7V5aj7DfElaZr/uJXGVVRj/F3uodYWXba3U6d/AB3S5x350QODe0H6kdzuND6GxIMi7PNRk2SUVEcifBmMvWAguqoSezkCfYtKQZIa7Z6KK1EmLisxXG0ErbJETm/bdzRoXnzFFyGz4EnMGQMsouQiyFN9WviCRbXhu8MO77Oi4qExySksY03cHeZl/2vi4ZfvqXSqGbRHbXMv9hWyIiXNYeKLK6969PmLVUmHOnrIVwjBSkfkqFlIRoDCRuKv8M5akURrJ06fB4N+uuC7LgxcUtKeIWv2HksYKadow5D3QUN3WiQkP4sT+a0rdWGe8xh2M/E3ic8TVQhMuAhay4XLkkhk/0uSa5SKt+/4UUOhz6r/DlzpMwnAo6ctJIVmpLRrhRDjLjd3TXKkdWm1xgCk32ibG3m0SsPf2cVkxPgjRMYpt+QTO90GxyG6kRX6UREdrLlCj8yn+vgz9+BnPvc4jsA1VdBtjrm12tVuJ8LUvZ3Hqe1/z2p/O2Y4NmnbZixH3dOVsfq3BNdzORT1M9ZVGlSg3HwrG/w3Bkl7rctzjf7/Ec3LpwSYjsNctKatlvgQixYWqzlXdOaaL7MjtO1X5AS3MwkH31rrc9M4vpzVrUBY8PhFomry2EDR+FaEHlTdslIxeOWMV6DG1tdjDgUgHnf0cA3ZiGIv4jjQ40I/RCGQqGd1F5moPulZCI6Y2VmajbMBR5yIYEGXPIz2WNYdraW2bc+7V/1dPlqFbEM= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jul 2017 16:24:26.2666 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0202MB2556 X-Mailman-Approved-At: Fri, 14 Jul 2017 01:03:04 +0000 Cc: Boris Brezillon , dri-devel@lists.freedesktop.org, Daniel Vetter , Peter Rosin X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Do not waste cycles looking up the property id when we have the actual property already. Signed-off-by: Peter Rosin --- drivers/gpu/drm/drm_atomic_helper.c | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/drivers/gpu/drm/drm_atomic_helper.c index 0fed20692df4..a8f19127c29a 100644 --- a/drivers/gpu/drm/drm_atomic_helper.c +++ b/drivers/gpu/drm/drm_atomic_helper.c @@ -3769,12 +3769,12 @@ int drm_atomic_helper_legacy_gamma_set(struct drm_crtc *crtc, struct drm_modeset_acquire_ctx *ctx) { struct drm_device *dev = crtc->dev; - struct drm_mode_config *config = &dev->mode_config; struct drm_atomic_state *state; struct drm_crtc_state *crtc_state; struct drm_property_blob *blob = NULL; struct drm_color_lut *blob_data; int i, ret = 0; + bool replaced; state = drm_atomic_state_alloc(crtc->dev); if (!state) @@ -3805,20 +3805,10 @@ int drm_atomic_helper_legacy_gamma_set(struct drm_crtc *crtc, } /* Reset DEGAMMA_LUT and CTM properties. */ - ret = drm_atomic_crtc_set_property(crtc, crtc_state, - config->degamma_lut_property, 0); - if (ret) - goto fail; - - ret = drm_atomic_crtc_set_property(crtc, crtc_state, - config->ctm_property, 0); - if (ret) - goto fail; - - ret = drm_atomic_crtc_set_property(crtc, crtc_state, - config->gamma_lut_property, blob->base.id); - if (ret) - goto fail; + replaced = drm_property_replace_blob(&crtc_state->degamma_lut, NULL); + replaced |= drm_property_replace_blob(&crtc_state->ctm, NULL); + replaced |= drm_property_replace_blob(&crtc_state->gamma_lut, blob); + crtc_state->color_mgmt_changed |= replaced; ret = drm_atomic_commit(state);