From patchwork Thu Apr 11 08:37:43 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lowry Li (Arm Technology China)" X-Patchwork-Id: 10895291 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A83A9139A for ; Thu, 11 Apr 2019 08:37:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 945DA28BAD for ; Thu, 11 Apr 2019 08:37:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8887D28C94; Thu, 11 Apr 2019 08:37:49 +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=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 38ADC28BAD for ; Thu, 11 Apr 2019 08:37:49 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 339A289873; Thu, 11 Apr 2019 08:37:48 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80048.outbound.protection.outlook.com [40.107.8.48]) by gabe.freedesktop.org (Postfix) with ESMTPS id D3C9689873 for ; Thu, 11 Apr 2019 08:37:46 +0000 (UTC) Received: from DB7PR08MB3530.eurprd08.prod.outlook.com (20.177.120.80) by DB7PR08MB3563.eurprd08.prod.outlook.com (20.177.120.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1792.14; Thu, 11 Apr 2019 08:37:43 +0000 Received: from DB7PR08MB3530.eurprd08.prod.outlook.com ([fe80::899e:4160:166b:923a]) by DB7PR08MB3530.eurprd08.prod.outlook.com ([fe80::899e:4160:166b:923a%3]) with mapi id 15.20.1792.009; Thu, 11 Apr 2019 08:37:43 +0000 From: "Lowry Li (Arm Technology China)" To: Liviu Dudau , "james qian wang (Arm Technology China)" , "maarten.lankhorst@linux.intel.com" , "seanpaul@chromium.org" , "airlied@linux.ie" , Brian Starkey Subject: [PATCH v2] drm/komeda: Creates plane alpha and blend mode properties Thread-Topic: [PATCH v2] drm/komeda: Creates plane alpha and blend mode properties Thread-Index: AQHU8EHUCWV0F8LTFkmHStuQlYxQJg== Date: Thu, 11 Apr 2019 08:37:43 +0000 Message-ID: <1554971844-22101-1-git-send-email-lowry.li@arm.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [113.29.88.7] x-clientproxiedby: HK0PR03CA0047.apcprd03.prod.outlook.com (2603:1096:203:2f::35) To DB7PR08MB3530.eurprd08.prod.outlook.com (2603:10a6:10:49::16) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 1.9.1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 65e6cfda-d056-4ac5-31f5-08d6be58f711 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(7168020)(4627221)(201703031133081)(201702281549075)(8990200)(5600139)(711020)(4605104)(4618075)(2017052603328)(7193020); SRVR:DB7PR08MB3563; x-ms-traffictypediagnostic: DB7PR08MB3563: x-ms-exchange-purlcount: 3 nodisclaimer: True x-microsoft-antispam-prvs: x-forefront-prvs: 00046D390F x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(376002)(136003)(346002)(366004)(396003)(189003)(199004)(71200400001)(71190400001)(110136005)(68736007)(52116002)(7736002)(186003)(26005)(81156014)(2501003)(2616005)(476003)(486006)(256004)(81166006)(8676002)(2201001)(5024004)(386003)(102836004)(8936002)(6506007)(50226002)(105586002)(106356001)(55236004)(2906002)(72206003)(3846002)(316002)(54906003)(4326008)(14454004)(86362001)(966005)(97736004)(6116002)(305945005)(5660300002)(53936002)(25786009)(66066001)(6486002)(6306002)(99286004)(6512007)(36756003)(6436002)(478600001)(6636002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR08MB3563; H:DB7PR08MB3530.eurprd08.prod.outlook.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-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: Na9Vn5yL/jg5DkF2zZqMKvsl2O1WBFACFkEjm6KZlY67DsPc0elUU73T37yjOUXbxx3SIpQDi5kDqnEkhVufWVpda+10NxSD5NADzLonViS6f7iageP0suhPaFu/MRjgkiTITOx4dhPKIAgSQWgU7vWWV5CHjLBFYElcwL33EFkh5Cd5vRMYurFw+Ktj4hjV7nGcaj4iBkQTWoilT51KdXVOW1E2FKcnKOAYw12Ot3oOTmDHeODnevQTZOMPsnMG7ivm8vXnHzUKLVQIJGgSDumGZRvEJ+WL2+V24RCvm4zAspvAiNAWO1509n7bba26WOUsauyZ3ovO9IOVNGSCbKN6pHxXAA82WHFMgjIQZ1EKlxjZcJNzlZ82raVq4r45yR+3E0mwIvi7RgqAhObtNqEEUdBCZx1qq7cS4tqQl1A= MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: 65e6cfda-d056-4ac5-31f5-08d6be58f711 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Apr 2019 08:37:43.6046 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR08MB3563 X-Mailman-Original-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=wDxvfaARgehsciYenFq4dyEzSl/UsDYtP4x7fV1Ktcw=; b=FsjE4B2vbe5eMCHEN3kAgN4HWZg5foUu5S6HVx6gZsieOwd9Fm4hsRojqNNDxxlEAoENpik6vq3km2eyckmfHBxwVnjEOXdpnBKTAmQrzPVPQShuyoN0pj+pvBuzCuhfI4j1qm3lNGj4U1YKrvVPkOIfrNZF3KscBhFusU+7hac= X-Mailman-Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Lowry.Li@arm.com; X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ayan Halder , "Jonathan Chai \(Arm Technology China\)" , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , "Julien Yin \(Arm Technology China\)" , nd Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Creates plane alpha and blend mode properties attached to plane. This patch depends on: - https://patchwork.freedesktop.org/series/54448/ - https://patchwork.freedesktop.org/series/54449/ - https://patchwork.freedesktop.org/series/54450/ Changes since v1: - Adds patch denpendency in the comment Signed-off-by: Lowry Li (Arm Technology China) Reviewed-by: James Qian Wang (Arm Technology China) --- drivers/gpu/drm/arm/display/komeda/komeda_plane.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/gpu/drm/arm/display/komeda/komeda_plane.c b/drivers/gpu/drm/arm/display/komeda/komeda_plane.c index 68cd2c9e..aae5e80 100644 --- a/drivers/gpu/drm/arm/display/komeda/komeda_plane.c +++ b/drivers/gpu/drm/arm/display/komeda/komeda_plane.c @@ -220,6 +220,17 @@ static int komeda_plane_add(struct komeda_kms_dev *kms, drm_plane_helper_add(plane, &komeda_plane_helper_funcs); + err = drm_plane_create_alpha_property(plane); + if (err) + goto cleanup; + + err = drm_plane_create_blend_mode_property(plane, + BIT(DRM_MODE_BLEND_PIXEL_NONE) | + BIT(DRM_MODE_BLEND_PREMULTI) | + BIT(DRM_MODE_BLEND_COVERAGE)); + if (err) + goto cleanup; + return 0; cleanup: komeda_plane_destroy(plane);