Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp1795914ybj; Sun, 22 Sep 2019 12:07:04 -0700 (PDT) X-Google-Smtp-Source: APXvYqwIzhp5oFFMrFefEsNqq9B2lcunpmPM/d+ECvIMb18pS5W9soFz/eG0p7TPopex+lpSFMg7 X-Received: by 2002:aa7:dcca:: with SMTP id w10mr33394359edu.183.1569179224513; Sun, 22 Sep 2019 12:07:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569179224; cv=none; d=google.com; s=arc-20160816; b=GuhAxRQtr1ld/I0nbSg42crfb1w4PEe1SF90vAjFeA/LZN/mSJeaT2Uak3f1CewOfO FGqN3xAKvOw4H2Su2OJky69LLdLSP53eKt51UwhQ3O37x4wNKld3itchtE3hEsvBLMT2 ZzjPofWR15xtC+CvUKnBU3xCdbHuMwLZhdYmUmBQLkgfZbzF+MxadWOAu2QiTdbmI5eo mpDP/4oZtPyOQUdmIzct4BACGCYLZwcnYlspdiIriU/x7NsT/3pKj85lqEsmSa9oQ6p+ 2ncL5/E2zWg0U6VYw1V1k0NeXWZvjQ7vNpyM1NUt8o9QVA35TxEQ6d7xeObivFoCo780 l9tg== 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=h7BiFEPr6i2z1i+pS9YVOr9uD6I+CcNi47gOZAMaFAE=; b=Dppr4ExpdemjL2PdVb6zdVac3mDU+Fk8xv2rtK0ZXleVb2fgz9z7EpH5wF9HQjVTdT kOoEyHPkvrXmgpbaPoyYHSGYW3x47TBDno+JX0w5jxL2SzuBuZ/ia0r9kNILibpnMs+r rrrveDphLcqGjuGXcHPUVXYXXqQ9ABq+iN97+ZvDsIm54gTqCdEWP5pTiG2CMpLHVtGn Fypbcq4lqAO+FuupaCaaQS7sKhKEd07TI34gkAQcte2VKSbTexQyB+74kf2zuiG8fPEu 0jH0T8gLSlROuqfhcrnlLO7NHCOjCBG8w/GjXMk0IxMnsCIm+C2lbWuudfg0O2KqvS7l iT8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@globallogic.com header.s=google header.b=liCM9nAE; 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 g8si5217145eda.105.2019.09.22.12.06.41; Sun, 22 Sep 2019 12:07:04 -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=liCM9nAE; 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 S1729958AbfITUW6 (ORCPT + 99 others); Fri, 20 Sep 2019 16:22:58 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:39338 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729943AbfITUW6 (ORCPT ); Fri, 20 Sep 2019 16:22:58 -0400 Received: by mail-ed1-f67.google.com with SMTP id a15so4914597edt.6 for ; Fri, 20 Sep 2019 13:22:56 -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=h7BiFEPr6i2z1i+pS9YVOr9uD6I+CcNi47gOZAMaFAE=; b=liCM9nAEDr7Gr8QClveC6J+S79HCWVXIGBasnLKSVkdl+APVU2MCw2m8v1CzztgsSB jV8amWhYyF85BndLq6ycNdOVYhEKnDdxnISMMcjWcyPgmyg3+ei0CkJ9rDYP2iLFGBr+ ugwotT82GAMMg6hf1X2VTCua1p63E28ZZZMDsp0HND2NfbKd3Qjnz+EyRsC5CmfuDFet N8vNNfc8afp+ZyUc2kxRrAA1JIuWerjr/o6qbGIEAh/ww6itLhAqRTw4LmUGNiS7HFsX vTP3C4oksB3bvgUwomMjiIj7ivIhW0RLGWtk09OxGBaldN926WUdbhVw89XBNwTqUXRj 1kPw== 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=h7BiFEPr6i2z1i+pS9YVOr9uD6I+CcNi47gOZAMaFAE=; b=XaShinl8qb0k2BNcMTnB0l6QJsTfGA9ksUY/Pmz+kjzGMjoudu+pBvfFiI+RWCuYRN +eYNYfNCu9knXfTQtaY4eLfUKjAdpjpayGkDVwzF535xhk5TVBAS1UnXITw5m0odqfk4 57gHzLgIZdHSdI+B0PhW0NyU1E7UVNOxSafV1tML9BrlruMIHVwaHPg35TsryHFPITi7 lcMvXFubcV+QrjfgEeR4CG5mXTxHlpXkta1DcBo1dycC0yMPVoRs1KBl27rf1qirpcgR nx9G2CnYIESHnAKRkOO/5E30YqyJFaHm8ZxbqmLj7FSUB/xuxGE6s6a+3vGOHlYmS3QE JymA== X-Gm-Message-State: APjAAAXQl2sKRnNsHseFxlcjEhyw7f5fJPW+f/junqKWf93RdOp9UQO3 I5IQeiWX2GRzrcRppr2gJ4n+Y2AYhreeY8WW/xDHXg== X-Received: by 2002:a05:6402:1a45:: with SMTP id bf5mr23501603edb.275.1569010975439; Fri, 20 Sep 2019 13:22:55 -0700 (PDT) MIME-Version: 1.0 References: <20190918110541.38124-1-roman.stratiienko@globallogic.com> <9229663.7SG9YZCNdo@jernej-laptop> In-Reply-To: <9229663.7SG9YZCNdo@jernej-laptop> From: Roman Stratiienko Date: Fri, 20 Sep 2019 23:22:44 +0300 Message-ID: Subject: Re: drm/sun4i: Add missing pixel formats to the vi layer To: =?UTF-8?Q?Jernej_=C5=A0krabec?= Cc: linux-kernel@vger.kernel.org, Maxime Ripard , 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 Thu, Sep 19, 2019 at 9:53 PM Jernej =C5=A0krabec wrote: > > Hi! > > 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 t= he > > 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 chang= e > anything because alpha blending is not supported by those planes. These > formats were deliberately left out because their counterparts without alp= ha > exist, for example ABGR8888 <-> XBGR8888. It would also confuse user, whi= ch > would expect that alpha blending works if format with alpha channel is > selected. > > Admittedly some formats with alpha are still reported as supported due to= lack > of their counterparts without alpha, but I'm fine with removing them for > consistency. Why not to replace 'A' with 'X' on all relevant formats and map them to corresponding index marked with 'A' (that behaves as true 'X' for vi) > > Best regards, > Jernej > > > > > Signed-off-by: Roman Stratiienko > > --- > > drivers/gpu/drm/sun4i/sun8i_vi_layer.c | 4 ++++ > > 1 file changed, 4 insertions(+) > > > > diff --git a/drivers/gpu/drm/sun4i/sun8i_vi_layer.c > > b/drivers/gpu/drm/sun4i/sun8i_vi_layer.c index bd0e6a52d1d8..07c27e6a4b= 77 > > 100644 > > --- a/drivers/gpu/drm/sun4i/sun8i_vi_layer.c > > +++ b/drivers/gpu/drm/sun4i/sun8i_vi_layer.c > > @@ -404,17 +404,21 @@ static const struct drm_plane_funcs > > sun8i_vi_layer_funcs =3D { static const u32 sun8i_vi_layer_formats[] = =3D { > > DRM_FORMAT_ABGR1555, > > DRM_FORMAT_ABGR4444, > > + DRM_FORMAT_ABGR8888, > > DRM_FORMAT_ARGB1555, > > DRM_FORMAT_ARGB4444, > > + DRM_FORMAT_ARGB8888, > > DRM_FORMAT_BGR565, > > DRM_FORMAT_BGR888, > > DRM_FORMAT_BGRA5551, > > DRM_FORMAT_BGRA4444, > > + DRM_FORMAT_BGRA8888, > > DRM_FORMAT_BGRX8888, > > DRM_FORMAT_RGB565, > > DRM_FORMAT_RGB888, > > DRM_FORMAT_RGBA4444, > > DRM_FORMAT_RGBA5551, > > + DRM_FORMAT_RGBA8888, > > DRM_FORMAT_RGBX8888, > > DRM_FORMAT_XBGR8888, > > DRM_FORMAT_XRGB8888, > > > > --=20 Best regards, Roman Stratiienko Global Logic Inc.