Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp1420956ybj; Fri, 20 Sep 2019 10:09:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqyoRpnai/LXQI6+tVQmHoV7ARRVW8JFatfFVyjOTuH5LTlm/mOBDR10KhPZFlWtouMpwLDO X-Received: by 2002:a50:ce53:: with SMTP id k19mr22975353edj.2.1568999398469; Fri, 20 Sep 2019 10:09:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568999398; cv=none; d=google.com; s=arc-20160816; b=xuU0cAkd9RHoD9wKf5YqomlXZG4UitQRma6LAhy1E8OAQQFBjeUcxH7V1UzLGcD8Hh ihb7GlIkNI0wb0bfhzOCClxaBkGoONxvamuXvf3gUVprxzpuoZnPLdAb6lCh2hVzuflO kIbpl9m0410Hoxbh1KQTJh3On1iYnh7aqW0YLzCiJs9ZJesxMIWWsNjyeVJM78B8fwFw w+ZatFDCf3tUJFjDO9Z1+b4Nnly7tqSzmL7I1y8ISm2vWYROz302UgREzmiMp5y4loZM YezU76zDM3Xq4tRA5Bt44L2pwZFiOTtODO8JgBke2uoghWnk3Rizk2OMv5wls+uVW3Sj afWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=LFxPD7bXEN0iUHzSgV2IAaqhJMR9jcy71uqdbxqIPmo=; b=gkNP4EAxsf3HGq6rO0yFMD2FjqplNGoBt0HrqWxGioJY4qyL3NZNB80KEPKyrnfGbI Ogs8v/Y79fOKSnIrfhlLFJ1vWi0ZbJz64DeLG0RNYZ9vS1rWcOZ5y4izPtKqvpui5YS7 /QNRgjX04jhpnKGsq6ueEtgVpETWQVhuM8eRJ+G9hkWJUUp7s9bRjncmP1J+8oyyL4RX /bnsXVZ7VZcLhz/X1NZDnIvsdpCuOtwiaW0T2hyLZyJuHXFDubHGO0iiR8x3L2vsUPz9 GjIIgcv+ziS8avqeXZvjA8pgxtfmkBTJnfXItf/5dhU/4fLuDccrN6epldx2g8cWU5nu SmlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=VPUqzg6q; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h14si1797722edb.425.2019.09.20.10.09.35; Fri, 20 Sep 2019 10:09:58 -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=@kernel.org header.s=default header.b=VPUqzg6q; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390678AbfITGMM (ORCPT + 99 others); Fri, 20 Sep 2019 02:12:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:51790 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389655AbfITGMM (ORCPT ); Fri, 20 Sep 2019 02:12:12 -0400 Received: from localhost (lfbn-1-10718-76.w90-89.abo.wanadoo.fr [90.89.68.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2369F20665; Fri, 20 Sep 2019 06:12:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568959931; bh=LFxPD7bXEN0iUHzSgV2IAaqhJMR9jcy71uqdbxqIPmo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=VPUqzg6q9sM0ka6k4geicLtzFC4DJG+pHllGG5x2r85z9Orqm1+AtNmbw90l2ki4V EQzuvzBXyZU9ZNusHhrEERZWTEk77Rb0MC4FOuHcd5eoB1yAByb00w+7EN9eg3Kxwl nDD+yjxYFJcACzDu/0nZvIpNJMG+8RMI8WxBoOgE= Date: Fri, 20 Sep 2019 08:12:09 +0200 From: Maxime Ripard To: Jernej =?utf-8?Q?=C5=A0krabec?= Cc: roman.stratiienko@globallogic.com, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Subject: Re: [PATCH] drm/sun4i: Use vi plane as primary Message-ID: <20190920061209.ostddxvzf6xwrmdp@gilmour> References: <20190919123703.8545-1-roman.stratiienko@globallogic.com> <20190919171754.x6lq73cctnqsjr4v@gilmour> <104595190.vWb6g8xIPX@jernej-laptop> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="3ylh7nsjnj6zhso3" Content-Disposition: inline In-Reply-To: <104595190.vWb6g8xIPX@jernej-laptop> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --3ylh7nsjnj6zhso3 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 19, 2019 at 08:15:49PM +0200, Jernej =C5=A0krabec wrote: > Dne =C4=8Detrtek, 19. september 2019 ob 19:17:54 CEST je Maxime Ripard na= pisal(a): > > > > > > Tested on Android. > > > > > > Signed-off-by: Roman Stratiienko > > > > It sounds like a workaround more than an actual fix. > > > > If the VI planes can't use the alpha, then we should just stop > > reporting that format. > > > > Jernej, what do you think? > > Commit message is misleading. What this commit actually does is moving pr= imary > plane from first UI plane to bottom most plane, i.e. first VI plane. Howe= ver, VI > planes are scarce resource, almost all mixers have only one. I wouldn't s= et it > as primary, because it's the only one which provide support for YUV forma= ts. > That could be used for example by video player for zero-copy rendering. > Probably most apps wouldn't touch it if it was primary (that's usually > reserved for window manager, if used). Yeah, we definitely don't want to use it as primary and prevent the video display. > I left few formats with alpha channel exposed by VI planes, just because = they > don't have equivalent format without alpha. But I'm fine with removing th= em if > you all agree on that. If there's no alpha support, then yeah, we shouldn't expose the format at all, and then we can either add the new formats, or just not expose them if they are exotic enough. Maxime --3ylh7nsjnj6zhso3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXYRtuQAKCRDj7w1vZxhR xeqxAP47vhP9Zt2VoOykoxUSb+0IORx7/qZJWXiMTdUUPVILWQEAgu6XBa76F/RH QcYmCCHcvowZxHbGSkRFp2//2Y0bsAw= =16hs -----END PGP SIGNATURE----- --3ylh7nsjnj6zhso3--