From patchwork Thu Apr 4 10:10:36 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: 10885351 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 B5AF917E0 for ; Thu, 4 Apr 2019 10:10:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9E70828856 for ; Thu, 4 Apr 2019 10:10:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 92CC6289FC; Thu, 4 Apr 2019 10:10:41 +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 9633228856 for ; Thu, 4 Apr 2019 10:10:40 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A0C456E586; Thu, 4 Apr 2019 10:10:39 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-eopbgr60071.outbound.protection.outlook.com [40.107.6.71]) by gabe.freedesktop.org (Postfix) with ESMTPS id 74FBB6E586 for ; Thu, 4 Apr 2019 10:10:38 +0000 (UTC) Received: from DB7PR08MB3530.eurprd08.prod.outlook.com (20.177.120.80) by DB7PR08MB3771.eurprd08.prod.outlook.com (20.178.47.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.19; Thu, 4 Apr 2019 10:10:36 +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.1771.011; Thu, 4 Apr 2019 10:10:36 +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: [RFC PATCH v2] drm/komeda: Creates plane alpha and blend mode properties Thread-Topic: [RFC PATCH v2] drm/komeda: Creates plane alpha and blend mode properties Thread-Index: AQHU6s6l9n6BadQNGU+O4hvKDOagqA== Date: Thu, 4 Apr 2019 10:10:36 +0000 Message-ID: <1554372625-3659-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: HK2PR02CA0135.apcprd02.prod.outlook.com (2603:1096:202:16::19) 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: ec71e70f-16c2-49a9-2bbd-08d6b8e5c79d 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:DB7PR08MB3771; x-ms-traffictypediagnostic: DB7PR08MB3771: x-ms-exchange-purlcount: 3 nodisclaimer: True x-microsoft-antispam-prvs: x-forefront-prvs: 0997523C40 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(136003)(376002)(396003)(346002)(366004)(199004)(189003)(71200400001)(7736002)(81156014)(478600001)(2906002)(68736007)(186003)(66066001)(26005)(8936002)(50226002)(966005)(3846002)(110136005)(305945005)(81166006)(52116002)(8676002)(5660300002)(316002)(2501003)(72206003)(54906003)(6116002)(99286004)(2616005)(6436002)(2201001)(105586002)(102836004)(71190400001)(256004)(86362001)(36756003)(4326008)(6506007)(486006)(25786009)(55236004)(386003)(14454004)(6306002)(53936002)(6636002)(6486002)(5024004)(6512007)(106356001)(97736004)(476003); DIR:OUT; SFP:1101; SCL:1; SRVR:DB7PR08MB3771; H:DB7PR08MB3530.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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: p72FAITBS48J9yw7NR3D0JoUhwYyWVO8q5zfDbbQe3YEcK76Dq3vuQhreokx6iZeaK/ckgYpfhK67P5aAafpnoFt2ylrnRCCPnmE3F66HZNkrXnG+6RXUkaq2aChepXDT+4NggKzYR5t7Bhxg/4nMAlcxigcRWsbF+0vlW50i2j1FCtyPIYDVyI3gh0tAF4g+oM7+qqOD+3XeanyjJjsxuSttPh1U85mdd9lcFvsoFAzEGEgGLrhL7g4eEG2cPbbQcIMC7vnHAqDnkfARcD5dA04j6ZTP9vXi08gjgmxQ+zaHKW0xe+2H599ilNwWzRSfnFRmvBJLlWg8ySOZspoFIiW1DmIiqJeL6jSaVJnu/FepwZtRL7Pk0We206QF5tpMEsvBrYClGL+vOofAoHjN5a9Uood58aBo8MPsU4VP3I= MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: ec71e70f-16c2-49a9-2bbd-08d6b8e5c79d X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Apr 2019 10:10:36.1405 (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: DB7PR08MB3771 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=0eJSYLCXZv4JmgGXeji4IzzFeNLHT9G7kOZpqxQUqhk=; b=kurLDjWBygimOeOLZE4pJPvP0LzLNVMB/qfHT6/k3n74Lx284fZK2AQzJlGyylmtLQvEbvIX1WeOkf0XYO3Ya5+GU450FYzKN1ltY61LBwHaKP00hDoWrLNkVtUWevaXkxAdcTljN05p8ojav3pWQ9w7I3GSeZWwONZr8NoviCc= 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);