Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp2347415ybj; Mon, 23 Sep 2019 02:10:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqx5++WbsLDtSD27KysUKkQV4Eqs2qwfG/vscd68vuo1brViWa631RoYc3X/dha6cfbjCt3O X-Received: by 2002:aa7:ce8b:: with SMTP id y11mr27345079edv.231.1569229807602; Mon, 23 Sep 2019 02:10:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569229807; cv=none; d=google.com; s=arc-20160816; b=JQnihSWGu1mC7VaBk4FOd4iWB0WeIVpZSBb2qSNwVxaRN2Zq15/crU+fbyj4ITr3AV 0o8HS9kyEe1ZUXW7l2Wp1DChmbIyR8XdLPIuc34kvQuzzpBt8PB/ROgXmOCl6h5BOsq0 1dZ2sOk6ZHqXztJXR+gPDPTtW33I+n3rjX1XTXGFkpMJNddstiXCLLhEKrmoqkud2Ldq DMXMYGFp5tbJZhS6fTHzlTx2krmGVEHdYQMqS8M8fNfjJAAKfzUyDl310hepZ6yUaium kyLdqDZukXopA/RkbJmoC+oYh4w+lr1q0khXEgN6QXieZpMTixPmynthBXFETXMKlAqL u6GA== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=akc4UIhEEJha64Lyjni7HOLO1WbFON/z8PulZRR3Two=; b=R6blKsvAXRgXIE1kneUIpBw8JN8GqrJwndn8d17Xh/mFh17FrXKXb3SDAxwqAQJo50 hwtPr5VNABRo7H17tkS0gGV5csUWp0VRg8dUopY84XPyiexGNYJaO2csCQ+X+O5+gYrx y5A1MpZacw0eFcQsmkLnM6NMcBW/mvzpqFyJYgcQxRgHAfR2CUU1pNWBC71O4zwFR9+U 1dybp42US2qpF69aMOUsWkdmLu0BaYVskX470HgZkZhqzx1LNJonmhgCKbJngSOVqGFW McIh0kO/br2KDAVYUpAHQ/Fw9bkYlnlloQoVhcnG3wqNT1tDaYgEQ3DVeQT/e88gHPAR EGAw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=siol.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b22si6199634eda.194.2019.09.23.02.09.44; Mon, 23 Sep 2019 02:10:07 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=siol.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730043AbfITUbs convert rfc822-to-8bit (ORCPT + 99 others); Fri, 20 Sep 2019 16:31:48 -0400 Received: from mailoutvs10.siol.net ([185.57.226.201]:59652 "EHLO mail.siol.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727518AbfITUbs (ORCPT ); Fri, 20 Sep 2019 16:31:48 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTP id 3AB16521EC2; Fri, 20 Sep 2019 22:31:44 +0200 (CEST) X-Virus-Scanned: amavisd-new at psrvmta10.zcs-production.pri Received: from mail.siol.net ([127.0.0.1]) by localhost (psrvmta10.zcs-production.pri [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id daZqV_zAxHsF; Fri, 20 Sep 2019 22:31:43 +0200 (CEST) Received: from mail.siol.net (localhost [127.0.0.1]) by mail.siol.net (Postfix) with ESMTPS id D37B5523A05; Fri, 20 Sep 2019 22:31:43 +0200 (CEST) Received: from jernej-laptop.localnet (89-212-178-211.dynamic.t-2.net [89.212.178.211]) (Authenticated sender: jernej.skrabec@siol.net) by mail.siol.net (Postfix) with ESMTPA id 7B168523890; Fri, 20 Sep 2019 22:31:43 +0200 (CEST) From: Jernej =?utf-8?B?xaBrcmFiZWM=?= To: Roman Stratiienko Cc: linux-kernel@vger.kernel.org, Maxime Ripard , dri-devel@lists.freedesktop.org Subject: Re: drm/sun4i: Add missing pixel formats to the vi layer Date: Fri, 20 Sep 2019 22:31:43 +0200 Message-ID: <12552832.EO9JtDEgEE@jernej-laptop> In-Reply-To: References: <20190918110541.38124-1-roman.stratiienko@globallogic.com> <9229663.7SG9YZCNdo@jernej-laptop> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dne petek, 20. september 2019 ob 22:22:44 CEST je Roman Stratiienko napisal(a): > On Thu, Sep 19, 2019 at 9:53 PM Jernej Škrabec 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 > > > 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 change > > anything because alpha blending is not supported by those planes. These > > formats were deliberately left out because their counterparts without > > alpha > > exist, for example ABGR8888 <-> XBGR8888. It would also confuse user, > > which > > 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. I checked again and appropriate formats (with "X" instead of "A") already exist. > > 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) Yes, that's would be best. Best regards, Jernej > > > 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..07c27e6a4b77 > > > 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 = { static const u32 sun8i_vi_layer_formats[] = { > > > > > > 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,