Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4368578imm; Wed, 30 May 2018 04:29:00 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLOjaj37r86vC3aO7FG2iZ1AltH1NBU8PsMe9okrBUm+VX5KGI5h5zXYy52L/ic9QX/S4Ec X-Received: by 2002:a17:902:a586:: with SMTP id az6-v6mr2516032plb.210.1527679740554; Wed, 30 May 2018 04:29:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527679740; cv=none; d=google.com; s=arc-20160816; b=ireZMOzasmg3BQOuWMHoUli05Rj+qzprCKmRD3NR62bsMTBVVOMH7zZon2WB9jveoi 5n2KfCRyZ7VsOHVMQqw89O/3ye67/+ZmFc89GkpuQxyVboLbEDPwDxDpxNuU9nAesHnW wsnUBtUj+sr2V6uyDnkl+ADhnEDb+/wy3CbvBU8iuCZ//U6KDTXwRSqpOLPmnDyLlpKK mKKjj5/KhEk74JaRUvOL9Jkv/79sLKkcWZdKSGOuq6hKqeOIU8mtzhd2To2f1qvU9Uq9 tMBY0WgRsTijQG/CVu8QkbNcE9RYqeJiVWtEGNKSeo3HMXtte7rvZsJ0PM0roBqZfnwj n9Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:nodisclaimer:mime-version:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=ndLhAAdVNZiGXqyTIsxprkGJVgb2wwOQ20l3w2i0E3I=; b=oaIIzgSTtbX08OZIPujOV4kFsdSlBT1r1l6lvIsxAgCZL8+u3QVO7Ev5ZkUa0LeTC7 iNsRMRGDW/osCvIBOKAc7eWkeu+nW2xPUp483Sg0IaY6TSTrD7uYQJuew0otlWBSXD4k UOqg+QTToiOXwSEQhF64ncPJTuVAydip8g/FVoKLFH6XbzCoRCpwcgW7rJIMRycAOTDe 5hsDQvauTpLKOXnkalH6rkiRhk4mTk8SH75EE/pic6RHwf9ocSB9RHV1AM7iTILIQ4hr 8ZmKtca0leHXf+XHlH90NajbeU4caUijKaiTP87OiEh6Fn4m4CtQfq0PNfGQhtdmCByc aIMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector1-arm-com header.b=ZIU5G62t; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n1-v6si34220078pld.188.2018.05.30.04.28.45; Wed, 30 May 2018 04:29:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector1-arm-com header.b=ZIU5G62t; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753198AbeE3L1K (ORCPT + 99 others); Wed, 30 May 2018 07:27:10 -0400 Received: from mail-ve1eur01on0081.outbound.protection.outlook.com ([104.47.1.81]:12793 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753218AbeE3LY3 (ORCPT ); Wed, 30 May 2018 07:24:29 -0400 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=ndLhAAdVNZiGXqyTIsxprkGJVgb2wwOQ20l3w2i0E3I=; b=ZIU5G62tv4iejfARV4OEL/1I+JmZnNsfztbVAxyTq+pXBh7eF971SvZZZfAYosm7/KaRNDD/JHVBULwKX1RR7jiyt3S/EtdulhdAdZad1c02H6qi8KBNjaYT6cw3S4aUFTc07rrBulVyksDHRoTMVooU8BTYUdisKQhH17g0vyI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Lowry.Li@arm.com; Received: from lowry-ThinkStation-P300.shanghai.arm.com (113.29.88.7) by DB6PR0801MB1975.eurprd08.prod.outlook.com (2603:10a6:4:75::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.820.11; Wed, 30 May 2018 11:24:22 +0000 From: Lowry Li To: liviu.dudau@arm.com Cc: gustavo@padovan.org, maarten.lankhorst@linux.intel.com, daniel.vetter@intel.com, jani.nikula@linux.intel.com, seanpaul@chromium.org, airlied@linux.ie, ville.syrjala@linux.intel.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, brian.starkey@arm.com, malidp@foss.arm.com, nd@arm.com Subject: [PATCH v2 0/2] drm/blend: Add per-plane pixel blend mode property Date: Wed, 30 May 2018 19:23:52 +0800 Message-Id: <1527679434-13228-1-git-send-email-lowry.li@arm.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [113.29.88.7] X-ClientProxiedBy: SG2PR0401CA0005.apcprd04.prod.outlook.com (2603:1096:3:1::15) To DB6PR0801MB1975.eurprd08.prod.outlook.com (2603:10a6:4:75::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(48565401081)(2017052603328)(7153060)(7193020);SRVR:DB6PR0801MB1975; X-Microsoft-Exchange-Diagnostics: 1;DB6PR0801MB1975;3:V0It1sMuJPp3OKVGxtQJRKasTxhSycBgD3fHq0kbLHV+aT1Xb/+ZpHsEl1KadZ5I7/bO5KVt1NvXOSsbvEP7JnSZoYlkJWPMTOntnpzqsQ2FRNHEgPGBOic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AZVIOGhZYynHfhtKNq5U6qdCP6qCzEkSpurKRsD635njsawpY66jQrDO/sLX2LhULaO14M9rTdbZtwsdttj4gh31HcQfMT34YP0Fgm2K/vPM/UhNyyr4JbaKAcExU2wOPELlSMIrS2HWvpNT5quH/vY/PAy1UN6dWBwSNgE1VYzPc5w++KRv3357Hf+uDd1qag4J7U/EehblS5FxSfjn0d99bIMW6N+pJomkff2KHrBHMDc/4OgbV7S5iug60DPMJqpCzoBYmvg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231254)(944501410)(52105095)(3002001)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123562045)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016);SRVR:DB6PR0801MB1975;BCL:0;PCL:0;RULEID:;SRVR:DB6PR0801MB1975; X-Forefront-PRVS: 0688BF9B46 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(366004)(396003)(346002)(39860400002)(39380400002)(376002)(189003)(199004)(6636002)(6666003)(48376002)(8936002)(8676002)(105586002)(50466002)(68736007)(2361001)(97736004)(2351001)(106356001)(50226002)(81166006)(5660300001)(6116002)(3846002)(25786009)(305945005)(81156014)(86362001)(7736002)(36756003)(47776003)(51416003)(7696005)(4326008)(16586007)(478600001)(476003)(2616005)(956004)(44832011)(486006)(37006003)(386003)(16526019)(59450400001)(316002)(26005)(2906002)(53936002)(66066001)(72206003)(34206002)(52116002)(6486002);DIR:OUT;SFP:1101;SCL:1;SRVR:DB6PR0801MB1975;H:lowry-ThinkStation-P300.shanghai.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-Microso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wd+r5XSCcjNeDq2o5HbVJp/dvR5j5vdO30CAVvbQ3DPDnhw3uXGkCv/zODo1kdMEiMSM9QzCpHB55snPQz0Qfr0GRb7e427z2Movm8AmgL5rr0g+kEj5b6Dn94wg3sANr0vDU8i9df8q0jTRnAtWEqAFA==;5:sOEeLSb/+lEm1wtLvRmbxMqE3dlUj+jtQw7J9tJfRA4GmLxz8aANgPnv90Jp6BArFP1+PAgbCdj2tyDmQvKC8UQGMAyXGhms/yoZNZY4QBmlnLJUG0Rm8G2ZMIOOgDrc2NiDIs2WJj8EEb/e2Qm1i+lSR2Yk6HrlttO21K1fF74=;24:SUThwUo+2XDp08HTFXGs8fSgThSZR9Pd+KL/KNLxUeAX6NwQUpbYUiG8C63nwUdMbU+FyDDn3agomA7Pi3Zma3P/Ra21eeWzkQGKkUNKU9U= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DB6PR0801MB1975;7:9KBha0XHwGVBhQBFjVrqQ2IlfqLZTg6Qof/0AFfw2A9393YA9NKzSCXelgeJzOzGf+6zoO9BF2VMh4ONlsJ1s3RRJJFrIWV0FCZr1RpQIVsD+G6bShKH0eC5cyhDnY4pwMakJRP/4FhHSH2KLR6WqtSSM31w9/s6KbOAM2md8erlXV5X+cgaTisA/POx8aHsTxbT6ZBCjPxcN5KGqvVLR13pWN9/4yG/btwDqKc6xAJN807slZd9w0JbtOZJQnm2 X-MS-Office365-Filtering-Correlation-Id: 8b94229f-350f-4d96-5a06-08d5c61fe77e X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2018 11:24:22.8909 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8b94229f-350f-4d96-5a06-08d5c61fe77e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0801MB1975 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, This serie aims at adding the support for pixel blend modes represent the alpha blending equation selection in the driver. It also introduces to use it in the malidp driver. Let me know what you think, Lowry Changes for v2: - Moves the blending equation into the DOC comment - Refines the comments of drm_plane_create_blend_mode_property to not enumerate the #defines, but instead the string values - Uses fg.* instead of pixel.* and plane_alpha instead of plane.alpha - Introduces to use it in the malidp driver, which depends on the plane alpha patch Changes from v1: - v1 is just the core changes to request for commments - Adds a pixel_blend_mode to drm_plane_state and a blend_mode_property to drm_plane, and related support functions - Defines three blend modes in drm_blend.h - Rebased on current drm-next Lowry Li (2): drm/blend: Add per-plane pixel blend mode property drm/mali-dp: Implement plane alpha and pixel blend on malidp drivers/gpu/drm/arm/malidp_planes.c | 76 ++++++++++++++----------- drivers/gpu/drm/drm_atomic.c | 4 ++ drivers/gpu/drm/drm_atomic_helper.c | 1 + drivers/gpu/drm/drm_blend.c | 110 ++++++++++++++++++++++++++++++++++++ include/drm/drm_blend.h | 6 ++ include/drm/drm_plane.h | 6 ++ 6 files changed, 171 insertions(+), 32 deletions(-) -- 1.9.1