Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp2322428iof; Wed, 8 Jun 2022 02:26:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjwZ9Pg6y2pMhnxqWDmTthwaW5/yuBD6v9P8xgO/n8OPn6L+3bqjuOYxtITZ2vuf9Inn/1 X-Received: by 2002:a05:6a00:23c6:b0:51b:f8e3:2e5c with SMTP id g6-20020a056a0023c600b0051bf8e32e5cmr20696182pfc.43.1654680364623; Wed, 08 Jun 2022 02:26:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654680364; cv=none; d=google.com; s=arc-20160816; b=o/zl8Xxd2lV1kEKQ67tBjOgsLFPNPuPninjamSX17zisipgkve4pdv3NcNGtAzOyBb FO1Xrsn3c2LUP7RpH8xzA32OrOnmQ1ymcyhj9qkbt4UwgvGJriYNHTL1B2AoJpwstEFw 4IbqsXEbbO0rrwDrpReKIBhUdSf965SSeW31gok8WJbj9SJqcH+T2yVqtFHDh0I5aU9I mDlTd3JGjmkA4jryvbXYkmvkvzXES8YogX5D67TW2Q+BZdXetsBBt++FJHpvKz/vyP2h H5TfCN4NhBwGTJCmdOFVGZEmn0+GBRgQsbb/baXpclBqBwdvmM9yTRSnYFG4GFkKz4W0 tNVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:feedback-id :dkim-signature:dkim-signature; bh=HdG9XnB4tdawmqEKCCb6ivGGqE38dlnm7rCuTW1+Rls=; b=VS68Y9jdh43RrInOvx62pkNiVW9t6ttnIrkZUAwZQAPlC/DDEbmFAcYLvVeKP2MzXV odBFdLb2QaCOypBFB0SKuq8svBC+MHy1ht+FZOTyOP4AhJm0dwxCUp69Zs4+yQ9JZwKF b0M1CbpHdhFAyPeZrfF5dW/mQSokscTV1uad9Fh1yDfoNNRLw4lUDimVzXFJL3v/XHqi O5D+BoivrifgdYr0M7WnoWskFY1h2utoDK9K4ssqUcZQUzYOmERAoCnOEJqM8H5CiV6c QkRMHuUJDG8Dtp1Wnllt6Wj9tlhMR8rFB4zar0hrD9yXZN5m0WuIUSG2IQiVFlq1EE1p /OSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm1 header.b=1k4A2wzq; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=dlipd2+I; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id i70-20020a638749000000b003fe462deda3si188346pge.865.2022.06.08.02.26.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 02:26:04 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@cerno.tech header.s=fm1 header.b=1k4A2wzq; dkim=pass header.i=@messagingengine.com header.s=fm2 header.b=dlipd2+I; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cerno.tech Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 7750515E4B8; Wed, 8 Jun 2022 01:57:27 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233149AbiFHI5O (ORCPT + 99 others); Wed, 8 Jun 2022 04:57:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233205AbiFHI4Z (ORCPT ); Wed, 8 Jun 2022 04:56:25 -0400 Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DD6643A5BD9 for ; Wed, 8 Jun 2022 01:17:23 -0700 (PDT) Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id B38875C017D; Wed, 8 Jun 2022 04:17:19 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 08 Jun 2022 04:17:19 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cerno.tech; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm1; t=1654676239; x=1654762639; bh=HdG9XnB4td awmqEKCCb6ivGGqE38dlnm7rCuTW1+Rls=; b=1k4A2wzqI6TNtXvB3xsy1jJH81 WOPJJQDNSQ5fOhR1RQ1vuidvGg1+lVYO4Ui+SnJ1nBfqQ/BNVfUlhvuRX8BHiSwM 27kN6LHyaGJu+vbvxnh4T67iZLgVyCImWyKI6byGHmkTzsDip6GO4MLB9vmBfBw5 5zUiEEmWWfEXtYhzW6YMhFgnZnqaQgEWT22aTUsCM87T1vTHB1kVMgfKGR/lITmm dPg7PA9zgSzpofiFEYvoNTRo5Zbo0EzcpJ0FN2CRn1azpmy9uRDCH7nUc0E0a4ZE Sz2lsEHw1IT71As1Gk03+zWli6arwjVyY6nANnHR6uI8BnQ5vSXmEeW4C3iw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1654676239; x=1654762639; bh=HdG9XnB4tdawmqEKCCb6ivGGqE38 dlnm7rCuTW1+Rls=; b=dlipd2+I9I9KKmynpe4aYpRrKFGds2UTvKE/sn7U1XTX 5YMAWjgZaImDZBxUwM/i+coq5ksae9l51Mhd01ZU/r9qIA0gU+QCoTDopTXrAzNI vXp+DIuwzTI1z+Wh00df8HtEPjU2OBj232cUzYEpuVeWmBodmFZQBk3Ky5iNoQun /8TlRxrC+fZbhD/fCxW2LfOasrPjzfduXHA6OeD8qQImEvE7TWjdZHq3VHUzqN6Z vYpPoLnKD9VoZwIO7pV7D0jtU9SiRV3jpplzxDiO3npfAgX/bu420ALHQSedvEt6 6LcJBScIY2RT95vLKvnRmJZ6jF3QJeBjIsRtnUmTmA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedruddtjecutefuodetggdotefrodftvfcurf hrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecuuegr ihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjug hrpeffhffvvefukfhfgggtuggjsehgtderredttdejnecuhfhrohhmpeforgigihhmvgcu tfhiphgrrhguuceomhgrgihimhgvsegtvghrnhhordhtvggthheqnecuggftrfgrthhtvg hrnhepueeuffethefgfffhkefhhfdvledvgeethfefudfhtdejjeelfffhledtleetgedu necuffhomhgrihhnpegtihgvtghhrghnohifrdhskhhinecuvehluhhsthgvrhfuihiivg eptdenucfrrghrrghmpehmrghilhhfrhhomhepmhgrgihimhgvsegtvghrnhhordhtvggt hh X-ME-Proxy: Feedback-ID: i8771445c:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 8 Jun 2022 04:17:18 -0400 (EDT) Date: Wed, 8 Jun 2022 10:17:15 +0200 From: Maxime Ripard To: Roman Stratiienko Cc: Jernej =?utf-8?Q?=C5=A0krabec?= , wens@csie.org, airlied@linux.ie, Daniel Vetter , Samuel Holland , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, megi@xff.cz Subject: Re: [PATCH v2] drm/sun4i: Enable output signal premultiplication for DE2/DE3 Message-ID: <20220608081715.cblotjle6benihal@houat> References: <20220605094018.9782-1-r.stratiienko@gmail.com> <5826286.lOV4Wx5bFT@jernej-laptop> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="zp6iwgscfyq77x44" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --zp6iwgscfyq77x44 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jun 06, 2022 at 01:16:06PM +0300, Roman Stratiienko wrote: > =D0=B2=D1=81, 5 =D0=B8=D1=8E=D0=BD. 2022 =D0=B3. =D0=B2 23:23, Jernej =C5= =A0krabec : > > > > Dne nedelja, 05. junij 2022 ob 11:40:18 CEST je Roman Stratiienko napis= al(a): > > > Otherwise alpha value is discarded, resulting incorrect pixel > > > apperance on the display. > > > > > > This also fixes missing transparency for the most bottom layer. > > > > Can you explain that a bit more? >=20 > Well... I would recommend reading Bartosz Ciechanowski's blog > https://ciechanow.ski/alpha-compositing/ or the Porter-Duff's 1984 > whitepaper itself. >=20 > HINT: That magic numbers from sun8i_mixer.h ( 0x03010301 ) corresponds > to SOURCE OVER mode. >=20 > As you can see from the blending equation it outputs both pixel value > and alpha value (non-premultiplied data mode). >=20 > Also single-layer non-premultiplied buffers may have for example > (R255,G255,B255,A2) pixel value, which should be sent as {R2, G2, B2} > through the physical display interface. >=20 > When OUTCTL.PREMULTI disabled pixel, the RGB values passes as is, and > even 100% transparent data {R255, G255, B255, A0} will appear as 100% > opaque white. Without going into the full explanation about what alpha is, your commit log must describe what the bug is exactly, and most importantly how do you trigger it. Maxime --zp6iwgscfyq77x44 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCYqBbCwAKCRDj7w1vZxhR xSPVAP9WCuEJOeR5feptswaFZEGtKBmQmfsH0V6aZNlGCKQWXAD/RNZOTXFU59/5 B4sP7l0sbDznzHweIEM2DwDCKh/7FQs= =6Jim -----END PGP SIGNATURE----- --zp6iwgscfyq77x44--