From patchwork Tue May 25 13:13:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Baryshkov X-Patchwork-Id: 447183 Delivered-To: patch@linaro.org Received: by 2002:a02:7a1b:0:0:0:0:0 with SMTP id a27csp4258562jac; Tue, 25 May 2021 06:13:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyegIcvn7p7wW0RQFPGPW/DlNQrPWsYmK6jWGJLulRykMu8XXNJYIe+Q2jGTudpxq2jdlWj X-Received: by 2002:a05:6402:44:: with SMTP id f4mr31626426edu.364.1621948406231; Tue, 25 May 2021 06:13:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621948406; cv=none; d=google.com; s=arc-20160816; b=F3lQVlGfnl82FOVXK4B+2Pk9ruieC0U+zcEJoFJVQgN6x6Zt235r/AgLLAdzHrNnTs beww8xxns7//v1TNkkD0fnpGahF2nSi1S+baB2gAXyGnIhNvfAJnZD0T0Q6lBDcFjoCE sdeVCgFnKl4QtXd5iMcHqeaxGr6WcqPI7kwUKcBRBQPkbeHR6mzn8GVl9dSUHQCxrrRL MgZONXD9cSSKSUQE4DwYIhMTYE1XU35U0rOYRxInVfuxXdDILV1RnlM+hjxQ35Rmt6FO gyPrADgUggGoRlvX2cP/lL3C8/fX25UOpk0+SQcNu95RM5sDpYLpKHU3BWd88g7aK8R1 CWXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=2n7j6woRRD2/J1RIFUHaJx0Us+qgUiMCWnRykbRfses=; b=jQ+TBDqfKQZxeGCsXYbjGGwslv1P1oG5/I+viKt0BjTOu9CBzCo2CMkwhl8MK8Z/57 +9VmmLn2Awi4W1gNqEtN5qMr1ZR/VO4FbFTCzwOEGl6UibS7mggWLwokDC6K/5PQNk37 zjICmMVTQmlwO3Kt+1q7wQDaeKvKh1qTpnhtrjKIkvaSeLipC75jIhnVGZhMPtireQ4y 6z6HrhYz7qwjPxRL49FB5E0lbvvSDELj0gyuPFqK4JuVnhkGbqRhzFOtkQQSQRITOaGM t0PzScqvehspPT+f9COLPIyVdb2Wl03JKIA/ANvd8WrDbSqlvGRmNXzLiG5maKl2glVv RbEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NBzon7rq; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hh4si15556805ejb.79.2021.05.25.06.13.26; Tue, 25 May 2021 06:13:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NBzon7rq; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233148AbhEYNOx (ORCPT + 17 others); Tue, 25 May 2021 09:14:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233150AbhEYNOw (ORCPT ); Tue, 25 May 2021 09:14:52 -0400 Received: from mail-lf1-x12f.google.com (mail-lf1-x12f.google.com [IPv6:2a00:1450:4864:20::12f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ECAF2C061756 for ; Tue, 25 May 2021 06:13:22 -0700 (PDT) Received: by mail-lf1-x12f.google.com with SMTP id b26so29944833lfq.4 for ; Tue, 25 May 2021 06:13:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2n7j6woRRD2/J1RIFUHaJx0Us+qgUiMCWnRykbRfses=; b=NBzon7rqI1R9tCWpkRhk/EXuCfNF+AicrV7Gd/HCTnSZPRHtM8Rgv9Y566E7+1UA++ pIPU0r++SaV9/6pXcLM2bwKKMiU0eUtC2LTUnzT9zRSwEyZCsa7/gce4sxmEgYUK4vFx VFMq/sGn8o3aIgtNlraSPWXOG6jJ+28OSUdDZ3JA3fYtcEzAnotVwxv8eoSSVoG1+Zf4 3bvnCTiHhXjmnPd9H42sqwZj+LbPWaxFV7cG9YR/eR9uxhWKJcIpGmlWWCcFw8BmHqD9 iI5STAQ+P8+RIn8f5zKhHJIvfDpzA2enhj3pVseF0hq/MVntuhMS4/4MaiE2Mm3M18vC qj/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2n7j6woRRD2/J1RIFUHaJx0Us+qgUiMCWnRykbRfses=; b=oRO+yeGYL1KcPdRt6lkrsybh6nu6FRGitxOI1uIAvKEmh+L8hEseSOICqPpf+4uo9n +/pEkJwCQqCQwWR+Z1D6xpFA+YEZcszsP1E25raOVaUy/Fj+atUr4oe31egwfBM0ldhA jYMOZIZa+rNLfgsshP7tf3xdNxjODnjnEi+snfyVVYPkBok07HPWd394ALhoQHcgo66j mXKB98RV5TlFz2+zU0YjSM7zZPRVbBB5rVrXKH7Nc/k1oOFpMhmXkSrVwJBos4g6JL94 aQcaWgmaV1bC7EkZajRXwCAyohUDAFPpG3sgTdf8BGYvHSCZosWTAP6EH1rrSm+SANKD +JZg== X-Gm-Message-State: AOAM531nXwv4PYefTXeRNzKoEXMTqj+ubOhePZxo6SGm518W2Wjqi1r9 52IQ+SDVYTOivxAL4xXDfADBeA== X-Received: by 2002:ac2:561a:: with SMTP id v26mr14551043lfd.602.1621948401346; Tue, 25 May 2021 06:13:21 -0700 (PDT) Received: from eriador.lan ([37.153.55.125]) by smtp.gmail.com with ESMTPSA id t20sm2101108lji.53.2021.05.25.06.13.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 May 2021 06:13:20 -0700 (PDT) From: Dmitry Baryshkov To: Bjorn Andersson , Rob Clark , Sean Paul , Abhinav Kumar Cc: Jonathan Marek , Stephen Boyd , David Airlie , Daniel Vetter , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH 4/7] drm/msm/mdp5: add support for alpha/blend_mode properties Date: Tue, 25 May 2021 16:13:13 +0300 Message-Id: <20210525131316.3117809-5-dmitry.baryshkov@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210525131316.3117809-1-dmitry.baryshkov@linaro.org> References: <20210525131316.3117809-1-dmitry.baryshkov@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Hook alpha and pixel blend mode support to be exported as proper DRM plane properties. This allows using this functionality from the userspace. Signed-off-by: Dmitry Baryshkov --- drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c | 5 +++++ 1 file changed, 5 insertions(+) -- 2.30.2 diff --git a/drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c b/drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c index 90cd825df16b..9c678e336e7a 100644 --- a/drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c +++ b/drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c @@ -91,6 +91,11 @@ static void mdp5_plane_install_properties(struct drm_plane *plane, INSTALL_RANGE_PROPERTY(zpos, ZPOS, 1, 255, 1); mdp5_plane_install_rotation_property(dev, plane); + drm_plane_create_alpha_property(plane); + drm_plane_create_blend_mode_property(plane, + BIT(DRM_MODE_BLEND_PIXEL_NONE) | + BIT(DRM_MODE_BLEND_PREMULTI) | + BIT(DRM_MODE_BLEND_COVERAGE)); #undef INSTALL_RANGE_PROPERTY #undef INSTALL_ENUM_PROPERTY