From patchwork Thu Jul 6 12:20:36 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Rosin X-Patchwork-Id: 9829261 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 6DCD160317 for ; Fri, 7 Jul 2017 00:43:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5D8491FF82 for ; Fri, 7 Jul 2017 00:43:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 51E1628544; Fri, 7 Jul 2017 00:43: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=-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 2CAEE1FF82 for ; Fri, 7 Jul 2017 00:43:15 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 401046E6B6; Fri, 7 Jul 2017 00:43:10 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0117.outbound.protection.outlook.com [104.47.2.117]) by gabe.freedesktop.org (Postfix) with ESMTPS id CA7D08997C for ; Thu, 6 Jul 2017 12:19:47 +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=2p1uv6z0+gl9LJY7l+k4PwA5Kecz3tsMnGK1zxF/uww=; b=aM+25quPOqixcYXe8xMvqSLLDgrhDAJwN0Iv7n5Lf69I1ivqRNiBfnB6cEJfP4jCjVyuZDAgmLYwJ6UV1nEh4YG0ptE80QQXPYNVUlSH4XykvIwAC7k/Gq2X8IsIp2IAaRoq8nvehNTaGjnwVRWhWw1rt+Wny1pSMPYQ/+snv9I= 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.lan (81.224.171.159) by AM5PR0202MB2548.eurprd02.prod.outlook.com (2603:10a6:203:6d::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.11; Thu, 6 Jul 2017 12:19:43 +0000 From: Peter Rosin To: linux-kernel@vger.kernel.org Subject: [PATCH v4 02/14] drm/atomic-helper: update lut props directly in ..._legacy_gamma_set Date: Thu, 6 Jul 2017 14:20:36 +0200 Message-Id: <1499343648-29695-3-git-send-email-peda@axentia.se> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1499343648-29695-1-git-send-email-peda@axentia.se> References: <1499343648-29695-1-git-send-email-peda@axentia.se> MIME-Version: 1.0 X-Originating-IP: [81.224.171.159] X-ClientProxiedBy: VI1PR0801CA0084.eurprd08.prod.outlook.com (2603:10a6:800:7d::28) To AM5PR0202MB2548.eurprd02.prod.outlook.com (2603:10a6:203:6d::9) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5093c2d2-db1f-4895-8313-08d4c469496f 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:AM5PR0202MB2548; X-Microsoft-Exchange-Diagnostics: 1; AM5PR0202MB2548; 3:GObY7DzVLvZznQbVpq3mX7BbY+zNxkdEA3FaBKZAkfP0mx/l5R2cmF0gVOh8ryu9pRUINaR6zT4Hn4BJKWy8C2DHMW9GqGfF6+WMycD0cdBvXF0KAGzbOcd3Y2CI/g5Qdobp2a7G53c6oDg9tjCKHixnIhXHcxjTMDM9REy4OWKUBHvlSY03W1t3RcPbxc9SMAR2QJEfLsc/MYwg3PZviYwwRAipCaUj43gjFB4ZYQDpJj7mbQaXLRRyMlhmTFCs6YAD2pEvgqrpuyfWiczCknM7TTospTtr0HMIxsJWC54zypfilPCf47ebOOzqgtWcBYFay1zA6KBHZxsPOqdCMqZ8H4ytcFfnbCVgFz2mophm6MoZTopbkdWpPHP8pNZ0KRYe1872F2LP50Ko5HIJmRBcQS8lU1hVIWPhvWyCtSkI4LPYYxqqoIbNX4VByJ6JUtoC8efKGCvLvOHzbgyJGs5gKhLeFOrmkMZZWXY2oRMkur4QdBXyjs6Jhqbh6D7jN2qjDzIAljHQLs8ILX+MSnnry9xBtn5wSLltSj0OzBkAIo7Tn0hCEDqNWlB2s/AayDfM27jBlkxzgBHon+JWYPeRenWpOsjdOVho07PLvNZ/7O0dvsucUUyMT58SzhaLyFbpz+O9aI/pPFW4qo0lmLw8N8Zqm3hXOcNnfiuwVZDRHj3iCAjCqNDOYti9v9cozxn0fY64Y6PApypoXCxYWw== X-MS-TrafficTypeDiagnostic: AM5PR0202MB2548: X-Microsoft-Exchange-Diagnostics: 1; AM5PR0202MB2548; 25:GUVhdEAjsDNSvUp+8GZO5+mViMlvrevaL8VsIllcz2IzTI61M/mHPqVWR34fbyP5ze0CoLS8qO+pKjYK2NiRi11od9PeOmjuQYfL/UFiusZFAcbuj39tOSs/hxVWsbhRNTWRk65NklYZFo072K3r77uNSnx+v8VY5kP/77CiM0lpRVRsn++unXwSMYWCxBFihjOfgez7D3EYXeVY6Z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+6IuGUhTOvW2adK31+IED4KMsou0e/D2FtEv6RclJ0uEbSaKxlHtkbs7FlgL14c4Z0lUBOipEylqv8ZPp7fydX9IKfMs//d0UK3YoJEl2VqaHo6BzVQuaDBAfP0IlNTnXqcxLdWvbijLqe80nUo9w99GKtL8LXwZc3LC1RdBz7FHTCmtEOnjyL6j7A2SAEGzR9hGeakAfaW9CDma/R748FJnF6A8CL4QfSwR8A4UQtOB2sEueSTexC0wbZai+cqn19BMeUXrE0d3go7CHqKxhsgx+JaSRWta2CbHQk8A0h+tMqupa1XVhDVX1sqc3U5RQfa2nL4D1hNp6jK+wtUeOkr5dc012zr/3oY26QDqUlfDJE= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(167848164394848); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(2017060910047)(93006095)(93001095)(3002001)(10201501046)(100000703101)(100105400095)(6041248)(20161123564025)(20161123560025)(20161123562025)(20161123558100)(2016111802025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(6043046)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:AM5PR0202MB2548; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:AM5PR0202MB2548; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR0202MB2548; 4:vTbDKb/xi8bW41epfKNs9JJgSG4ad/OEbXaCUkrs?= =?us-ascii?Q?eLEpzvSltyV0jBeqMhVJ8ABP253DBF58fkYHkMDVvOMze7UevoJQGIp4AMEM?= =?us-ascii?Q?z1qBlSt0oToKKa52AtPd9bn9Fmian5qMR1HmwTGzSboxTXSE5B50Z8xdF0G/?= =?us-ascii?Q?BpxLHyW7TRtcjNzl6F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mUNJYvv?= =?us-ascii?Q?FriaMgbKRpMv3AeD8Gk+Rz/OFrYSvxEKQzfCmPdctMJwpfI21ZEVz523MhIO?= =?us-ascii?Q?uPZmgZ5a5+9KC5NV3BtFRAm9S+14DW806yaDBjxA6g/Rdpv35ETuFHiB22G/?= =?us-ascii?Q?YGJZb7Hb7OQYuBo/VtPl/y/fl0F/AJeWpkNEkLNunUovDVXcDwI7ZFcDFwaA?= =?us-ascii?Q?/tldQH741ahQnQJoZ33IH7tcNaetnQcbuaxwgdvMe37uXeVMrlG2dLgl9vYT?= =?us-ascii?Q?MoxTgr7crwM1wK0C/8LANjo=3D?= X-Forefront-PRVS: 03607C04F0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(39410400002)(39400400002)(39830400002)(39450400003)(6512007)(66066001)(33646002)(5660300001)(2361001)(6916009)(2351001)(478600001)(2950100002)(6666003)(54906002)(5003940100001)(38730400002)(42186005)(50226002)(47776003)(110136004)(6486002)(305945005)(50466002)(189998001)(81166006)(3846002)(76176999)(8676002)(6116002)(2906002)(48376002)(50986999)(36756003)(4326008)(7736002)(53936002)(86362001)(6506006)(74482002)(25786009)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:AM5PR0202MB2548; H:orc.lan; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR0202MB2548; 23:uoPnzu4JRjCydVqVhZ5n+U+U3xcVgZjZLFIb9xm?= =?us-ascii?Q?vPFeRnpBryE/UNMplkg8wjxgIPxUq1j/ckyv73hn+PyvA2wu8aKjpVo4lxfy?= =?us-ascii?Q?a/iIoF6RpzVzNKIjCorTtDKz7XIgtoeZoJQnLMZHIhVm2hIWGzi6S+W9jpCl?= =?us-ascii?Q?p8TvdrbhyiIEH8uljZWwQqtJhMc+Li9j3PCm3VvjRNV/LRsPPDBYvzLLuW24?= =?us-ascii?Q?ZwH2yHAxUCYT8MbWyW7xmHTmmprjdrangB+mGW9N7Kzs9iI32L4LjFWKYVq8?= =?us-ascii?Q?IxXkG7tp7xuyWZrTnlarokse8k/DTqp7e/6T1sdsrItA+5+rx1hpPKiTLMEF?= =?us-ascii?Q?giUtED9TilJ3lQv2v/9VIPMnPorZBDDgjIqpvmAs5YKONNhWe92a2Brx7oKl?= =?us-ascii?Q?YGQcvguqUTbUT4WS4vdrRegMuuj6NBbgWBRWM+6D/+iIHyRuiLsfNsrGIWP1?= =?us-ascii?Q?ah1WnZuqbAn1MDifvThAcQHITrAISeZLuhwrn61B8vJWQ6RWvYMUasbFobo1?= =?us-ascii?Q?KVJGiNgJ5+coJyIhVyA8SPvUFaWzPWLJ9Ifwd8jTZmzT9jHtQ0YYhsqsACGS?= =?us-ascii?Q?v+yQV2tGzmwzvU2STHOMnMoOaQaqflrj9PGe2gs4Qg16TCcvM504xrh7xUcu?= =?us-ascii?Q?RPJHMqo0OHkncg3hm8MoqUousOQ7HvBlyK/68BkvS8c6Wx7S8i/Hn1FlEmnD?= =?us-ascii?Q?roFNPATah3v58Ey3WW65p4/oyaBUKuusAybv2j0b786HcZ2/L9bnV+NU4tNa?= =?us-ascii?Q?BoYa7s/a3GXcLo9OyptY8HJcnrUR7wsHQL8Ju6wuynP21pOPdUXOX3QIW6r9?= =?us-ascii?Q?4yrcvXMEOzZf+tLAurae3endttm0Ip/2AACgMGIqVERqksUFUX3HyY7Dkjen?= =?us-ascii?Q?n2J0iPuw1wyoMExe3igOjBZl6g0xnjkbxvBcxZH7SW8gnxsx67ed13XhO3oB?= =?us-ascii?Q?uHIj0Je5/7azH4C97xzDoT8pvnToC49OtV473yLo5gqHqM7+L7ReOAsIwF5k?= =?us-ascii?Q?FA+4E9ohg5L/TXs3mRQ+McTRW7OXfXMWywQP7TzzYLC7SwVlbHRip4rqCl+X?= =?us-ascii?Q?ZHD+k5T2ijS/HEfPnmfsjnL7Nxta1EiG8NpuU48M+MpDZEo1ZaA=3D=3D?= X-Microsoft-Exchange-Diagnostics: =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L03jlc0GCKR6I7HL68V+yMFZO0T?= =?us-ascii?Q?YulINEttb2UB8vP9P7fZ0TxXePUZfK6RCdYKrUxA9gGdf/V0XFLk9wii1GdH?= =?us-ascii?Q?RWrUw+Yu8V5Lnn93FOGNpzmicK5lDbwG5TBCNt6Pq5SVkaB9hP+3GE2r1cCl?= =?us-ascii?Q?7HM=3D?= X-Microsoft-Exchange-Diagnostics: 1; AM5PR0202MB2548; 5:duH7vOKV7tuEnf2b0P+38hEItjgdmiRvvZ+k0k6tjeyJ5LQqg5v6ol83WqBQkhFGoQjsXlf4PYGOF3j6e2eHGOdF9oqSm4KTL80Drb/rl//++xiEuFr1H0aW0H9/7JAxrzKddaUTtJOzak+X2i5uOpuE03gmJQTzMKh7yGzdmRo/hb6FnJTWgyswcLOKTkuNIReXV7+ivWi7zzhVNlPfMA+U/6KrwcaSjo86WuX6lLxUHVJl3Qztow1zHmlwDroavEDk3rEhssxRI7hHKWm2ZUyRk34SZf36Xozaaz/A8O0N8LQ1GBH8LHgzEjLqxEd9nZ84F6ILNs/dWV6gq/KqPtvgiTiKbyPZqWKnZ/t5Ostsxz1RFMUryG/CcIuUD6fdhV17TwnfrBBkjSoeYiVCeLhKVffcrEnFkFnkLKWsw8PA42Y0F/9RP+xaCyrJ3t/s41TmT08rlHKPFLAFk86/TwbnpJ6ZrpHWvNIlOoGkybSyTeTLK5v9oOrG92OI02Rp; 24:uu6mWE4xL3E74Rzjr8zSeYtGGeMBPF8v+rOio+9LY4R6rhu4rp4DFSV+x8PJvvVvFpnHhX98RY5L/ser6Cd3NfaKsOmfnf8wuacZNEQk58o= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM5PR0202MB2548; 7:AXOY72p76lNqiOOC21I7LPrknkIjMOOsFDIyxlg0ZWj7H+haAXZFF6qA54IZxqp0Id4UiSQME1ibz/WHJehvztyfP3ADQG4yQi+bgshMxt+tj41iBbcrkEbNT0b68w94izZPoRwcoysblmkVQyjBZQ70SO/au0JaBAgMpsv318ycwcPXYqW8G0FS23diI73xPMnfkzd9Hw1yNz//HoF9qsajuZC4s8a2C1DZvnTDrr4TCBo/Zp1wmMmXCz0csEJx+/bwmW2hoI8OzfhGTjLLJC/w/83jwOV5VUz1OMJQ2RXZgR9CQVRT0pUQgyq1juJEKewD8gsIZtZFRFOA66XKIFMq7Kh0OwFVfEYXMEPUlMq40+PEtw1Ai67YxU/GyDH6lCVWVRF1dlMFeyX2pId7umjaWHfyilYZbAK2B3Z6TlHS06st3PaT6v7Vq1izZtI4zJmfiH18zda3fYTakirzFzTglwh/ydeCstDh4UbcjnaD41yYu1SA+Va8WWW5wbLbMlGy/6vVrSRsbvb9DvFk/u93DQcsENtNTfv6JAwaXg2PDqjy1Hk3AChorXkP/Z1nPS2tBoiWeLjorYi2k3TF+qyUM5deEuVVR5fy3Z1XDjZqSvvhbMbjo6uqyzLwNT+iIcjpFC7nf6svHkhCDFQWYLwUbuZ/aDQwcxgP9B/tdC+d1yc4PwCI4cJ968q6oKUqojs/9q40+K3tHFJo1ghGg9W2YfENyl6j//Kb3PGN+PsTWuWCO7p2Z7BySsm+rAnDOOtwaMCGdmqjqlS3gXMLxz8XPS3YkzHRX0yjUYHnBRo= X-OriginatorOrg: axentia.se X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2017 12:19:43.9049 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0202MB2548 X-Mailman-Approved-At: Fri, 07 Jul 2017 00:43:09 +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 | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/drivers/gpu/drm/drm_atomic_helper.c index 667ec97..5a4a344 100644 --- a/drivers/gpu/drm/drm_atomic_helper.c +++ b/drivers/gpu/drm/drm_atomic_helper.c @@ -3769,11 +3769,11 @@ 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; + bool replaced = false; int i, ret = 0; state = drm_atomic_state_alloc(crtc->dev); @@ -3805,20 +3805,13 @@ 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; + drm_atomic_replace_property_blob(&crtc_state->degamma_lut, + NULL, &replaced); + drm_atomic_replace_property_blob(&crtc_state->ctm, + NULL, &replaced); + drm_atomic_replace_property_blob(&crtc_state->gamma_lut, + blob, &replaced); + crtc_state->color_mgmt_changed |= replaced; ret = drm_atomic_commit(state);