Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 11661C433EF for ; Wed, 29 Sep 2021 09:54:27 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id B60DC613CD for ; Wed, 29 Sep 2021 09:54:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B60DC613CD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=emersion.fr Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 15B126EA24; Wed, 29 Sep 2021 09:54:26 +0000 (UTC) Received: from mail-4316.protonmail.ch (mail-4316.protonmail.ch [185.70.43.16]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3C7A96EA24 for ; Wed, 29 Sep 2021 09:54:25 +0000 (UTC) Date: Wed, 29 Sep 2021 09:54:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail; t=1632909263; bh=aRoLv5qviC+3Z5E42yIdLCBye2rDKy1bua0AObKlehE=; h=Date:To:From:Cc:Reply-To:Subject:From; b=uTLnBXZD544Onz3FCXpaV6dEqLr8qvDrwObuLmYDimELmMJNM157cDbZksngc4FSh 5g6X3/05WxJrWCt1O3FG19v2FMtgZCdPLJtOaftT44XxlI2jeJ/iLiqZmL9Va41IAr JAW6xBGCbXJF1WSYPhMlYwPmj2CD7Ey/Bkm+WhnrBS5jHVRaW48kXEKiRelce+afc+ 6OQrqzxqnUm+wuGqQ0TagSdlTY3AAbRyHTyGxcTSVFbDhIA0AkNpcPQ1gOa7xd/hsk MR6+jYu8qDdrpQklf922LvNskfWFro1L74Br7BLEzHLU5+Z2q8YIVbBIepezEwO+J4 0A+vzISU7LdqA== To: dri-devel@lists.freedesktop.org From: Simon Ser Cc: Daniel Vetter , Pekka Paalanen Subject: [PATCH] drm: document pre-multiplied assumptions Message-ID: <20210929095357.49984-1-contact@emersion.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Simon Ser Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" When a plane is missing the "alpha blend mode" property, KMS drivers will use the pre-multiplied mode. Signed-off-by: Simon Ser Cc: Daniel Vetter Cc: Pekka Paalanen --- drivers/gpu/drm/drm_blend.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/drm_blend.c b/drivers/gpu/drm/drm_blend.c index ec37cbfabb50..eebb32ba84d7 100644 --- a/drivers/gpu/drm/drm_blend.c +++ b/drivers/gpu/drm/drm_blend.c @@ -185,6 +185,9 @@ *=09=09 plane does not expose the "alpha" property, then this is *=09=09 assumed to be 1.0 * + *=09When a plane is missing this property, the plane uses the + *=09"Pre-multiplied" equation. + * * Note that all the property extensions described here apply either to th= e * plane or the CRTC (e.g. for the background color, which currently is no= t * exposed and assumed to be black). --=20 2.33.0