Received: by 2002:a5d:9c59:0:0:0:0:0 with SMTP id 25csp336624iof; Mon, 6 Jun 2022 04:33:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzGY5VY3YSorFTqSclRiC2YzTKEvYNOVReilYaKuaJo9MHiCMveVYk3Qcn0NAt/xpw4eKwZ X-Received: by 2002:a17:90b:4c4e:b0:1e3:368b:c09c with SMTP id np14-20020a17090b4c4e00b001e3368bc09cmr25836161pjb.140.1654515232191; Mon, 06 Jun 2022 04:33:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654515232; cv=none; d=google.com; s=arc-20160816; b=aYKFtlJRcS2RVZO90+wxmp66j3TL1wdG21QqJxj1fBHSHEkbDUA2lwSdPPggheP5rr sGAud1mrgabbFchN+j74j2M3br32dVffzxkYJfTVsqX0wvss5Lo4kGxDlntMEUKZ7C2P qXdxut/JoL58IajaIuuXQAA9TnXQ8oboFx5UgGxV/XnLgcZmtLXS4JDrbFlo0XKmkwRY E4nq3abTFGv++s+//TFZyudEw3LpKrUJuHE9Ptm5RyeZ+al4IQc+ZgDnJA1vsNIQTYGU /yKTIvZfX0EAPi+FUoF17vdR63qlv1kOKVxdNGoDcB7U+KbL/O8O4Ti39G04X53IL4J8 cvUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=xTsthcJVQmhF7Xm+0URj3QnPKdLx/8RaDMYR7w133tE=; b=gcDEFtbg5dgYWS0jcvnsbhGfBFeA+6Dn8knTKtX0gPYCdRDIoek20I169b9fxfjzkK WBrjE0m8OvwtMi1+BzG4J632aQqxORMTKLiNjOE8D5lJKkdmgXFGgHHPDNlgl6NYoHlU 5dMImxiD6s367F7JDSIPtlRF7UwpynmRVBlxTcZYJLgi3jYuiRpUwCtvzIv/LKwTd4zg kb2URs3S95UKeaFEPcAd7z8fsuF+5/yzDr87aiT894BGoRlqvtrqvIe4pa3aBWQAdt50 6sbMUBxIKhw4tVPh1YQsdDBn/098FHFhOT9uHR+ozhGkqO8D5CtpWKRxZWEtPWL6aV7Z qwPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZOewfqDr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id w4-20020a631604000000b003aa57185726si19839725pgl.681.2022.06.06.04.33.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 04:33:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZOewfqDr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 5683990CD5; Mon, 6 Jun 2022 04:22:11 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235096AbiFFLWF (ORCPT + 99 others); Mon, 6 Jun 2022 07:22:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38950 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235077AbiFFLWB (ORCPT ); Mon, 6 Jun 2022 07:22:01 -0400 Received: from mail-qk1-x72f.google.com (mail-qk1-x72f.google.com [IPv6:2607:f8b0:4864:20::72f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 375A21DC for ; Mon, 6 Jun 2022 04:22:00 -0700 (PDT) Received: by mail-qk1-x72f.google.com with SMTP id 68so2141168qkk.9 for ; Mon, 06 Jun 2022 04:22:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=xTsthcJVQmhF7Xm+0URj3QnPKdLx/8RaDMYR7w133tE=; b=ZOewfqDrRLi/wwwz9ymLuAwvXjjYy53E3ClhFkvNdW+qY5vw0HCyp+up9VCzwFAaYC TMZMyPxvNTz3csXNIdbs8rsyOHKUCVlnSamtOkI5F6E+zyV50wpCEXQvwX3Vchoobyi7 oEFLlmugJIZbBqnAwFBO6Jj70E2UYEMPY4tyZ6RIl1lE7paHygqQJIl3SXwoKeKrBZYA jB8JdfEshy0LTf9aQq+lrbp36yS2ywNM6/WARXiQodcjG0/HrurVUVIChqTOmFDB6oPq 1W/cgapZ8twK+qTRv/lhZly7yjV0TCgOfRUkFeaWIQg0kk3I6VDhSs8SX5kgj8n9OUBC fFjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=xTsthcJVQmhF7Xm+0URj3QnPKdLx/8RaDMYR7w133tE=; b=O9Tv6rlE+YCxHHwYLkNnU+0bMUEKoEQl+noq1wVN3mftuDLAFbhJvG0W+0zOF6FgFW 3xdVsFZdT3IzoANow0Aj0Sp68tggsUSHrN2IsJRB6Rg3WBxfvGn69Cn47WzwPjXnNRF2 XOrh1py4uJo9C4mc4hTmiybWVHlCscfmzpVDAgjsVHdwOAEp9Z+P2EzHN/ks9Ew4F8Lh SZ/rMEnk2EEmMGUJlBlIvITNLwFYeGVL4Q2WpeX9zfJCz6g7zVBe5YpCBKYeRh44JCDP wd3nhdvKjerFx7zdmcuE/AtqJedJIysg9zNPzealIaPkZcj+f8MULqTaHVpTGM0VcjsB FVXQ== X-Gm-Message-State: AOAM531HmZ5r4CmLKVUDLodJ/4tK5L1Cb+gEQxrnWk7aBIOhGqDLZ3a5 SdDwJ1tUQqoIVTUFrHGiBAkqY7PBLV1MvETRKRg= X-Received: by 2002:a05:620a:4310:b0:67b:3fc1:86eb with SMTP id u16-20020a05620a431000b0067b3fc186ebmr14966019qko.495.1654514519340; Mon, 06 Jun 2022 04:21:59 -0700 (PDT) MIME-Version: 1.0 References: <20220605154731.17362-1-roman.o.stratiienko@globallogic.com> <4714286.GXAFRqVoOG@jernej-laptop> <20220606092006.4bgxibmayv44juox@houat> <20220606092225.yxyw77mtuqpbmd35@houat> In-Reply-To: <20220606092225.yxyw77mtuqpbmd35@houat> From: Roman Stratiienko Date: Mon, 6 Jun 2022 14:21:48 +0300 Message-ID: Subject: Re: [PATCH] drm/sun4i: sun8i: Add support for pixel blend mode property To: Maxime Ripard Cc: =?UTF-8?Q?Jernej_=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, Roman Stratiienko Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 Hi Maxime, =D0=BF=D0=BD, 6 =D0=B8=D1=8E=D0=BD. 2022 =D0=B3. =D0=B2 12:22, Maxime Ripar= d : > > On Mon, Jun 06, 2022 at 11:20:06AM +0200, Maxime Ripard wrote: > > On Mon, Jun 06, 2022 at 11:17:20AM +0300, Roman Stratiienko wrote: > > > Hello Jernej, > > > > > > Thank you for having a look. > > > > > > =D0=B2=D1=81, 5 =D0=B8=D1=8E=D0=BD. 2022 =D0=B3. =D0=B2 23:37, Jernej= =C5=A0krabec : > > > > > > > > Dne nedelja, 05. junij 2022 ob 17:47:31 CEST je Roman Stratiienko n= apisal(a): > > > > > Allwinner DE2 and DE3 hardware support 3 pixel blend modes: > > > > > "None", "Pre-multiplied", "Coverage" > > > > > > > > > > Add the blend mode property and route it to the appropriate regis= ters. > > > > > > > > > > Note: > > > > > "force_premulti" parameter was added to handle multi-overlay chan= nel > > > > > cases in future changes. It must be set to true for cases when mo= re > > > > > than 1 overlay layer is used within a channel and at least one of= the > > > > > overlay layers within a group uses premultiplied blending mode. > > > > > > > > Please remove this parameter. It's nothing special, so it can be ea= sily added > > > > once it's actually needed. For now, it only complicates code. > > > > > > I would prefer keeping it if you do not have any strong opinion again= st it. > > > > > > I am working now on exposing all overlays, so it will be needed soon = anyway. > > > > KMS assumes pre-multiplied alpha anyway, so we shouldn't need a > > parameter to force it: we're always going to force it. > > My bad, I got confused with your other patch. > > Still, I agree with Jernej, if it's not needed it only complicates the > code for no particular reason. If you need it at some point in the > future, add it then. Otherwise, it's hard to reason about, since we > don't know what are the expectations that those future patches will > bring. Well, existing code already has some sort of support for the sub-overlays: For example 'int overlay, ' parameter is always 0, but it still passed thro= ugh the call stack. Therefore this patch is just aligned with already existing traditions to keep sub-overlays in mind. > > Maxime Regards, Roman