From: Tomi Valkeinen Subject: Re: [PATCH v2 4/5] drm: omapdrm: Store the Z order in the plane state zpos field Date: Tue, 25 Apr 2017 12:01:11 +0300 Message-ID: <983fa537-30b7-0120-0793-3ea6bd1ac7d0@ti.com> References: <20170415091632.7285-1-laurent.pinchart@ideasonboard.com> <20170415091632.7285-5-laurent.pinchart@ideasonboard.com> <5e3c1ca5-6a7c-644f-015a-670eaf9ea038@ti.com> <11080507.OQ3G0dHdUC@avalon> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1122305855==" Return-path: Received: from lelnx193.ext.ti.com (lelnx193.ext.ti.com [198.47.27.77]) by gabe.freedesktop.org (Postfix) with ESMTPS id 794C76E2F8 for ; Tue, 25 Apr 2017 09:01:16 +0000 (UTC) In-Reply-To: <11080507.OQ3G0dHdUC@avalon> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Laurent Pinchart Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1122305855== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="WWgRBJPx2BNxNOOfB9WkQ3N8tBrpDvQsr" --WWgRBJPx2BNxNOOfB9WkQ3N8tBrpDvQsr Content-Type: multipart/mixed; boundary="nSGw9WUj1tWKV5SGmkgaKMDRrI7GH1HaW"; protected-headers="v1" From: Tomi Valkeinen To: Laurent Pinchart Cc: dri-devel@lists.freedesktop.org Message-ID: <983fa537-30b7-0120-0793-3ea6bd1ac7d0@ti.com> Subject: Re: [PATCH v2 4/5] drm: omapdrm: Store the Z order in the plane state zpos field References: <20170415091632.7285-1-laurent.pinchart@ideasonboard.com> <20170415091632.7285-5-laurent.pinchart@ideasonboard.com> <5e3c1ca5-6a7c-644f-015a-670eaf9ea038@ti.com> <11080507.OQ3G0dHdUC@avalon> In-Reply-To: <11080507.OQ3G0dHdUC@avalon> --nSGw9WUj1tWKV5SGmkgaKMDRrI7GH1HaW Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 24/04/17 17:00, Laurent Pinchart wrote: > Hi Tomi, >=20 > On Monday 24 Apr 2017 12:40:10 Tomi Valkeinen wrote: >> On 15/04/17 12:16, Laurent Pinchart wrote: >>> The DRM core implements a standard "zpos" property to control planes >>> ordering. The omapdrm driver implements a similar property named >>> "zorder". Although we can't switch to DRM core handling of the "zpos"= >>> property for backward compatibility reasons, we can store the zorder >>> value in the drm_plane_state zpos field, saving us from having to >>> implement custom plane state handling. >> >> I'm fine with the zpos change, but I'd like to keep the omap_plane_sta= te >> around. It'll be empty after this patch, but we have a bunch of >> properties we need to add. Some can be added as common DRM properties,= >> but perhaps not all. It's so much easier to handle those patches if th= e >> plumbing is there already, instead of adding it back. >=20 > How about reverting the needed parts of this patch at that time then ? = I think=20 > it would be better than keeping useless code around until a hypothetica= l time=20 > when it will be needed. I kind of agree, but based on my experience, I disagree =3D). We have a bunch of HW properties for both crtcs and planes which are not supported in mainline. I have patches for those. It's difficult to upstream them, because the aim should be to get common properties. Creating common properties is Hard. So I need to carry those patches, maybe for a long time, which means rebasing, which means gazillion conflicts if the mainline version doesn't have the omap custom state for crtc and plane. In the minimum, the change for the zorder and the change that removes the omap_plane_state should be separate. Then the removal patch can be reverted, and the amount of conflicts drops to half a gazillion. Tomi --nSGw9WUj1tWKV5SGmkgaKMDRrI7GH1HaW-- --WWgRBJPx2BNxNOOfB9WkQ3N8tBrpDvQsr Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJY/xBXAAoJEPo9qoy8lh716VsP/38bEciigg8at87BvRz1A248 pixeQ/YbWWVy5zUfDJi5hWgYrvBb0tWgsUuPkH7Qk1MojCz7Zl8dKBU+j4CFiIgr MazJmi/nPB1cs6BgmH7Izh8jlhasOuAsEJaZeDnW7y3h6kFFKbnHLuVFa6++06HC siTmAXFlRGM89Jy+66oLATuBH/nSEh0KlNcaFfd+NVIUWQc+oYadhF9Q832ISPg5 b57KHG2PCpg7XFPWHY3I63XMsBftSiagmFIb+wZSdvJm2vBf7aLJuA4xV+/wHnzs W5DDzisnMnST0oeuoZEkSYKb4b3LcEKJ/qkL8ysdL9gAuFq+FGuIS0+dxeCYZAh/ kpMeClf1TBOf8JWgHXoHtc/SLRY6pdFZOBwraTJkRCDz9/HEm1rEjaHyk10Wa3FT hEqwNkRZYy2Wz0HbKci1zdzi7SM5yHDyU6BPaN0w7xV3Ia14j7RdvZjE8DN7dYGu J9oj8PzdR/JGwCsYNGv1X9m1J6tjdbc4RuWdyENCHhSIxTWbt9q4perJofBrT6sX TQeR4+ZcPr4QHqJ+L6Lg6m6Y4CMrVuIqIjbjoN5s7rsj9TumgfbBz+N7Klk8QJw5 8vknzdcuR2aNor1q/He94kaADVlOYNJ55Ons/3PBWNEHgE77caF6RjSNUVCEG0m/ qELx+9Vs/rrp84CdB3Y5 =TU0O -----END PGP SIGNATURE----- --WWgRBJPx2BNxNOOfB9WkQ3N8tBrpDvQsr-- --===============1122305855== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVsCg== --===============1122305855==--