Received: by 10.213.65.68 with SMTP id h4csp366640imn; Tue, 27 Mar 2018 00:09:51 -0700 (PDT) X-Google-Smtp-Source: AG47ELu05StbnOdA8cnYrVq0bTF86PuYiauUy0tRShOWmOToMvTo/9eE9VOHuJ2ppBZXmA2G45gN X-Received: by 10.99.152.68 with SMTP id l4mr30014254pgo.75.1522134591572; Tue, 27 Mar 2018 00:09:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522134591; cv=none; d=google.com; s=arc-20160816; b=az4FaWq5HdONIOGYzc9bKQu9nP7urz1LQo/apPdn/EzWDAqx1YdJciFptLJd1vRjN6 4iw31VADX97jMBZkZ7dz7YkYDVQo28c/7aC/UM+1SlLdSARBBpUoGb52zMObjoNBBVHA T/QvU64dw0d/TPa/GIKZ7hWpjQwjGdTlnb2N9hgRKVkX+eqHyrTMonj7EpQ0CrzhNYTy QufnY0v1gEV+W+/Xdap4Jgxq+GW1qSrA1N3Xo1DMJIq8/dFh21IcKX59suubML33Fpc0 zGzWWaMOU0Qj2awIgpseQVBxirqBdiEgCfwegPQqfgEgDjHlXRFUf/5Zj0wn8+BpXOMM S2lQ== 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:arc-authentication-results; bh=mlsni838GXt7nlRke68xBD3tb0xyBMkTtg1dXbSLvb0=; b=DJjWsgdHDhcN0s3yOMaLvP9hEtzufK5G1th54z/Vm08Q3wv041VNSnCLwgEL62R2ko 3T0bZvut+IaywYSdo82EGZfK9w/X9V6zZUBHlnkm2Zq/+Vq27Li2Vx314LKYRVQ62fxP +YToCU08onU05zjruwlHjz9VdUMRS/pgYCGvs3B9acz7LFleP0CQUZ8KQXqUZ3c4zOzz 8WA3k+FhPNeUXzJpB2SAKNW9ejB8kjlqQ+KDHsknYRK352uJ8VKS1p3xCiLyMnqJMoi4 teYlxQVpzjiU4GTu8h8+V6cX8B+raCK/dvxh//4RMXOwSM5aRImEVTew10sjqFy11jO5 5rXg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u22-v6si678624plk.608.2018.03.27.00.09.37; Tue, 27 Mar 2018 00:09:51 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752168AbeC0HIJ (ORCPT + 99 others); Tue, 27 Mar 2018 03:08:09 -0400 Received: from mail.bootlin.com ([62.4.15.54]:34994 "EHLO mail.bootlin.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751085AbeC0HII (ORCPT ); Tue, 27 Mar 2018 03:08:08 -0400 Received: by mail.bootlin.com (Postfix, from userid 110) id B258F2037A; Tue, 27 Mar 2018 09:08:05 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail.bootlin.com X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,SHORTCIRCUIT, URIBL_BLOCKED shortcircuit=ham autolearn=disabled version=3.4.0 Received: from localhost (LStLambert-657-1-97-87.w90-63.abo.wanadoo.fr [90.63.216.87]) by mail.bootlin.com (Postfix) with ESMTPSA id 98B0E2072B; Tue, 27 Mar 2018 09:07:42 +0200 (CEST) Date: Tue, 27 Mar 2018 09:07:43 +0200 From: Maxime Ripard To: Chen-Yu Tsai Cc: Joonas =?utf-8?B?S3lsbcOkbMOk?= , dri-devel , Daniel Vetter , David Airlie , linux-kernel , Jernej =?utf-8?Q?=C5=A0krabec?= , linux-sunxi Subject: Re: [linux-sunxi] Preferring cursor plane over overlay plane Message-ID: <20180327070743.u5slxdjnxqyt2zqt@flea> References: <5edad360-d05d-1bb8-c1f2-925138784fef@iki.fi> <20180326144507.s5vit2cb7rjm6csk@flea> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="fo5y5e2c2qwdhh7u" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180223 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --fo5y5e2c2qwdhh7u Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 26, 2018 at 11:01:53PM +0800, Chen-Yu Tsai wrote: > On Mon, Mar 26, 2018 at 10:45 PM, Maxime Ripard > wrote: > > On Mon, Mar 26, 2018 at 10:22:45PM +0800, Chen-Yu Tsai wrote: > >> On Mon, Mar 26, 2018 at 10:14 PM, Joonas Kylm=E4l=E4 wrote: > >> > Hi DRM subsystem developers, > >> > > >> > I ran into this patch where overlay plane was switched to cursor pla= ne > >> > because there was no proper cursor plane available on the display > >> > hardware: . Can we discuss whet= her > >> > to have a policy of using a normal plane for cursor plane in case a > >> > dedicated HW cursor plane is missing? > >> > > >> > Daniel Vetter suggests that it might be fine to use normal plane for > >> > cursor plane because how to use the plane would be only "a hint to > >> > userspace" (see the email linked). > >> > > >> > My motivation for having this discussion is that the newer Allwinner > >> > SoCs don't have dedicated HW cursor plane and the sun4i DRM driver > >> > currently uses the extra planes as overlay planes which makes moving= the > >> > cursor on Xfce4 DE a terrible experience. To have better cursor movi= ng > >> > experience one overlay plane would need to be sacrificed. > >> > >> If you look at the development history, we've never supported cursor p= lanes. > > > > X can use an overlay to put the cursor though. > > > >> At the beginning we supported one main plane and one overlay plane. Th= at was > >> it. The Display Engine 1.0 does have support for an extra hardware cur= sor, > >> but we haven't done the work to support it yet. I don't know about the > >> Display Engine 2.0 though. > > > > An issue with supporting the hardware cursor we have is that as far as > > I understood, the cursor plane in DRM has the assumption that it would > > be an ARGB format. In the first display engine, the format is actually > > an 8-bit palette with 1 bit of alpha iirc. >=20 > Looks like it's 32x32 pixels with an 8-bit (max) palette, with full RGBA > for the colors in the palette. I don't see the 1 bit alpha you mentioned. > Looks like this needs some extra work for building the palette and copying > the cursor image. Indeed, you're right. I'm still not sure how it could be turned into something useful though. Maxime --=20 Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com --fo5y5e2c2qwdhh7u Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEE0VqZU19dR2zEVaqr0rTAlCFNr3QFAlq57b4ACgkQ0rTAlCFN r3S/NRAAiJQ6bUi9+ufW/9MLZs+pyH7omBbWwmmk9u3m+naj3vi/Qe785z8WMUmA dxpcEZDigsmQVfyInble/GMnx7jFOf5unTELJg2pgUU7O/zQwUt7X3fGuIRRjeWR fQyBeD6itP8bKh7I1VKolARaI68xXWgedV3VAMfbvwgCToyGIlwdbSf01iOo6+dL qoKWsiQqnhSlNofJ1QGAj1wuctqGgAMn2csCK3PqUE04nhR7Dd+HM63+xP9P59+p mWMBD3PogCWb249be1LIS0maA+DBl+EwnP6GA4V1S8JNtusrx+DRd6uRhzVJY/Wx JVRSpfUXf5qdRUeFlj7zHGKNCu5XuzI+FuakuXi5XICkmiujjH8lyufAVo5dzU70 JbGWCNyBBXDww5uMc+9bvQXEPwOTReKNG979+7n3xl51JHmsS+SZM2q4gPO+wPqD sUSVOPYX0TT0mSXitGW+DyKejnXHHdFZSZUnRpYRMMJ9PLzjYKVPjHP0vLS4yI+g O5klMnIe+YIHK+dWaPlC9Vr5H+bjNvWJRA/XtrnWVZky0sglCYGS7gwXxuiT9I0A Qn+G6dlb+iCuI0mc3jHzEyBDrwbeUVQjAJDg4+GD2fg+inVKWap5Cf4lTyIhnhmc mq95m7tkzMDYeev0g9T7sgUSQZGYawSz4gy0dhgBWLuGcM1a/RY= =Nwwz -----END PGP SIGNATURE----- --fo5y5e2c2qwdhh7u--