Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp4551584imm; Wed, 30 May 2018 07:41:37 -0700 (PDT) X-Google-Smtp-Source: ADUXVKID0zkVplMX5OwppNzwLColV6R3u5mD1ciaZYsXR1qsrskgNui0HJDTzpjMsSl3GlOeOjHV X-Received: by 2002:a17:902:b409:: with SMTP id x9-v6mr3180149plr.180.1527691297214; Wed, 30 May 2018 07:41:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527691297; cv=none; d=google.com; s=arc-20160816; b=H7CQkk77VhNryaHPcrtvQsSL2PUCkcY/dWJAOCyx5nu925ZMKFb5dMY+zHhNVx5nJ4 JyV+obJLzj3ABfINFfsC8pyN8T1Zxnj+ukYBB8wlUZdCI36l85n3fK11un7EgJhx9Q77 brS2SWtV1VzSPNY4g4jE4qopHeyz+JpQLpc8vDWoEiwW7FtnswJiLGUTAi9PYmppEHGC ceAbFC0h52Pvn3D98RZou04t7sgV8tNX9zhOwI97EZC0oikwaMgwZftI4tb3JU25ioef UigBjNP8+NIjG+f89VNuAR6/YwlTqcepMVIdcZJH0KcjHdgL9SFK7q7h8rUTc9s6V1Wu gz2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=i7jgCtQdmnkYmiUi1YmI7oKX2Mc88IfiKVFi39cciOM=; b=FCcGeE0xxwqBr3k/lrEjrTheZTrTj8IBBYnhfJzPbPvZ24ehTajQxwQF2R3iC81+3J Bglr6AJOLg1e6wvdOhwN0v8chTEZxEqmW61SbNJtQINJrwgLO+Prlp07x02aZxZG7xdp xcgkzaAv1Ck7c5S55GHWdtHeYfDgSpxV7Uoyu+w3RLv4MmvyDhmnLX7h8u/4yyekFdSz 96skEKJr/NFJ7dGS7+qQJLMvKNIGtMiC0Nb7RLbo1mIwFJ/bv7iBMf85Y99kmQdz5Rzt j0S5L8sXElXzzc4UlGkBlfVG+eKyo9qhaHK6Kaz5dhuiK6oy1tkbXBZxaBeI4fo3A9w8 gqQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=hCMFh9o1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w18-v6si35188482plp.159.2018.05.30.07.41.23; Wed, 30 May 2018 07:41:37 -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=@chromium.org header.s=google header.b=hCMFh9o1; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753686AbeE3Oko (ORCPT + 99 others); Wed, 30 May 2018 10:40:44 -0400 Received: from mail-yb0-f194.google.com ([209.85.213.194]:45031 "EHLO mail-yb0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750914AbeE3Okm (ORCPT ); Wed, 30 May 2018 10:40:42 -0400 Received: by mail-yb0-f194.google.com with SMTP id s8-v6so6426487ybp.11 for ; Wed, 30 May 2018 07:40:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=i7jgCtQdmnkYmiUi1YmI7oKX2Mc88IfiKVFi39cciOM=; b=hCMFh9o1vPYo5tCNJg73zF3YnLIlcfHZBmG87pARdry4TOQ907XoIP+aIzGRjNzXRA X/I4zW+cjAr7Vc57/gkQYf6Dkg6WZt9obAwU1Fs/B1XfYKPC7I0t1LY5bAGqogYTTOGC P6rwgSa/Xjel5SeGm4iIYD+X20eITMvuUFk5M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=i7jgCtQdmnkYmiUi1YmI7oKX2Mc88IfiKVFi39cciOM=; b=b+0o3Up55qOogsKw/O4pZbxTAm3PEv7yP2E2P8Pc6qriHkfWdR4U8KhnM4Q8G744i4 vRBYJyuPsLwms2IUx1am0I9QLMbojM6sFZyweWKNnuyJB8Le1NwhA0O63dPNjuodvQV0 OsS8tKT/8dUhC/Z/ByTTKhodyd5ohEZqQINbHO3BY/6eOvRPa2II+nnpY2D075SxDatL FfvWrgPp6CFJ2yQW1b4KCO0H+uR7FG084xFa8NTV6eGld4ASwsdXdrGVn7dyQFNQ1Hwh uHt825D/Avr+3LlPYCgcP92I7DdvV1sht6kHOpTmtTV2sivNCu2zAvc4fUNFwGhLi4iR CPbA== X-Gm-Message-State: ALKqPwfImD+0IKtUaWAhSN7u+HjNBXUvfXaxB8tYUGMFCqHGgYX45aRJ nC0R3e1aX5373vRJrHyv6o72Lg== X-Received: by 2002:a25:5d07:: with SMTP id r7-v6mr1584992ybb.209.1527691241700; Wed, 30 May 2018 07:40:41 -0700 (PDT) Received: from localhost ([2620:0:1013:11:ad55:b1db:adfe:3b9f]) by smtp.gmail.com with ESMTPSA id t8-v6sm619754ywf.48.2018.05.30.07.40.40 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 30 May 2018 07:40:40 -0700 (PDT) Date: Wed, 30 May 2018 10:40:40 -0400 From: Sean Paul To: Lowry Li Cc: liviu.dudau@arm.com, 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: Re: [PATCH v2 0/2] drm/blend: Add per-plane pixel blend mode property Message-ID: <20180530144040.GM3373@art_vandelay> References: <1527679434-13228-1-git-send-email-lowry.li@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1527679434-13228-1-git-send-email-lowry.li@arm.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 30, 2018 at 07:23:52PM +0800, Lowry Li wrote: > 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, Hi Lowry, Thank you for doing this work. I know this is something that is missing for proper Android support, so it's most welcome. Do you have userspace patches using this property? Sean > 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 > -- Sean Paul, Software Engineer, Google / Chromium OS