From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jesse Barnes Subject: Re: [PATCH 1/2] drm: add plane support v2 Date: Tue, 15 Nov 2011 08:13:00 -0800 Message-ID: <20111115081300.010babae@jbarnes-desktop> References: <1321302115-23159-1-git-send-email-jbarnes@virtuousgeek.org> <1321324843.8901.3.camel@nisroch> <20111115114240.GK3477@intel.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1332103674==" Return-path: Received: from oproxy5-pub.bluehost.com (oproxy5-pub.bluehost.com [67.222.38.55]) by gabe.freedesktop.org (Postfix) with SMTP id B55279E917 for ; Tue, 15 Nov 2011 08:12:21 -0800 (PST) In-Reply-To: <20111115114240.GK3477@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Ville =?ISO-8859-1?B?U3lyauRs5A==?= Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org --===============1332103674== Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/E7M8GkijWo.EVG_9x8=YPDg"; protocol="application/pgp-signature" --Sig_/E7M8GkijWo.EVG_9x8=YPDg Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Tue, 15 Nov 2011 13:42:40 +0200 Ville Syrj=E4l=E4 wrote: > On Tue, Nov 15, 2011 at 12:40:43PM +1000, Ben Skeggs wrote: > > On Mon, 2011-11-14 at 12:21 -0800, Jesse Barnes wrote: > > > Planes are a bit like half-CRTCs. They have a location and fb, but > > > don't drive outputs directly. Add support for handling them to the c= ore > > > KMS code. > > Out of curiosity, lets say you have a *really* stupid hardware overlay > > that can't do scaling (or even, has limited scaling capabilities), > > should we provide some way to expose this to userspace? >=20 > I think yes. In fact I'd like drm_plane to replace drm_crtc as far as > scanout is concerned. That's how a lot of embedded hardware is laid > out already, and I think it's a lot cleaner approach than what we > have currently. Stuff like borders then become a simple matter or > positioning the "CRTC plane" within the larger active video area, > and panel fitters could be exposed through drm_plane scaling. >=20 > Se either we need to think ahead more with the GETPLANE ioctl > structure, or we could add a PLANE_CAPS ioctl later to expose > additional details about the hardware. There are going to be all sorts of device specific bits we can expose with driver ioctls too (e.g. the alpha blend with restrictions on Intel stuff). But overall, yes you can definitely support overlays w/o scalers with these interfaces. We could add a plane property to expose the scaling factors supported if that helps, otherwise you could just return -ENOSUPP for any configuration where the crtc size and source size don't match. --=20 Jesse Barnes, Intel Open Source Technology Center --Sig_/E7M8GkijWo.EVG_9x8=YPDg Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBAgAGBQJOwo+MAAoJEIEoDkX4Qk9h14EQAKhCe6n02Rv1yFS0m5kxFf3I p7Yx/os3rEB4pgBWNKNr8GObDej6lybyF7Lmb24yL7hR6XGbhMbiSxILxcguqByb tnKoHcg6mQufW8okM5QBPKVUM0IIrbW8UdlxjIPdXcdVGRcT/YjYUgxMl/5fBtWR wfh/6XDntBarUp66h6Jb3ifFphm+HdnSl8FCbFnDmQMaAvbF/VIYt9liuo7vhpF1 g+PeHtJWElFEfA5bQGjgo9bhwZNhLkMwPwRpi15gTFceJVYnW1d9q/LDl403FYEk Y+wdMoXLwiwZP6n9UpdBnNPxUwE1eCo49YwV7ptYgYUpINMpIAJeiv00I+HZs3sk QTTS0U5DMKCy+AQtuPc6NFheor4mgR7ohchtiUlCCRkWjYRiIa0kIWcsDywt9WkK /evWwtB0nT6PdGHduZkoVkNotspr7H6CWFkj53GgxQIS2T4FEItxVrNCRLXevB3K kU1nHAiJ+DnnYtt2K9aUrW72+ddokXdmWXhAgzHjA2+VxznvUTCq/7q2tkkwn7mu w40AVDwx3knTlEKPeAO1vNAmHtYFPO7ZIivUP8rrZDaChln6PMXCUdHC9yxUIRtT HRIT5BCxrcds7mI97OQvM+fMQ1gZ/SMMjOZn9MRkL6H1algnFs57yZRam0ZuRJVY /bvrC5Wp2rJVu+YZjLe9 =a/op -----END PGP SIGNATURE----- --Sig_/E7M8GkijWo.EVG_9x8=YPDg-- --===============1332103674== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel --===============1332103674==--