Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp1543159ybj; Fri, 20 Sep 2019 12:11:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqwwk8AV20WObXyy5fQgdmlxSzXtgciG4apjfyRN2vMc+eGIbXH2kIJLEDo2o4ct8dlBhjBE X-Received: by 2002:a17:906:e297:: with SMTP id gg23mr7561970ejb.47.1569006680332; Fri, 20 Sep 2019 12:11:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569006680; cv=none; d=google.com; s=arc-20160816; b=LSFnO6wMMyRbfDQSj4Xdga5uTnkf3UpAOMjH5y5vDYavs6mTpKziANEcuTa/QeAZ6t jjTOAHzGSTMAYZcZfAAmLJ8+zA0IYzeIEKklX3Vq/Iz04lA1j7pW3br/Z5InndlW4VTt gKlMGHWExWu3ww44FdFQix6IsRvbe6cxv9JvUDxvnC25t69CQ+sXL+Tz4CzPCuTC/EKY DcM/DHsJ2Pbt/Wmp4XWq+D13+569osnFsHHpLdZuEidTKSclkuUONcddc1dkRI1iy9JN h8096/a52BGve1jyEKjXJ4tfS19kHQUdoVgcHZElgEglNyxn1z+5Z6cCgVjRXcBav26H S+kg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Hjasgk/DjD1JUROz7kXE34h90cVJHQtVcYSmt8ORqnM=; b=jF/FZxr7nR4bGPXWpyCbx/t8L88eVMtWGQLIUGdey8Op3FeZeojD1CE9lJsf+Lp/z/ xXe7wktMwHpZDvPQ4VJPvuWRRdnqhQc4Xsq7TD8bDp/gkxquxNvFSiZgy0vBVdPzv9vy xqnqEfu6MZJmmldALa4pbfpWoKZ645DGhCfSgck8RGPIPK1HQpVsBRmVqxmcbfB2hM+L mg+xkJqse5zRxQn+pXwmFrmmS5WeXkb7iEw2Xvoqponq/plypGu+u321MBA75XiWe0sv 2ithHrhjiKRu7FwgMT4Py3Awbz8k8Dxfl++GWG9VCJ9TidNIpmnxhLajSqC5v0LUUB+F hdtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@globallogic.com header.s=google header.b=PoEHNFkO; 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=REJECT sp=REJECT dis=NONE) header.from=globallogic.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a26si1904755edv.35.2019.09.20.12.10.56; Fri, 20 Sep 2019 12:11:20 -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=@globallogic.com header.s=google header.b=PoEHNFkO; 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=REJECT sp=REJECT dis=NONE) header.from=globallogic.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2408464AbfITKOo (ORCPT + 99 others); Fri, 20 Sep 2019 06:14:44 -0400 Received: from mail-ed1-f54.google.com ([209.85.208.54]:46625 "EHLO mail-ed1-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2393353AbfITKOn (ORCPT ); Fri, 20 Sep 2019 06:14:43 -0400 Received: by mail-ed1-f54.google.com with SMTP id t3so5820384edw.13 for ; Fri, 20 Sep 2019 03:14:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=globallogic.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=Hjasgk/DjD1JUROz7kXE34h90cVJHQtVcYSmt8ORqnM=; b=PoEHNFkOqWu3Zc1DzPXNcCsr139HVIhuZoyA79RX13aymTCwtfWmzKjvn4+iqJpMMo ksODwrQNiOmh/ZFF1ueDRyEqnURsCJwzKTHjQaJyvdbhMgYXilesgm1EoF/I3iYI0B7n 2kvU2/LJXzewYw5ZCgll8CFa1R7UEkyZhqu0CCeoYypP7F9pUu+UcRlharVmLm2OWxgo /2s4znvzJsqHW+tT9cs8iUQfpFnWfm47gLPC0vcV2Yc8sdoUbaZJRt0rkbTvx+9cD4Ds 3hBFbIXYlv/Cf2OMjDtRrFyCGRCxrXTgTWl7fZ8VzE4saleFN9f4xjW9hRfRdoOY0h7w raTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=Hjasgk/DjD1JUROz7kXE34h90cVJHQtVcYSmt8ORqnM=; b=RSeZDw/y6CyA/IWWTVF3r3M0H3dq/go6Kv1IZ38UtB5HOKVStRnhgYXlQN2sfY/pK7 2uFTylqMEbBI5KTygQUcLywBFWIIumR2MaemLta/b/Cp08qNAe4rdO7bGIw0Urijznpu psh0A7OwTmy/99Sz/RyKrl5R2XzbYSSHe1OS8CVBq+kvqkBuuqv8xw+Wg6sTL7DBR7uE i3xyV6rjs5eTR736HrOWliyvA3yAlJIPy43XHAdQig+mgovB5D2+Y1VRAbJRaphW7sNI a+BxmE83XCGGdmZNFf/iLTqqHxTnBzihX22/hmPDgon7tkpEt1neB3WwE+bsSOuW2Wq9 Hbjw== X-Gm-Message-State: APjAAAW0k6Jd2Sg9YGbkowJiOLDF2wqQgDMbKHkhFwkdaa9/82EYdgi8 fgrZ9oONHN8lwnyYKGxT+ik9eEywGHiBCoao6otV1w== X-Received: by 2002:a17:906:4c4c:: with SMTP id d12mr18325248ejw.174.1568974482036; Fri, 20 Sep 2019 03:14:42 -0700 (PDT) MIME-Version: 1.0 References: <20190918110541.38124-1-roman.stratiienko@globallogic.com> <9229663.7SG9YZCNdo@jernej-laptop> <20190920062020.zyt5ng6cxtu6muye@gilmour> In-Reply-To: <20190920062020.zyt5ng6cxtu6muye@gilmour> From: Roman Stratiienko Date: Fri, 20 Sep 2019 13:14:30 +0300 Message-ID: Subject: Re: drm/sun4i: Add missing pixel formats to the vi layer To: Maxime Ripard Cc: =?UTF-8?Q?Jernej_=C5=A0krabec?= , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 20, 2019 at 9:20 AM Maxime Ripard wrote: > > On Thu, Sep 19, 2019 at 08:53:10PM +0200, Jernej =C5=A0krabec wrote: > > Dne sreda, 18. september 2019 ob 13:05:41 CEST je > > roman.stratiienko@globallogic.com napisal(a): > > > From: Roman Stratiienko > > > > > > According to Allwinner DE2.0 Specification REV 1.0, vi layer supports= the > > > following pixel formats: ABGR_8888, ARGB_8888, BGRA_8888, RGBA_8888 > > > > It's true that DE2 VI layers support those formats, but it wouldn't cha= nge > > anything because alpha blending is not supported by those planes. These > > formats were deliberately left out because their counterparts without a= lpha > > exist, for example ABGR8888 <-> XBGR8888. It would also confuse user, w= hich > > would expect that alpha blending works if format with alpha channel is > > selected. > > I'm not too familiar with the DE2 code, but why is alpha not working > if the VI planes support formats with alpha? Good question. It mentioned in the datasheet https://linux-sunxi.org/images/7/7b/Allwinner_DE2.0_Spec_V1.0.pdf on page 95: "All ui layers' alpha is useless" And my experiments proves it. My assumption that vi uses post-processing that cuts out alpha values. > > Thanks! > Maxime --=20 Best regards, Roman Stratiienko Global Logic Inc.